Hi.I am very new to the vb.net programming.
Now I am trying to connect the database that is sql server 2005 to the vb.net code so that I can add the data to my database, which is already in the sql server and retrieve the required data from the database.
Please help me out by providing the complete working sample code.
with which i will be able to understand how things work.
Expecting some hep from the experts.
Thanks in advance to all.
ecrockers
0
Newbie Poster
Recommended Answers
Jump to PostYou need to import System.Data.SqlClient namespace.
Imports System.Data.SqlClient ....
Use SqlConnection class to connect,
Dim Cn as New SqlConnection("your_connection_string") Cn.Open() ..
All 3 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
acidking001
6
Newbie Poster
ecrockers
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.