Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
i am facing difficulty to connect with my database using sql server 2008 and visual studio 2010 saperately...

can any one help me out plz
Posted
Comments
MAU787 10-Aug-12 6:53am    
what kind of question is this??
i cant see your pc. put code here.
Sergey Alexandrovich Kryukov 10-Aug-12 16:56pm    
What is "saperately"? "plz"? "i"? I don't know such English words. Please don't tell us it's not your native language -- we all cal use a spell checher. It's just a matter of little respect and elementary politeness, so please don't be so rude.
--SA

1 solution

Hi,

You can open in Visual Studio the Server Explorer. There is a wizzard.

In Code, you can use the SQLConnection class...

http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection(v=vs.71).aspx[^]
 
Share this answer
 

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