J
JP SIngh
Can someone please suggest the correct way to store the date & time in SQL
Server? I want to store the date and time a record was created.
What should the field type be in SQL Server?
How can I insert the current date/time into the table using SQL?
I used to have date/time field type in access and use the following code
currTime = Now()
SQL="Insert into <table> (id, recDate) Values (" & sId & ", #" & currTime &
"#)"
conn.execute(SQL)
Please can someone suggest what the field type I should be using in SQL
Server to store this date and also what should I replace the line
currTime=Now() to?
thanks in advance
Server? I want to store the date and time a record was created.
What should the field type be in SQL Server?
How can I insert the current date/time into the table using SQL?
I used to have date/time field type in access and use the following code
currTime = Now()
SQL="Insert into <table> (id, recDate) Values (" & sId & ", #" & currTime &
"#)"
conn.execute(SQL)
Please can someone suggest what the field type I should be using in SQL
Server to store this date and also what should I replace the line
currTime=Now() to?
thanks in advance