Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert VFP Memo field to SQL Server Image Field
Message
From
11/07/2006 12:44:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/07/2006 12:32:29
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01135374
Message ID:
01135403
Views:
11
>Ok I put this code in but now on the SQLEXEC insert I get an error message as follows "Arithmetic overflow error converting numeric to data type varchar"
>
>Thanks Again !
Stephen,
Sorry rereading the code I've sent I made a mistake:
Select * from myTable into cursor crsTransfer readwrite
update crsTransfer set myMemo = "0x"+strconv(myMemo,15)
SQLPREPARE(m.nHandle,"insert into myTestdata..myTable (field1,field2,imageField) values "+;
 "(?crsTransfer.field1,?crsTransfer.field2,?crsTransfer.myMemo)")
scan
SQLExec(m.nHandle)
endscan
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform