|
Hi all,
I have a odbc connecting to MS SQL server 2000 and want by using SAS
data step to insert data into a table in MS SQL. For ex.
Proc sql;
INSERT INTO sqllib.Table1(id, Name, Fromdate, tildate)
VALUES(2,'statistic_1','01/01/2004'd,'31/01/2004'd);
run;
Then I got the followings errors
ERROR: Invalid date/time/datetime constant '01/01/2004'd
ERROR: Invalid date/time/datetime constant '31/01/2004'd
How to convert datetime so that the ms sql can understand the
datetime?
Thanks in advance
- Loi -
|