Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEdb Question
Message
From
05/06/2002 15:58:13
 
 
To
05/06/2002 15:46:56
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00665118
Message ID:
00665119
Views:
14
Calvin,

You only need one connection if all your tables and views are in the same MDB:
lnConnection = SQLSTRINGCONNECT(lnConnectionStr)
SQLEXEC(lnConnection ,"some sql stmt","tablename")
SQLEXEC(lnConnection ,"some sql stmt","tablename")
>I am trying to access data in an Access Database using OLEDB. I am not sure I understand how this works. Once I establish a connection can I open multiple views using that connection, or do I have to establish a connection for each view that I open. I am using the following form:
>
>lnConnectionStr="Driver={Microsoft Access Driver (*.mdb)} Dbq=path and mdb name Uid=Admin Pwd="
>
>If that succeeds can I then open multiple tables using this format:
>LnTable1=SQLSTRINGCONNECT(lnConnectionStr)
>LnTable2=SQLSTRINGCONNECT(lnConnectionStr)
>r=SQLEXEC(lnTable1,"some sql stmt","tablename")
>s=SQLEXEC(lnTable2,"some sql stmt","tablename")
>
>Thanks for any and all help!
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform