SQL Databases doesn't execute the SQL script

Got a problem you cannot solve? Try here.
Post Reply
mhammady
Posts: 15
Joined: Wed Dec 14, 2011 10:01 am

SQL Databases doesn't execute the SQL script

Post by mhammady »

Hi, I have a setup, that include a very small SQL script. This script was tested against XP, and 2008 server. Under 2008 it runs correctly, but not under XP. I tried to include MDAC 2.8 w SP1 without success...

Any ideas??


Thx
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: SQL Databases doesn't execute the SQL script

Post by FrancescoT »

Dear User,

I suggest to you to test your script first using SQLExec from command line or with "Sql Managment Studio", to verify that the script works correctly.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
mhammady
Posts: 15
Joined: Wed Dec 14, 2011 10:01 am

Re: SQL Databases doesn't execute the SQL script

Post by mhammady »

I already did that, and the SQL statement works fine from the SQL Management studio, and from the same setup under windows 2008.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: SQL Databases doesn't execute the SQL script

Post by FrancescoT »

Can you try to use the "SQLExec" directly in your script and see what happens?

Let me know.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
andres8a
Posts: 2
Joined: Mon Aug 06, 2012 9:47 am

Re: SQL Databases doesn't execute the SQL script

Post by andres8a »

Hi, I have a setup, that include a very small SQL script too. Under SQL 2008 R2 Standard it runs correctly, but not under SQL 2008 R2 Express, both on the same Win 2008. I already test it on Managment Studio and works fine on both version of SQL.

Could you help me please?

Thanks
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: SQL Databases doesn't execute the SQL script

Post by FrancescoT »

Dear Andres8a,

how do you execute the SQL script?

If using "SQLExec" directly works fine, you could call it from your script.

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply