Decrease Font Size
Increase Font Size
   BLOG

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

by bryian 24. August 2009 17:47

CREATE THE LINKSERVER FROM Excel

OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "TestLinkServer" returned message "Cannot start your application. The workgroup information file is missing or opened exclusively by another user.".

Msg 7399, Level 16, State 1, Procedure sp_tables_ex, Line 41 The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "TestLinkServer" reported an error. Authentication failed.

Msg 7303, Level 16, State 1, Procedure sp_tables_ex, Line 41 Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server " TestLinkServer".

If you happen to come across the error mentioned above, here the solution that work for me.

Step to re-produce the problem.

--CREATE THE LINKSERVER FROM Excel
EXEC sp_addlinkedserver

   @server = N'TestLinkServer',
   @provider = N'Microsoft.Jet.OLEDB.4.0',
   @srvproduct = N'Excel',
   @datasrc = N'c:\test\book1.xls',
   @provstr = N'Excel 8.0'
GO

--List all the sheets in the Excel
EXECUTE SP_TABLES_EX 'TestLinkServer'  -- throw the error message

--Solution
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'TestLinkServer',
                        @useself=N'False',
                        @locallogin=NULL,
                        @rmtuser=NULL,
                        @rmtpassword=NULL

Tags: , , , ,

SQL

Comments

1/18/2010 6:43:50 PM #

online payday loans

You always pass failure on the way to success.

online payday loans United States

1/22/2010 5:05:35 AM #

payday loans

No one has a greater asset for his business than a man's pride in his work.

payday loans United States

2/9/2010 3:49:18 AM #

Played Online

Your post is just the same to the thoughts I was having today. I really appreciate this. Keep going what you're doing.This is an awfully splendid column you've put up there.Nicepost I have acquired a lot of interesting matter that i need.....

Played Online United States

2/25/2010 5:10:12 AM #

Watch Pacquiao Vs Clottey Live

your blog is very imformative and i learn a lot from it.
Thanks for sharing.

regards,

rosela

Watch Pacquiao Vs Clottey Live United States

2/25/2010 5:24:02 AM #

Webthesurfi Rugs Webdesign

very entertaining and informative blog. Ill be back..

Webthesurfi Rugs Webdesign United States

2/25/2010 5:25:09 AM #

Watch Pacquiao Vs Clottey Live

your blog is very imformative and i learn a lot from it.
Thanks for sharing.

regards,

rosela

Watch Pacquiao Vs Clottey Live United States

Add comment


(Will show your Gravatar icon)

  Country flag

Click to change captcha
biuquote
  • Comment
  • Preview
Loading