I have two dialogs: -
PrimaryServerDlg
SecondaryServerDlg
They prompt for: -
Server Name
DataBase Name
User Name
Password
In simple edit box controls I use this in a Custom SQL connection e.g.: -
Driver=SQL Server;Server=[SQL_PRIMARY_HOST];Port=1433;Uid=[SQL_PRIMARY_USERNAME];Pwd=[SQL_PRIMARY_PASSWORD];Database=[SQL_PRIMARY_DATABASE];
This works without a problem and I test can test the connection with the appropraite standard action on the next control.
What I want to do now is to change the edit controls to listbox controls and have dropdown lists of Servers and databases available. When I use the wizard for 'Browse SQL Servers' and 'Browse SQL Databases' it creates me 2 listboxes on the dialogue I specify. It also creates me the SQLConnectionDlg for login credentials I chose the Winsows API method. It attempts to get the SQL Servers but fails to login. I am using SQL Server 2008 R2. I am just typing in SQL Server as the ODBC resource.
Eventually I want to drop down the list grab the selection and assign it to a property i.e. The SQL_PRIMARY_HOST property as mentioned. Is this possible?
Regards,
John
FOLLOW US
Get the latest news in Application Packaging