Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to open the add connection form of sql express to connect to selected database using c# coding...


Its urgent
Posted
Updated 20-Jan-12 2:09am
v2
Comments
Prasad_Kulkarni 20-Jan-12 8:11am    
Give some more explanation sunil

1 solution

Use this algorithm
1) List all the database available in network and populate one combo box
2) provide two text box Username , Password
3) Then using StringBuild build the connection string and connect the database
4) actually try to connect the database .If connection successful then give successful msg to user other wise provide error msg to user


if you need connection string format see this

www.connectionstrings.com
 
Share this answer
 
Comments
fjdiewornncalwe 20-Jan-12 10:25am    
+5.

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