Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created my forms in vb.net now I want to connect with my Sql server Database. how to do it. and exactly where to paste the database connection code in code window. plz help.
Posted

1. you will need to know a little bit of ADO.NET
2. Create a connection object.
3. create a command object.
4. use the command object to talk to the Db.

I think understanding this will take less time them pasting some borrowed code from somewhere and then spending time in debugging and troubleshooting.

But if you still want to do that show some code snippet to understand what it does so that I can tell you the right location to put that.
 
Share this answer
 
Comments
member60 9-Mar-12 4:20am    
right.
http://www.java-samples.com/showtutorial.php?tutorialid=1019[^]

Meenu just try to get it...! your solution is here..!
Regards
Dnyanesh
 
Share this answer
 
google can help you foe such basics, the thing is that you should try it by searching first if you are getting difficulties then cp is always here for assistance.
well refer this link , that might help you:
http://support.microsoft.com/kb/308656[^]
 
Share this answer
 
all you need to know about ADO.NET is here
To create your connection string check here
 
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