Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL PT for Memo fields
Message
From
02/11/2004 10:21:43
 
 
To
01/11/2004 19:04:01
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00956784
Message ID:
00957022
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform