Using SQL to store values in a database in VB.NET 2005
Posted on 2006-07-16
Hi, I would like to Store data from a form in a SQL database. I would like a method to do this without using databinding.
I have the connection string already
Dim conn As New System.Data.SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Payroll.mdf;Integrated Security=True;User Instance=True")
I would like a way to be able to say
Name.text = NAME
with NAME being a field in the database.
Thank you in advance for all your help!