Solved

Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server ""

Posted on 2006-06-27
4
5,783 Views
Last Modified: 2008-01-09
Hi guys,
I need help!!! I created a linked server that connects to Access Database but when I call the page from the browser it shows me this error

Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server ""

EXEC earth.dbo.sp_addlinkedserver
@server = N'FLEXPROACCESS',
@srvproduct=N'Ms Access',
@provider=N'Microsoft.Jet.OLEDB.4.0',
@datasrc=N'C:\ASP.net Projects\FlexPro DB.mdb'

What do I have to do??? I need this working.
Thanks
Carol
0
Comment
Question by:Carolinat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 16993923

EXEC earth.dbo.sp_addlinkedserver
@server = N'FLEXPROACCESS',
@srvproduct = 'OLE DB Provider for Jet',
@provider=N'Microsoft.Jet.OLEDB.4.0',
@datasrc=N'C:\ASP.net Projects\FlexPro DB.mdb'
0
 

Author Comment

by:Carolinat
ID: 16993975
Still shows me this error

Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "FLEXPROACCESS".
OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "FLEXPROACCESS" returned message "Unspecified error".
0
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 500 total points
ID: 16997375
Why are you linking the server every time from the page? Once it's linked once it should stay there permanently.

Therefore you should only have to run sp_AddLinkedServer once, which will create a linked server called FLEXPROACCESS

From then on you should be able to access your tables something like this:

SELECT * FROM FLEXPROACCESS...TableName


Regarding the actual error, try running Filemon to see if there is a permissions issue when trying to use the driver.


The JET driver needs to do some silly thing like create a temporary file in the windows folder and iften the user doesn't have access to do that (which is prettyy much the way you want it with a web user anyway)

0
 

Author Comment

by:Carolinat
ID: 17074315
It was a security problems that was solved with this site

http://support.microsoft.com/?scid=kb;en-us;Q317012  “Process and request identity in ASP.NET”

0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question