Hi,
I am having problems importing a particular Excel spreadsheet into a SQL Server table.
I have tried saving the excel file as a tab-delimited text document to import, but if the date is in this format:
"dd/mm/yyyy "
SQL Server 2000 seems to want to convert it into mm/dd/yyyy format which scews up my caculations. I am importing into a datetime column.
Not sure if i need another file type to import from?
SHould i convert the date on the fly in an ActiveX script when i import the data? If so, which VBScript function do i use?
i know there is CDate, and FormatDateTime, but you cant format the date like the VBA function Format(Now(), "dd/mm/yyyy"), what do people suggest?
THanks,
MrPeds
I am having problems importing a particular Excel spreadsheet into a SQL Server table.
I have tried saving the excel file as a tab-delimited text document to import, but if the date is in this format:
"dd/mm/yyyy "
SQL Server 2000 seems to want to convert it into mm/dd/yyyy format which scews up my caculations. I am importing into a datetime column.
Not sure if i need another file type to import from?
SHould i convert the date on the fly in an ActiveX script when i import the data? If so, which VBScript function do i use?
i know there is CDate, and FormatDateTime, but you cant format the date like the VBA function Format(Now(), "dd/mm/yyyy"), what do people suggest?
THanks,
MrPeds