Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sqlpassthrough connection
Message
From
19/09/2002 08:36:25
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00697399
Message ID:
00702208
Views:
38
Hi Mark,

I already tried what you suggested but still the result set is not up to date.
this is the connection string that I made in the load event of my form

Public VCONNSTR2,PVDBCPATH
PVDBCPATH = F:\ACCTFILE\ACCOUNTING.DBC
sConn = "Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceDB="
sConn = sConn+pvDBCPath+";SourceType=DBC;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"
Open Database &pvDBCPath
DBSETPROP("ACCTGCONN","CONNECTION","CONNECTSTRING",sConn)
nConn = SQLSTRINGCONNECT(sConn)

IF nConn>0
VCONNSTR2 = sConn
ELSE
=MESSAGEBOX('Cannot connect to Static Database!',0+16,'Connection Problem')
RETURN
ENDIF
thisform.vconnstr2 = SqlStringConnect(vConnStr2)

&& So when I query a remote table, I do it this way
csql = [select * from Accounting!items]
sqlexec(thisform.vconnstr2,csql,'cur_items')


is there a possible way on how to refresh my connection to the database?
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform