Subject: How do you set a column to NULL in a parameter?
Posted By: Aaron Edwards Post Date: 4/7/2006 5:42:25 PM
I need to be able to set an int column in SQL2005 to null once in a while, within a parameter construct, i.e.

cmd.Parameters.Add(New SqlParameter("@fkSecondLevelPageID", 'null'))

I've tried 'null', vbNull and "", but none of them do the job.

Thanks!

Aaron

Reply By: jbenson001 Reply Date: 4/7/2006 11:26:52 PM
try using:
System.Convert.DBNull


Go to topic 42597

Return to index page 320
Return to index page 319
Return to index page 318
Return to index page 317
Return to index page 316
Return to index page 315
Return to index page 314
Return to index page 313
Return to index page 312
Return to index page 311