SQLScript Error - Advanced Installer Community
santoshadvanceinst
Posts: 22
Joined: Mon Nov 05, 2012 12:19 pm

SQLScript Error

Hi,

I am trying to execute SQL script as a part of installation and it gives error. I am using "~" as a separator character in script and it is accordingly specified in aip file. When I execute this script on SQL management console by replacing "~" with ";" it works fine. This tells me that there is no issue with script. I am using version 10.1 for packaging. Can you please help me to resolve this problem.
Your help is appreciated.

Regards,
Santosh
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQLScript Error

Hello Santosh,

Please keep in mind that with the exception of semicolon ; character, the statement separator must always begin with a letter and can contain only alpha-numeric characters. So, can you please change accordingly the statement separator in your installation project (from "SQL Scripts page -> SQL Script tab) and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
santoshadvanceinst
Posts: 22
Joined: Mon Nov 05, 2012 12:19 pm

Re: SQLScript Error

Hi Daniel,

When I get an error in executing SQL script that works fine when executed on SQL server management console, where should I be looking.
Please guide me on this as we have seen this problem.
We are using ";" as seperator and that has been defined as well. Script is correct as I am able to create tables using that from outside but does not execute when bundled with AI packaging. Please help.

Regards,
Santosh
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQLScript Error

Hello Santosh,

I'm not sure why this happens. Please take a look on our "Why does my SQL Script fail to run when executed from the installer?" FAQ and let us know if this helped. If not, please send us the .aip (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”