Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to get a list of the SQL Servers


1 reply to this topic

Blueeberry

Blueeberry
  • Full Members
  • 29 posts

Posted 30 March 2010 - 15:48

Hello

How can I get a list of the available SQL Server which are in the network?
I try it with InstallScript (in a MSI Basic Project)... The code look like that:


CODE
function GetServer(hMSI)

LIST listID;
string Server;

begin

 listID = SQLRTGetServers( FALSE );
  CtrlSetList("ReadyToInstall", 0, listID);

end;

But now I don't know how I bring that in my combobox... I try it with CtrlSetList but I don't use a resource and I don't think it would work with this comand...
Do you know maybe the right command or an other way how I become all the SQL Server which are available?
I really hope you can help me... I'm going up the walls, I try that since 8 hours -.-
Thanks for your help!


regards

Blueeberry

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 01 April 2010 - 13:56

Why don't you use the built in SQL dialog?