Hello,
I am having badly stuck!!I have spent hours in trying to solve that.
I am having the following loving function:
Public Function InsertDeleteUpdate(ByVal command As String) As Boolean
Try
open_connection()
objectconnection.Open()
cmd.Connection = objectconnection
cmd.CommandText = command
cmd.ExecuteNonQuery()
objectconnection.Close()
Return True
Catch ex As Exception
Return False
End Try
In the above function I pass the following string:
gridcost = Convert.ToDecimal(txtcost.Text)
_date = Convert.ToDateTime(txtdatefrom.Text)
patient = Convert.ToInt32(ddlpatients.SelectedValue)
sqlstring = "execute dbo.InsertDeleteUpdate " & patient & ",'" & _date + "'," & gridcost & ",'" & txtinsurances.Text & "','" & checkreceipt.Checked + "'," & appointment_xid
InsertDeleteUpdate(sqlstring)
The string includes a stored procedure.The store procedure includes the following parameters:
View Complete Post