Click here to Skip to main content
15,918,617 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Is there any code snippet which creates a connection dialog field like in SSMSE? Where it scans your network for sql server and databases using your credentials and showing this in list boxes.

See German screenshot for details.
http://www.mediafire.com/?pgan7b8tv9ileax[^]

Thank you
Posted

1 solution

Although this article[^] isn't exactly what you want it may get you started in the right direction since it has a dialog that I think (if I've understood you correctly) will give you pretty much what you want.
 
Share this answer
 
Comments
dj_jeff 2-Mar-11 4:31am    
On clicking the Search button, it get's all SQL Servers on the net.

Unfortunately I'm not getting a connection with my credentials with this tool.
It would be good to have also a list box containing all accessible databases with the entered credentials.

My box should look something like that to prevent wrong connection settings:
SQL Server: [Listbox]
Username: [Textbox]
Password: [Textbox]
Database: [Listbox]
Connect [Button] Cancel [Button]
R. Giskard Reventlov 2-Mar-11 4:45am    
I understand that but the point is for you to take the code and adapt it to your needs: It's unlikely that anyone will have precisely what you want and part of being a developer is to learn from and adapt code: you won't get anything handed to you on a plate!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900