Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date Insert Error!
Message
De
18/03/2003 15:54:35
 
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00767245
Message ID:
00767254
Vues:
15
This message has been marked as the solution to the initial question of the thread.
The problem is possibly in your Regional settings - date is formatted to some, which SQLServer cannot understand. The universal way is:
insSql = "INSERT INTO an_paymenthdr (PaymentDate) VALUES(@PaymentDate)"
Dim insCMD As New SqlCommand(insSql, myConn.oAdoNetSql_Conn)
insCMD.Parameters.Add("@PaymentDate", SqlDbType.DateTime).Value = Date.Today

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform