Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null value in VB.Net
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00701667
Message ID:
00701862
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform