Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > How do I assign...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4237 of 4320
Post > Topic >>

How do I assign null to a field I want to insert

by COHENMARVIN@[EMAIL PROTECTED] May 20, 2008 at 07:43 AM

I'm working with ado in asp.net, and I want to be able to insert a
null into a field that can take nulls.
So I have something like
command.parameters.AddWithValue("@[EMAIL PROTECTED]
",Dbnull.value)
But this gives an error.
It seems like a string is needed, instead of dbnull.value.
Is there any way to insert nulls?
Thanks,
Marvin
 




 2 Posts in Topic:
How do I assign null to a field I want to insert
COHENMARVIN@[EMAIL PROTEC  2008-05-20 07:43:15 
Re: How do I assign null to a field I want to insert
"Bob Barrows [MVP]&q  2008-05-20 10:58:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:54:54 CST 2008.