Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy To for SQL Bulk Insert
Message
De
07/03/2003 18:31:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00762958
Message ID:
00763119
Vues:
15
Unfortunately, the files are too large for a strtran.

>If file is not to big, you can STRTRAN empty dates to nulls.
STRTOFILE( STRTRAN( FILETOSTR("test.txt"), "/  /       :  :", "Null"), "Testnull.txt")
>
>>We are using the following command to create the text file for a SQL bulk insert:
>>
>>
>>Copy To < filename > Delimited With "" With Character "|"
>>
>>
>>We need to be able to propagate nulls for datetime into the SQL but these are being converted to empty datetimes in the text file.
>>
>>We can change nulls to a bogus date like {12/31/9999 12:00:00 AM} and reconvert to null once the data is brought into SQL.
>>
>>Is there a way to preserve the null values as part of the copy to?
>>
>>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform