[SQL] Trusted Connection script failed / Logon (solved) - Advanced Installer Community
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

[SQL] Trusted Connection script failed / Logon (solved)

Hello,

I have a probleme with deploy database in remote PC : ( I have not this problem with a local database)

With MS management studio i have not the probleme (windows connection and same server, exec query same script) but
with my install i have this error message:
[SQLExecDirect] {SQL_ERROR} : {SQL_STATE: 42000}
[Microsoft][ODBC SQL Server Driver][SQL
Server]CREATE DATABASE permission denied in database 'master'.

Here my custom connection sql:
Driver={SQL Server};Server=[SERVER_PROP];Port=1433;Trusted_Connection=Yes;

thanks
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [SQL] Trusted Connection script failed / Logon (solved)

[Solved]

Database Server
--- check Impersonnate installing user

Driver={SQL Server};Server=[SERVER_PROP];Port=1433;Trusted_Connection=true; <--- true not yes
aligorex
Posts: 1
Joined: Tue Sep 22, 2015 3:07 pm

Re: [SQL] Trusted Connection script failed / Logon (solved)

Dear Support,

We have the same problem with the connection and proposed solution didn't help.

1. Our installer creates DB (using SQL Script) on the remote server. Credentials are provided by user during installation.
2. Installation fails due attached error (unfortunately was not able to attach log)


I have Advanced Installer 10.5.2.

Please suggest how:
what can be work around (for example create directories on the remote server)
or what to check in installer to make it fully automated. (currently there is SQL script CREATE DATABASE with FILENAME = 'PATH/TO/FILE/APP.mdf' but it can't create file on the remote server.
Is it problem with rights?

Thanks!
Attachments
error.png
error.png (5.07 KiB) Viewed 4334 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: [SQL] Trusted Connection script failed / Logon (solved)

Hello and welcome to our forums,

This may happen because the current installing user may not have write permissions on the related network location. For testing purposes can you please add "Everyone -> Full Control" permissions on the related network location where you want to create the MDF database file and see if this helps?

Also, 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”