fetch sql server name & available databases
Posted: Tue 20 Jun 2006 12:08
Hi,
I am new to the SQL Server Data Access Components.
I have been looking at the ConnDialog demo & i like the way you can customise the SQL Server connect.
I have been developing my own application configuration screen & would like to utilise some of the MSConnectDialog features.
I have a configuration form which loads on an onclick event which uses a TabSheet, is there anyway to add combo boxes on there for the SQL Server list & database list for the selected server without calling up a seperate configuration screen?
I tried coding
MSConnectDialog.DialogClass:= 'TfmMain';
MSConnection.Connect;
Into my configuration screen launch button but im also using TIniFile to save selections to an ini file & put them back into edit boxes etc on load... when i try & do the TIniFile stuff on the config form with the above call it just doesn't do anything... i guess its to do with it being "virtual"
Is there anyway of getting what im trying to achieve? I spent 2days on this now n just wana know if im wasteing my time?
Cheers in advance.
I am new to the SQL Server Data Access Components.
I have been looking at the ConnDialog demo & i like the way you can customise the SQL Server connect.
I have been developing my own application configuration screen & would like to utilise some of the MSConnectDialog features.
I have a configuration form which loads on an onclick event which uses a TabSheet, is there anyway to add combo boxes on there for the SQL Server list & database list for the selected server without calling up a seperate configuration screen?
I tried coding
MSConnectDialog.DialogClass:= 'TfmMain';
MSConnection.Connect;
Into my configuration screen launch button but im also using TIniFile to save selections to an ini file & put them back into edit boxes etc on load... when i try & do the TIniFile stuff on the config form with the above call it just doesn't do anything... i guess its to do with it being "virtual"

Is there anyway of getting what im trying to achieve? I spent 2days on this now n just wana know if im wasteing my time?
Cheers in advance.