Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Multiple Copies of the same Database in SFQuery
Message
From
03/02/2004 12:35:40
 
 
To
03/02/2004 12:07:31
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00869941
Message ID:
00873491
Views:
11
>Hi Claude.
>
>>This is the code for "GetDataSources"
>>
>>lparameters toApplication, toDatabase
>>local loDataSource
>>loDataSource = toDatabase.DataSources.AddItem('VFP', 'My Datasource 1')
>>loDataSource.Database = 'c:\apps\medstvfp7\medstvfp.dbc'
>>loDataSource = toDatabase.DataSources.AddItem('VFP', 'My Datasource 2')
>>loDataSource.Database = 'k:\medstkvfp.dbc'
>>
>>based on your previous posting. k is the letter to which network drive is mapped. Data dicitionary for local drive is already entered.
>
>I checked the code for the Open Databases menu item and think I see the problem: ensure your database is flagged as the "main" database. To do that, select the database's node under the Data Dictionary section and turn on the Main Database property.
>

The check box for "Main Database" is checked. If I uncheck it I get an error message that no databases are avialalble for querying"

>Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform