View Full Version : SQL fails

12-22-2004, 08:00 AM
I am trying to get my SQL scripts to work.
I created a test installation with just a SQL Connection, and a SQL script.
When i run the install, the SQL script is called, but fails.

use master

create database 'TestSQLDB2'

That's the script. When i run profiler against it, the create database line is called, and then

select * from
create database 'TestSQLDB2'

gets called. I have no idea where the select * from comes from.... it is something InstallShield is running.. This causes the installation to fail with a

Error 27506. Error executing SQL script sqlscript1. Line 17.
Line 2:Incorrect syntax near 'TestSQLDB2'.

This code runs just fine from query analyzer.

Any ideas?



02-09-2005, 06:44 PM
I'm seeing a similar problem. Script works fine in Query Analyzer but fail in InstallShield. Any ideas would be appreciated!!!

03-03-2005, 06:36 PM
Hi, I have exactly the same problem !!!!

it's a long script, works fine in query analyzer, fails with Error 27506 and the "select * from " that comes from nowhere !!!!

03-04-2005, 03:04 PM

in my case: the problem disappeared replacing the comments of the form /* coment */ to --comment in the create procedure statements.

There must be some problem withe the comments: ALL the comments disappeared !!!

Christopher Painter
03-04-2005, 03:09 PM
Do a search in support and community for Hotfix .. there is a patch that fixes this.

03-04-2005, 03:24 PM
Hi, thanks Cristopher

I found there's a work order #1-VFA92 for future releases... but didn't fint a hotfix

Christopher Painter
03-04-2005, 03:35 PM
Ah, you have -27506 not -27505, my mistake. Did you try the latest hotfix atleast? Maybe it'll help.


04-13-2005, 01:02 PM
How do you search work orders?

04-13-2005, 01:41 PM
The work order #1-VFA92 has been fixed in InstallShield 10.5. If you still experience the failure, please send me a sample project at hyamanishi@macrovision.com. I will look into it to find out what's causing the problem.

Thank you.
Hidenori Yamanishi
Software Developer
Macrovision - Software Technologies Group