Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date Insert Error!
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
Date Insert Error!
Divers
Thread ID:
00767245
Message ID:
00767245
Vues:
44
Dear All,

I am trying to insert a Date value to a table in SQL2000 using the following sql code but it's geving me an error
insSql = "INSERT INTO an_paymenthdr (PaymentDate) VALUES('" & Date.Today & "')"
Dim insCMD As New SqlCommand(insSql, myConn.oAdoNetSql_Conn)
But it accept it on the following code
insSql = "INSERT INTO an_paymenthdr (PaymentDate) VALUES('15/01/2003')"
Dim insCMD As New SqlCommand(insSql, myConn.oAdoNetSql_Conn)
Any idea please
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform