PDA

View Full Version : SQL Browser - List is empty



plipli
11-29-2004, 03:14 PM
Hi,

I use these code to open the SQL login dialog:

sDLL = SUPPORTDIR ^ "ISSQLSRV.DLL";
nResult = StreamFileFromBinary( ISMSI_HANDLE, "ISSQLSRV.DLL", sDLL );
UseDLL(sDLL);

nResult = SQLServerSelectLogin(szDBServer, svSQLLoginName, svSQLPassword, bWINAuth);

The dialog opened correctly, but when click the Browser button, an empty list is displayed. Could someone help me?

Thank you in advance!
Ping

hidenori
11-29-2004, 05:33 PM
If you create a new project, and add a SQL connection and a dummy SQL script in SQL Scripts view, is the problem reproduced? Please do not modify InstallScript code for this test. InstallShield automatically adds the SQLLogin dialog.

plipli
11-29-2004, 05:54 PM
Thank you very much for replying.

It works. I have to create a dummy script file under a dummy SQL connection. Before I only create a dummy connection as it works for a InstallShield script project.

So for a InstallShield MSI script project, you must add a dummy script file.

Ping