Group: Forum Members
Posts: 436,
Visits: 944
|
The reason I was asking this question is because I am using the Data Access Application Block (DAAB) to execute a stored procedure and it accepts sqlparameters as a parameter array.
If i understand what you said correctly then this is how I would want my example to look...
Dim loParms As New System.Collections.Generic.List(Of SqlParameter)
loParms.Add(New SqlParameter("@Param1", 1))
loParms.Add(New SqlParameter("@Param2", 2))
SqlHelper.ExecuteNonQuery(CONNECTION_STRING, CommandType.StoredProcedure, "StoredProcedureName", loParms)
FYI, SqlHelper is a method in the DAAB.
|