Re: Provider=Microsoft.Jet.OLEDB.4.0



In my experience the "extended properties" information for Jet connections has always needed to be enclosed in double-quotes of its own (both for connecting to Excel workbooks and text file databases).

For example:
sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & sXlPath & ";" & _
"Extended Properties=""Excel 8.0;HDR=Yes"""

So the contents of sConnString after the assignment would be (this should be all one one line):
Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=C:\Inetpub\wwwroot\BeneFeedProcessor\bin\bene1.xls;Extended Properties="Excel 8.0;HDR=Yes"

The value of the HDR property tells Jet whether the first row in a named range contains column names or data. HDR=YES tells Jet to use the values in the first row for names and HDR=NO does the opposite.

dshort1225 wrote:
I am having some issues running an asp.net app on windows 2000 with .net Framework 1.1. The win 2000 server is a test server and the app was tested successfully approx 6 months ago on this server, the part of that app that is now failing is:

Dim oleConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=C:\Inetpub\wwwroot\BeneFeedProcessor\bin\bene1.xls;" & "Extended Properties=Excel 8.0;"
'*************************************************
' Create the connection object
Dim oleConn As New OleDbConnection(oleConnString)
' Open connection with the database.
oleConn.Open()

It fails on the open statement, the system is setup to auto install patches, could there be a patch that may be causing this issue?

Thanks,


.



Relevant Pages

  • Re: ADO Connection Timeout
    ... so what happens when a connection failure forces one station to revert ... to a local database? ... Further, you *will* have contention issues, Jet does not support record ... to the central server, but you are willing to live with periods where it ...
    (microsoft.public.data.ado)
  • Re: ADO connect string question
    ... > I am learning about the connect string using thekb on microsoft web as ... your connection string: ... Provider for Microsoft Jet ... Now, after all that, I recommend that you continue to use DAO to access Jet ...
    (microsoft.public.vb.general.discussion)
  • Re: OleDbException: Could not update; currently locked
    ... Are you using one connection or multiple? ... the OleDB .Net provider is still using Jets OleDB provider. ... independent Jet session. ... dbParams, Object& executeResult) at ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: test connection failed
    ... .udl contains connection string and path to database (for Microsoft Jet ... Check also that you have Jet provider installed or install Jet SP from ...
    (borland.public.delphi.database.ado)
  • Re: database trying to open localy instead of off server.
    ... the only connection I can make to the server ... and bot of these fail if I use them in the connection string. ... that will cause access/asp to look on the website for the database. ... Jet OLEDB:Database Locking Mode=1; ...
    (microsoft.public.access.gettingstarted)