B
Bruce A. Julseth
After running the follow code, "intResult" is returned as "0" and the update
does not take place. Could it be that my database column name, "Name", is
not being related to the Procedure parameter, "@Name?" Is so, what do I need
to change so that "Name" will be related to "@Name?". Can I do it without
using a "SqlParameter?"
Dim drData As DataRow
drData = dstMyName.Tables("MyName").NewRow
drData("Name") = txtName.text
Dim intResult As Integer
With daMyName
.InsertCommand = New SqlCommand()
With .InsertCommand
.CommandText = "InsertDataRecords"
.CommandType = CommandType.StoredProcedure
.Connection = cnnMyName
End With
intResult = .Update(dstMyName, "MyName")
Thank you...
Bruce
does not take place. Could it be that my database column name, "Name", is
not being related to the Procedure parameter, "@Name?" Is so, what do I need
to change so that "Name" will be related to "@Name?". Can I do it without
using a "SqlParameter?"
Dim drData As DataRow
drData = dstMyName.Tables("MyName").NewRow
drData("Name") = txtName.text
Dim intResult As Integer
With daMyName
.InsertCommand = New SqlCommand()
With .InsertCommand
.CommandText = "InsertDataRecords"
.CommandType = CommandType.StoredProcedure
.Connection = cnnMyName
End With
intResult = .Update(dstMyName, "MyName")
Thank you...
Bruce