LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 10 May 2004 02:28:24 -0700
Reply-To:     Loi Tan Vo <loi.tan.vo@FNH.NO>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Loi Tan Vo <loi.tan.vo@FNH.NO>
Subject:      Insert into MS SQL 2000 by using SAS
Content-Type: text/plain; charset=ISO-8859-1

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 -

Back to: Top of message | Previous page | Main SAS-L page