Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS input from Excel

Status
Not open for further replies.

SQLScholar

Programmer
Aug 21, 2002
2,127
GB
Hey all,

I am creating a package to insert an excel file into our DB. Some of the fields are given on the spreadsheet but not all.

One field i want to be todays date, so i have put in Getdate() as fieldname,

but i am getting back an "undefined function in expression getdate".

Any ideas how i can do this?

Dan

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
----------------------------------------
 
There are a couple of options i can think of:

1. Add an Execute SQL task after the import to update the date field for all records with GetDate().
2. Set the Default Value of the Date field in your table to use GetDate(). This is definately the easier option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top