I call the SQL stored procedure from a C # .net code snippet:
SqlHelper.ExecuteDataset(sqlConnection, CommandType.StoredProcedure, STORED_PROC_NAME, sqlParameters);
where the sqlParameters variable sqlParameters defined as:
SqlParameter[] sqlParameters = new SqlParameter[SQL_NUMBER_PARAMETERS]; Log.Logger.Debug(string.Format("Running proc: {0} ", STORED_PROC_NAME)); SqlParameters[0] = new SqlParameter("fieldID", SqlDbType.BigInt ); SqlParameters[0].Value = fieldID; SqlParameters[0].Direction = ParameterDirection.Input;
I need to pass two more parameters to this Stored Proc (both are of type SqlDateTime ), which in this case will be NULL.
Thank,
AT
c # sql sql-server stored-procedures
Irfy Jul 30 '09 at 15:36 2009-07-30 15:36
source share