Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shared Connection Problem
Message
From
14/07/2005 07:13:06
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01032328
Message ID:
01032552
Views:
17
Hi Mark,

BOb Archer supplied the answer. Apparently this is a design change in VFP9. You can get a sharable connection using the syntax
ConnString = 'dsn=YourDataBase;uid=YourUserID;pwd=YourPassWord;QueryLogFile=No'
nHnd = SQLSTRINGCONNECT(ConnString,.T.)
but to actually open multiple views you need to get a second handle from the first one as
nHnd2 = SQLCONNECT(nHnd)
With nHnd2 you can open multiple views with no problem.

Regards,
Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform