Microsoft Jet Drivers for 64bit Windows Server 2008

March 25, 2010 by admin Leave a reply »

I beat my head against my desk for several hours dealing with this issue and didn’t find any very good documentation out there on this issue. When attempting to run a stored procedure on 64bit Windows Server 2008 R2 and in MS SQL Server 2005, which was attempting to read from a table and insert into an Excel spreadsheet using OPENROWSET, I was receiving the following errror:

cannot create an instance of OLE DB provider “Microsoft.Jet.OLEDB.4.0″ for linked server “(null)”

Typically, this error usually means the file listed in your openrowset function call:

1. Does not exist

2. Does not have the appropriate permissions.

3. Is open by another program and locked.

In my situation, that was not the case. In turns out that Microsoft actually stopped supporting Microsoft JET on 64 bit windows. That’s obviously a big problem because many applications still use this. I realize it’s an OLD solution, but it’s still very commonly used.

Luckily, MS just released MS Office 2010 BETA and drivers for that. You can download it from:

http://www.microsoft.com/downloads/details.aspx?familyid=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en#filelist

Once you do that, keep in mind you will NOT be able to use the same driver. You have to change to the ACE driver. Below is a sample of the OPENROWSET connection string.

OPENROWSET(‘Microsoft.ACE.OLEDB.12.0′, ’Excel 12.0;Database=C:\documents\samples\addressbook.xls;’, ’SELECT firstname, lastname, phonenumber FROM [Sheet1$]‘)

OPENROWSET(‘Microsoft.ACE.OLEDB.12.0′,
‘Excel 12.0;Database=C:\inetpub\wwwroot\data.scsp.biz\www\transplantlist_tmp.xls;’,
‘SELECT PatientFirstName, PatientLastName, VisitDate, Weight, TransplantDate,
PatientType, CSA, Tacro, Sirol, Cr, Hgb, WBC
FROM [Shee

7 Responses

  1. Thanks for an idea, you sparked at idea from a perspective I hadn’t considerd before . Now lets see if I can do something with it.

  2. Intriguing , I am curious what the statistics are on your first point there…

  3. locksmith says:

    This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine. Did you acquired lots of links and I see lots of trackbacks??

  4. @Marco I know what your mean. In todays economy its tough to find a career that pays well and is stable . I have discovered that if you just work hard and are consistent you can succeed. Look at the writer of this article, they are oviously hard working and have just been consistent over time and are now enjoying at least what would appear as somewhat of a success. I would encourage everyone to just keep hustling and moving forward.

  5. I would like to thank you for the endeavors you have made in publishing this article. I am trusting the same best work from you in the future as well

  6. Solid post – and solid domain by the way!

Trackbacks/
Pingbacks

  1. REVIEW IT BEFORE YOU BUY IT!!!

Leave a Reply