Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null value in VB.Net
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00701667
Message ID:
00701862
Views:
17
The SQL Server syntax for the insert statement is:
insert into TABLENAME (FIELD1, FIELD2) values ('TEXT', NULL)
If you are setting the value in a DataRow inside of a DataTable, then you set the value of the DataRow like the following:
rowCustomer("ContactName") = Convert.DBNull
>how to insert a null value to database (DB2,SQL Server) from vb.net ?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform