Re: Database Connection

From: John Smith (notmyreal_at_address.com)
Date: 11/17/04


Date: Wed, 17 Nov 2004 15:46:18 -0500

Database Software: FoxPro 7

I installed the VFPOLEDB.DLL for FoxPro 8. The software vendor uses VFP 7
for their database and I want to connect to it to generate custom reports
through asp.net (vb). I tried to connect to the database and get the error
message below. I even tried to manually registering VFPOLEDB.DLL and the
register succeeded. Any ideas? I have search all day trying to find the
solution to this, so far I have had no success. Any help would be much
appreciated.

--------------------------------------------------
CONNECTION STRING:
--------------------------------------------------
Connection String: "Provider=VFPOLEDB.1;Data Source='c:\data';Collating
Sequence=general"

--------------------------------------------------
ERROR MESSAGE:
--------------------------------------------------
Server Error in '/MeetingReports' Application.

No error information available: REGDB_E_CLASSNOTREG(0x80040154).
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: No error information
available: REGDB_E_CLASSNOTREG(0x80040154).

Source Error:

    Line 73:
    Line 74: '*** Fill DataSet with the current returned records ***
--> Line 75: objOleDbDataAdapter.Fill(objDataSet, DataTableName)
    Line 76:
    Line 77: '*** Fill DataGrid Control with DatatTable ***

Source File: c:\inetpub\wwwroot\xxx\0.aspx.vb Line: 75

Stack Trace:

[OleDbException (0x80040154): No error information available:
REGDB_E_CLASSNOTREG(0x80040154).]

[InvalidOperationException: The 'VFPOLEDB.1' provider is not registered on
the local machine.]
   System.Data.OleDb.OleDbConnection.CreateProviderError(Int32 hr) +81
   System.Data.OleDb.OleDbConnection.CreateProvider(OleDbConnectionString
constr) +107
   System.Data.OleDb.OleDbConnection.Open() +203
   System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection,
ConnectionState& originalState) +44
   System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +304
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior) +77
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
+36
   MeetingReports._0.PopulateDataGridControl(DataGrid DataGridControl,
String sqlStatement, String DataTableName) in
c:\inetpub\wwwroot\xxx\0.aspx.vb:75
   xxx._0.popDataGrid(DataGrid DataGridControl) in
c:\inetpub\wwwroot\xxx\0.aspx.vb:114
   xxx._0.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\xxx\0.aspx.vb:26
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +731

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:uyKGRePyEHA.1196@TK2MSFTNGP15.phx.gbl...
> Hi John,
>
> You can read about the OLE DB Driver for Visual FoxPro at the following
URL:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fox7help/html/dggrfOLEDBProviderforVisualFoxPro.asp
>
> You can get good Connection Strings from http://www.connectionstrings.com.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
>
> "John Smith" <notmyreal@address.com> wrote in message
> news:O1XERZPyEHA.1204@TK2MSFTNGP10.phx.gbl...
> > How do I connect to a FoxPro 7 database?
> >
> >
>
>



Relevant Pages

  • Re: Word mail merge with foxpro
    ... > I am trying to connect to a dbf fine not the database. ... >> I do not think you will be able to open a .dbc using ODBC by selecting ... >> using that approach (in the Select Data Source dialog, ... >>> Firstly the files of type drop down does not give a foxpro option. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Access 2000 run-time error 80004005 - HELP
    ... try changing the column definition (make a backup of the ... > destination table is a linked table originating from a FoxPro v3 database. ... it appears MS is letting FoxPro die a slow death. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Access 2000 run-time error 80004005 - HELP
    ... You could get the VFPOLEDB driver instead. ... I think Acess 2000 can use an OLE DB connection - it least programmatically. ... > destination table is a linked table originating from a FoxPro v3 database. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Need to open Visual Fox Pro 8 tables in VB6
    ... There are several formats of Visual FoxPro files. ... VFP6 and below are readable via ODBC. ... "database container". ... Data Sources. ...
    (microsoft.public.vb.database.dao)
  • AS400 database access over COM+ (ADO.Net + C#)
    ... When I want to access AS400 database i use some code like the following: ... OleDbConnection objConnection = new OleDbConnection ... OleDbDataAdapter objDataAdapter = new OleDbDataAdapter(strSelectCommand, ... "No error information available E_NOINTERFACE" ...
    (microsoft.public.dotnet.languages.csharp)