Passing null to SQL using Data Reader.

  • Thread starter Thread starter Willie Neal
  • Start date Start date
W

Willie Neal

How can I pass a Null value to a SQL statement from vb.net. I'm using a
command object to execute a stored procedure to populate a data reader, but
I need to pass in a null value how can I accomplish this.

Thanks,

Wil
 
Willie Neal said:
How can I pass a Null value to a SQL statement from vb.net. I'm using a
command object to execute a stored procedure to populate a data reader, but
I need to pass in a null value how can I accomplish this.

Use DBNull.Value.
 
Back
Top