Looks like I'm going to test real power and speed of VFP with SQL Server...
I need to store large binary data (>1MB) in a single field. Tried to use image type on SQL Server, but it is hard to handle it in VFP because it converted to General type. Tried to use text for this, but SQL server (or ODBC?) spoils data by extracting all codes like '5C0A' from binary data (looks weird), so large ZIP file cannot be opened any more.
Question 1. What the best way to store binary data on SQL Server? Is it possible to query data and store image field from SQL Server in memo field in VFP?
Question 2. How to copy content of general field into disk file? For memo field we have 'Copy Memo' command (or FWRITE(nHandle, MyTable.MyLargeMemoField). What is for General? [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
I need to store large binary data (>1MB) in a single field. Tried to use image type on SQL Server, but it is hard to handle it in VFP because it converted to General type. Tried to use text for this, but SQL server (or ODBC?) spoils data by extracting all codes like '5C0A' from binary data (looks weird), so large ZIP file cannot be opened any more.
Question 1. What the best way to store binary data on SQL Server? Is it possible to query data and store image field from SQL Server in memo field in VFP?
Question 2. How to copy content of general field into disk file? For memo field we have 'Copy Memo' command (or FWRITE(nHandle, MyTable.MyLargeMemoField). What is for General? [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]