Sql script with Insert statements fails always - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

thabotharshan
Posts: 1
Joined: Mon Mar 04, 2013 5:47 pm

Sql script with Insert statements fails always

Hi
I am new for advance installer and this community.i hope this forum will help for a newbie like me:)I am using Sql server 2008 r2 express as my database.I added a script at Script section ,Which has schema and data.But unfortunately i am getting an error when installer executing SQL scripts .Error message saying something "invalid Syntax" in Sql Script.Same script without Data(only Schema) worked properly .But this is happen when i include insert statements at Script.I tried to checked Stript comments from Sql Script.But still it is not working.I have attached log file which was created bu advance installer here.Please find an attchement.

Note
*I Checked SQL Server error log file.But for particular time there is an error like this
" Error: 18456, Severity: 14, State: 11.
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: 192.168.0.108]"

May be insert statements need some permission to execute by Advance installer.If that is case how can i possibly fix this.I am expecting a great help from this community

Thanks in advance:)
Attachments
log.txt
Advance insaller log
(409.05 KiB) Downloaded 186 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Sql script with Insert statements fails always

Hello,

I'm not sure why you are encountering this behavior. Can you please make sure that you have the correct "Statement Separator" set? Also, the supported sql script file formats are:
  • - ASCII
    - UTF8 with BOM
    - UTF16 (UCS-2 Little Endian and UCS-2 Big Endian)
Let us know if this helps, otherwise please give us more details about your scenario.

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

Return to “Common Problems”