public gnSQLConnection gnSQLConnection = 0 gnSQLConnection = SQLSTRINGCONNECT( "driver={SQL Server};server=(local);database=test;trusted_connection=yes;" ) lcFile = filetostr( "C:\Program Files\VSNET\CompactFrameworkSDK\v1.0.5000\Windows CE\sqlce20sql2ksp2.exe" ) ? sqlexec( gnSQLConnection, "insert into SQLFileStore values ( 'sqlce20sql2ksp2.exe', ?lcFile )" ) ? sqlexec( gnSQLConnection, "select * from SQLFileStore", "sptcursor" ) ? sptcursor.tFileContent == lcFile ? strtofile( sptCursor.tFileContent, "c:\temp\sqlce20sql2ksp2.exe" )the file in his case 13mb in size.
* I have a dbc with a connection and updateable remote view setup to the SQL database use vwSQLFileStore in 0 ? vwSQLFileStore.tFileContent == sptcursor.tFileContent ? vwSQLFileStore.tFileContent == lcFile select vwSQLFileStore append blank replace cFileName with "copied.exe", ; tFileContent with lcFile ? tableupdate( .t., .t., "vwSQLFileStore" ) use use vwSQLFileStore in 0 select vwSQLFileStore locate for cFileName = "copied.exe" ? vwSQLFileStore.tFileContent == lcFileThe database test had this table in it:
create table SQLFileStore ( cFilename char(60), tFileContent text )In all cases the == test succeeds.