I'm trying to execute a SQL Insert command using my existing SqlConnection
without refering to a dataset. I've come acroos several examples such as:
Public Sub CreateMySqlCommand(myExecuteQuery As String, myConnection As
SqlConnection)
Dim myCommand As New SqlCommand(myExecuteQuery, myConnection)
myCommand.Connection.Open()
myCommand.ExecuteNonQuery()
myConnection.Close()
End Sub 'CreateMySqlCommand
however my project isn't recognizing SqlCommand as a function. Is there a
reference I'm missing or is someone else executing SQL commands straight at
the connection? Please help.