A
arne
How do I pass a null to a stored procedure from VB.Net.
I have tried to pass nothing but that throws an exception.
Here is my parameter
command.Parameters.Add(New SqlParameter("@DLExpiration",
SqlDbType.SmallDateTime, 4, ParameterDirection.Input,
False, 16, 0, _
"DLExpiration", DataRowVersion.Proposed,
DB.getDate(Me.DLExpirationDate.Text)))
I have tried to pass nothing but that throws an exception.
Here is my parameter
command.Parameters.Add(New SqlParameter("@DLExpiration",
SqlDbType.SmallDateTime, 4, ParameterDirection.Input,
False, 16, 0, _
"DLExpiration", DataRowVersion.Proposed,
DB.getDate(Me.DLExpirationDate.Text)))