Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL PT for Memo fields
Message
De
02/11/2004 10:21:43
 
 
À
01/11/2004 19:04:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00956784
Message ID:
00957022
Vues:
22
Put your text file into a variable.

lcMemo = your text file.

Then
SQLEXEC(ch,"INSERT INTO mytable (field1,field2,mmemofld) VALUES (?cValue1,?cvalue2,?lcMemo)")
Or if doing an update
SQLEXEC(ch,"UPDATE mytable SET mmemofld = ?lcMemo WHERE pk = ?yourpk")
>Hi all
>
>I need to seek your advice on how to convert the following to use SQL PT to insert /update varchar fields in MSSQL from a text file :
>
>INSERT INTO mytable (field1,field2,mmemofld) VALUES
> (cvalue1,cvalue2,"") APPEND MEMO mmemofld FROM (".\mytext.txt")
> OVERWRITE
>
>
>Thanks & Best Regards
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform