Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SqlStringConnect
Message
From
12/09/2008 11:50:45
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SqlStringConnect
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347085
Message ID:
01347085
Views:
64
I have a VFP database that I am trying to access with a SQLStringConnect(). My connection handle seems to get created but the SQLEXEC() returns a -1 and AERROR() says 'Connectivity error, Not a Table'.

Here are the commands I am using:
lc_ConnectionString = ;
	"Driver={Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=C:\mydir\mydatabase.dbc;Exclusive=No; NULL=NO;Collate=Machine;BACKGROUNDFETCH=NO;DELETED=NO;"
lc_sql = "SELECT * FROM mytable"
ln_results = SQLEXEC(ln_conn, lc_sql, [c_results])   &&Returns a -1
How can I get this to work?

Thanks,

Jerry
Next
Reply
Map
View

Click here to load this message in the networking platform