Hello,
I am trying to connect to a local data source:
[tt]lnHandle = SQLSTRINGCONNECT( "Driver={Microsoft Visual FoxPro Driver}; UID=; PWD=; SourceDB=ex_database.dbc; SourceType=DBC; Exclusive=No; BackgroundFetch=No; Collate=Machine; Deleted=Yes; Null=No" )
SQLEXEC( lnHandle, "SELECT * FROM ex_table", "ex_cursor", laCount )
SQLDISCONNECT( lnHandle )
[/tt]
Everything works fine as long as I have an Integer key in ex_table, but when I change it to Varbinary type SQLEXEC refuses to work and returns a "Not a table" error. What do I have to do in order to use a Varbinary field in my table?
Regards,
Dario
I am trying to connect to a local data source:
[tt]lnHandle = SQLSTRINGCONNECT( "Driver={Microsoft Visual FoxPro Driver}; UID=; PWD=; SourceDB=ex_database.dbc; SourceType=DBC; Exclusive=No; BackgroundFetch=No; Collate=Machine; Deleted=Yes; Null=No" )
SQLEXEC( lnHandle, "SELECT * FROM ex_table", "ex_cursor", laCount )
SQLDISCONNECT( lnHandle )
[/tt]
Everything works fine as long as I have an Integer key in ex_table, but when I change it to Varbinary type SQLEXEC refuses to work and returns a "Not a table" error. What do I have to do in order to use a Varbinary field in my table?
Regards,
Dario