using databases programmatically

Hi - I'm new to, using   I've gone through the basics of all these nice web controls, specifically to automate the pulling and displaying of data from databases using gridviews, etc.

However, I'm struggling to find a good tutorial of how to access, pull and manage data from a sql database using vb code, etc. not using these fancy web controls, but using code.

Can you recommend a link or two to tutorials that i can work from to understand how to have this greater level of control.

Who is Participating?
CodeCruiserConnect With a Mentor Commented:
Here is a simple example

Dim Conn As New SqlConnection(Connection_String)
Dim Comm1 As New SqlCommand(Command, Conn)
Dim DR1 As SqlDataReader = Comm1.ExecuteReader()
If DR1.Read() Then
	textBox.Text = DR1.GetValue(0).ToString()
End If

Open in new window

ErinTheCoderGirlAuthor Commented:
Hi - thanks but these both populate a gridview... is there a way to retrieve data from the database, and directly populate textboxes, etc.?
ErinTheCoderGirlAuthor Commented:
Hi, thanks for the example, but I am looking for tutorialson this.

Do you know of any tutorials that guide through programmatic database controls?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.