Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO command - changing date format
Message
De
23/12/2005 18:04:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
23/12/2005 16:23:12
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01080637
Message ID:
01080647
Vues:
16
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform