B
BobRoyAce
I have stored procedures with parameters in a SQL Server 2005 DB and
want to execute them (primarily to update, delete, and insert records
to tables). Could someone please provide simple code to do this. I
found sample code using something called SqlHelper, but SqlHelper
doesn't seem to be available in VS 2005 (Visual Basic) unless I'm
missing something. I am creating the parameters as follows:
Dim SQLParams(12) As SqlClient.SqlParameter
Try
SQLParams(0) = New System.Data.SqlClient.SqlParameter
With SQLParams(0)
.ParameterName = "@pkUserIDOriginal"
.DbType = DbType.Int32
.Direction = ParameterDirection.Input
.Value = _@pkUserIDOriginal
End With
..
..
..
want to execute them (primarily to update, delete, and insert records
to tables). Could someone please provide simple code to do this. I
found sample code using something called SqlHelper, but SqlHelper
doesn't seem to be available in VS 2005 (Visual Basic) unless I'm
missing something. I am creating the parameters as follows:
Dim SQLParams(12) As SqlClient.SqlParameter
Try
SQLParams(0) = New System.Data.SqlClient.SqlParameter
With SQLParams(0)
.ParameterName = "@pkUserIDOriginal"
.DbType = DbType.Int32
.Direction = ParameterDirection.Input
.Value = _@pkUserIDOriginal
End With
..
..
..