G
Guest
Hi,
I have a table with a field that should store date and time. The table
column data type is datetime.
I am trying
Dim dt as datetime
helper.exeutenonquery(connection,storedprocedure,"testproc",new
sqlparameter("@date",dbtype.datetime,dt.now.tostring()))
I get the error
"Cast form string "11/1/2005 10:43:24 AM" to typr integer is not valid.
Please. What's the recommended way in passing date or datetime to sql server
and waht is the recommended column datatype in sql server. So far I believe
datetime is recommended for sql server but waht if I need to store the date
as 20051101?
Please assist.
I have a table with a field that should store date and time. The table
column data type is datetime.
I am trying
Dim dt as datetime
helper.exeutenonquery(connection,storedprocedure,"testproc",new
sqlparameter("@date",dbtype.datetime,dt.now.tostring()))
I get the error
"Cast form string "11/1/2005 10:43:24 AM" to typr integer is not valid.
Please. What's the recommended way in passing date or datetime to sql server
and waht is the recommended column datatype in sql server. So far I believe
datetime is recommended for sql server but waht if I need to store the date
as 20051101?
Please assist.