|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How di I pass a null value to a stored peocedure?
ie: If radWritten.Checked Then .Parameters.Add("@Location_Code", "W") .Parameters.Add("@Location_Oral", DBNull) (DBNull is a type and can not be used as an expression) End If If radOral.Checked Then .Parameters.Add("@Location_Code", "O") .Parameters.Add("@Location_Oral", "1") @Location_Oral is a bit |
|
#2
|
|||
|
|||
|
How di I pass a null value to a stored peocedure?
ie: If radWritten.Checked Then .Parameters.Add("@Location_Code", "W") .Parameters.Add("@Location_Oral", DBNull.Value) End If If radOral.Checked Then .Parameters.Add("@Location_Code", "O") .Parameters.Add("@Location_Oral", "1") End if .Value behind DBNull workes ! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > null values |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|