SqlTrustedConnection + ShowDatabases - 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!

Bluetonic
Posts: 2
Joined: Mon Apr 19, 2010 12:57 pm

SqlTrustedConnection + ShowDatabases

Hi there,

I've been fairly successful in setting up a dialog to show the available sql servers which includes a 'browse' button to spawn a dialog with a list box of available databases (using ShowDatabases). This seems to work fine when using credentials for the sql server but when attempting to use a trusted connection (setting the SqlTrustedConnection property) and browsing a local server, I am given a blank list of databases?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: SqlTrustedConnection + ShowDatabases

Hi,

Are you running the package on Windows Vista or newer versions of OS?

If so please make sure you run the package with the option "Run As Administrator", this is required by Windows Installer so the
credentials are correctly passed to the installation package (when using "Trusted Connection").

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bluetonic
Posts: 2
Joined: Mon Apr 19, 2010 12:57 pm

Re: SqlTrustedConnection + ShowDatabases

I'm running it on Server 2003 as the local admin within Advanced Installer (Project > Run and Log).

I've also tried running the built executable as Administrator but still no joy :(
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: SqlTrustedConnection + ShowDatabases

Hi,

"Run as admin..." option should have fixed this problem. Can you please make sure that the credentials passed to the installation packages
by the OS are correct, i.e. the Windows user can connect to the server?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”