Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Ron Norman
  Where is Ron Norman?
 San Diego
 California - United States
 Ron Norman
 To: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 Tags
Subject: RE: ASP.NET/VB connect to VFP using VFPOLEdb
Thread ID: 210259 Message ID: 210390 # Views: 30 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: ODBC, ADO and OLEDB
Date: Monday, January 05, 2009 5:08:20 PM         
   


> You need this one:
>
Dim m_connString As String = "Provider=VFPOLEDB;Data Source=c:\database\main.dbc"

> This one uses the default mode 16, "Share Deny None".
>
>
Dim m_connString As String = "Provider=VFPOLEDB;Data Source=c:\database"

> would also work, provided the tables are in that folder (if you are not using fullpath).
>
> When you get such a message about the dbc you can say that it is in exclusive use somewhere.
>
> Cetin Basoz

Cetin...thank you for your assistance.
I used the following:
Dim m_connString As String = "Provider=VFPOLEDB;Data Source=c:\database\"

This connection string works fine IF I do NOT have the database opened in SHARE mode using VFP 9. When I do have it opened SHARE in VFP9 I get the same "cannot open the c:\database\main.dbc" error message. No difference from what I was getting.

I am the only one using my computer and I only have 1 instance of VFP running and a "Display Status" shows the main.dbc opened. When opening main.dbc I used "Open Database main SHARED".

Thanks again...other ideas? If there were some corruption with the main.dbc or missing tables/etc. from the directory (we use the same directory for the main.dbc and all tables/etc.) would that cause a problem like this? Also, the main.dbc was originally created with vfp 5.0 possibly. We jumped from 5.0 to 9sp2 last June 2008.
Ron



COMPLETE THREAD
ASP.NET/VB connect to VFP using VFPOLEdb Posted by Ron Norman @ 1/5/2009 1:07:57 AM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Cetin Basoz @ 1/5/2009 10:45:23 AM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Ron Norman @ 1/5/2009 5:08:20 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Cetin Basoz @ 1/5/2009 5:45:07 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Ron Norman @ 1/5/2009 8:55:23 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Cetin Basoz @ 1/5/2009 10:36:42 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Ron Norman @ 1/5/2009 11:22:26 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Samir Ibrahim @ 1/7/2009 5:11:57 PM