Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert Binary to String for SQL Update
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01524435
Message ID:
01524587
Views:
60
Hi Ellis,

VFP 9 allows for binary updates via the MapBinary option to CursorSetProp:
	*** Map binary fields to BLOB/VarBinary
	CURSORSETPROP("MapBinary",.T.,0)
You can then use named parameters to set the value and VFP will do the binary translation.
update table where id=?lcId set binField=?lvBinValue
One of the nicest features in VFP 9 IMHO along with automatic Unicode mapping support for ODBC data.

+++ Rick ---


>Hi,
>
>I have a SQL query that selects PersonID, which is a Binary - 10. I need to build a SQLQuery string to update a different table with various values, including the PersonID. How do I convert the PersonID to a string, suitable to include in my "Update Table2 set PersonID = ????"
>
>Thanks!
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform