G
Guest
HI,
I am developing a Smart Device app to run on a handheld scanner. I can
SELECT rows with the following:
Dim mySelectQuery As String = "SELECT ProductName FROM Products
Where ProductID = " & Me.txtDcdData.Text
Dim myConnection As New SqlConnection("User
ID=sa;Password=xxxg;Initial Catalog=PSC;Data Source=CSIREPL;")
Dim myCommand As New SqlCommand(mySelectQuery, myConnection)
myConnection.Open()
Dim myReader As SqlDataReader
myReader = myCommand.ExecuteReader()
myReader.Close()
myConnection.Close()
I need to INSERT a row, I can't find how to do that.
Can anyone help please?
Thanks
I am developing a Smart Device app to run on a handheld scanner. I can
SELECT rows with the following:
Dim mySelectQuery As String = "SELECT ProductName FROM Products
Where ProductID = " & Me.txtDcdData.Text
Dim myConnection As New SqlConnection("User
ID=sa;Password=xxxg;Initial Catalog=PSC;Data Source=CSIREPL;")
Dim myCommand As New SqlCommand(mySelectQuery, myConnection)
myConnection.Open()
Dim myReader As SqlDataReader
myReader = myCommand.ExecuteReader()
myReader.Close()
myConnection.Close()
I need to INSERT a row, I can't find how to do that.
Can anyone help please?
Thanks