Discussion Locked

Query returns date in different formats

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Why does my SQL query return the date in two different formats? After spooling the results to a text file and importing it into Lotus 1-2-3, the date column is in both the date format and character format. Is this a Lotus problem or is it from thequery side?

7 replies

by estebandelatorre

Due to the fact that the text file spooled by the sql server query is A TEXT file, lotus can think of that data (columm) as text or as a date unless you specify what kind of data are you importing.

by shanghai sam

How do I specify the type of data to import? It does not ask me for the data type of the column. I know how to do it in Excel but it does not work still.

by tink

Rather than spooling the results to a text file, run the query through a Query Window. What format is the date in? Are you getting two formats in the result set?

by shanghai sam

It returns the results in date format. However I want to import the results in Lotus so this still does not solve the problem.

by nick2001

check your database parameter for date format (like NLS_DATE_FORMAT). Your database format and client format should be different.

This discussion is closed to new replies.