assign DBNULL to a sqlParameter

pisceswzh

Well-known member
Joined
Mar 19, 2007
Messages
96
Programming Experience
1-3
Dim Comm As New SqlCommand("SELECT * FROM tableUser WHERE fieldName = @strName", Conn)
Comm.Parameters.AddWithValue("@strName", "abc")

I am just wondering how can I replace the "abc" to a DBNULL value?

Thanks!
 
DBNULL.value
 
Back
Top