Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Insert Error!
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
Date Insert Error!
Miscellaneous
Thread ID:
00767245
Message ID:
00767245
Views:
45
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 <><>
<><><><><><><><><><><><><><><><><><><><>
Next
Reply
Map
View

Click here to load this message in the networking platform