If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > convert date during unload

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-10, 11:37
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
convert date during unload

Guys I need to create a data dump of my database so I can load it into SQL Server, in order for me to load it in
SQL Server the date format need's to be "yyyy-mm-dd" is there a way to do this on the unload ? dbexport does not have that option

Any help is appreciated, thanks in advance
Reply With Quote
  #2 (permalink)  
Old 08-28-10, 17:35
Luis Santos Luis Santos is offline
Registered User
 
Join Date: Jun 2009
Location: Lisboa, Portugal
Posts: 51
Hi artemka,

When you do unload to export the data of a table, the system reads your user profile, and uses an environment variable called DBDATE. In that case if you have it like DBDATE=Y4MD- when you export your data from date type comes yyyy-mm-dd, and you dont need nothing for it.
__________________
LS
Reply With Quote
  #3 (permalink)  
Old 08-30-10, 09:30
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
Thank you Luis, I know it had to be something simple ))
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On