Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY TO command - changing date format
Message
From
23/12/2005 18:04:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
23/12/2005 16:23:12
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01080637
Message ID:
01080647
Views:
15
>Hello,
>I want to perform a COPY TO command to create a delimited file of a SQL Server table. There is a date type field in the table, but in the delimited file I need it to be YYYYMMDD format. Anybody know how I can do that with the COPY TO command? I am hoping to avoid having to write a custom procedure to do this.

select field1, field2, ... dtos(yourdatefield) as field42, field43...;
from yourtable into TheCursor
copy to ...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform