Advertisement

01.04.2008 at 09:53AM PST, ID: 23059220
[x]
Attachment Details

need to validate if SQL Server exists

Asked by trs28 in InstallShield

Tags: Macrovision, Installshield, 12

I'm using Installshield 12 for an InstallScript MSI project.

I need to be able to detect if a SQL Server exists and that the login credentials are valid but without having to run a scrip to get the dialogt.   The project currently prompts the user for the SQL Server information when they're installing the server portion of our software.  One of the client pieces require a UDL file to directly connect to the database, which posed my problem.   Back to the server piece real quick; once the credentials entered into the SQL_Dialog authenticate, I've modified the InstallScript OnSQLLogin function to store the server name and any credentials entered so that I can use them later.  At that point, the database for our software is created via an SQL Script (handled by installshield), I have InstallScript code creating the UDL file automatically, and all is well.  

I would like to automate the creation of the UDL file for when the software is installed on a client machine only, so here's what I was thinking ...  If I could get that very same SQL Dialog to appear, have the user enter in the SQL Server connection information, AUTHENTICATE (and optimally check to make sure the database exists if possible), and then write the UDL file in the same manner as I'm already doing it .... I could accomplish my goal.  I'm a little hung up on the code in the OnSQLLogin script as far as which and how to use portions of it to do this though.  

ANY HELP IS GREATLY APPRECIATED.  THIS IS SOMEWHAT URGENT, BUT I APPRECIATE ANY HELP ON THIS WHATSOEVER!Start Free Trial
[+][-]01.17.2008 at 04:42AM PST, ID: 20680611

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 12:43AM PDT, ID: 21356692

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 09:38AM PDT, ID: 21455473

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.03.2008 at 02:04PM PDT, ID: 21493694

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: InstallShield
Tags: Macrovision, Installshield, 12
Sign Up Now!
Solution Provided By: trs28
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628