How pass null string as parameter

B

Bobby Edward

Using MySql. Using business classes that work thru XSD datasets.

I have a datetime field in a table. How can I pass a null to it (as a
param)?

Hope this is clear. Thanks.
 
G

Guest

Using MySql.  Using business classes that work thru XSD datasets.

I have a datetime field in a table.  How can I pass a null to it (as a
param)?

Hope this is clear.  Thanks.

nillable="true"
 
G

Guest

nillable="true"

--------------------------------------------------------------------------------

In schema:
<xs:element name="element_name" type="xs:date" nillable="true"/>

In document:
<element_name xsi:nil="true"/>
 
H

Hans Kesting

Bobby Edward explained on 10-12-2008 :
Using MySql. Using business classes that work thru XSD datasets.

I have a datetime field in a table. How can I pass a null to it (as a
param)?

Hope this is clear. Thanks.

Use a DBNull.Value as parameter value if you want a "null" in the
database. This should work even if it is a datetime parameter.

Hans Kesting
 
G

Guest

Bobby Edward explained on 10-12-2008 :




Use a DBNull.Value as parameter value if you want a "null" in the
database. This should work even if it is a datetime parameter.

Hans Kesting

through XSD datasets?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top