SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The OLE DB provider "Microsoft.Jet.OLEDB.4.0" has not been registered.


The OLE DB provider "Microsoft.Jet.OLEDB.4.0" has not been registered.

Author
Message
raym
raym
SSC Veteran
SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)

Group: General Forum Members
Points: 225 Visits: 307
Can someone please help me.

I executed these Commands

EXEC sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'Ad Hoc Distributed Queries', 1;
GO
RECONFIGURE;
GO

--- Error message
Configuration option 'show advanced options' changed from 1 to 1. Run the RECONFIGURE statement to install.
Configuration option 'Ad Hoc Distributed Queries' changed from 1 to 1. Run the RECONFIGURE statement to install.



---I then executed this query

--Insert Data into an EXCEL spreadsheet
INSERT INTO OPENROWSET ('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database = D:\CreditCard\CampaignData.xls;',
'SELECT * FROM [Sheet1$]')

SELECT

Campaign,
ContactNumber,
[Name],
IDNumber,
NewRepeatCat,
OriginalLoanOfficer,
CreationDate,
OrganogramDescription,
ClientNumber,
LoanID,
AccountNumber,
CardNumber,
FinalLoanOfficer,
FinalBranch,
Status,
CardStatus,
StraightLimit
Capital,
StartDate
FROM #CC1
ORDER BY CreationDate


I I got the error message below. How do I fix this? Is it also possible to delete data in the spreadsheet before
inserting.

Msg 7403, Level 16, State 1, Line 1

The OLE DB provider "Microsoft.Jet.OLEDB.4.0" has not been registered.



SQL ORACLE
SQL ORACLE
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2757 Visits: 1314
I may need to run sp_addlinkedserver before uring your query command.
Minaz Amin
Minaz Amin
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1178 Visits: 1750
May be the requested OLE DB provider is not installed in your system. Run component checker ( MDAC) and download the required version from the site. Call up MS Support for the above they will check and download it for you. It may be a free service to guide you to get the correct version of Mdac.

"More Green More Oxygen !! Plant a tree today"
Key DBA
Key DBA
SSC Eights!
SSC Eights! (871 reputation)SSC Eights! (871 reputation)SSC Eights! (871 reputation)SSC Eights! (871 reputation)SSC Eights! (871 reputation)SSC Eights! (871 reputation)SSC Eights! (871 reputation)SSC Eights! (871 reputation)

Group: General Forum Members
Points: 871 Visits: 655
raym,


I second the recommendation to verify your MDAC components.

Troubleshooting Guide:

Component Checker: Diagnose problems and reconfigure MDAC installations
http://support.microsoft.com/kb/307255/


You can download the MDAC Component Checker software tool here:

MDAC Utility: Component Checker
http://www.microsoft.com/downloads/details.aspx?FamilyId=8F0A8DF6-4A21-4B43-BF53-14332EF092C9&displaylang=en

The most recent MDAC version(s) can be found at:

Microsoft Data Access Components (MDAC) 2.8
http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c&displaylang=en

and

Microsoft Data Access Components (MDAC) 2.8 SP1
http://www.microsoft.com/downloads/details.aspx?familyid=78cac895-efc2-4f8e-a9e0-3a1afbd5922e&displaylang=en


Hope This Helps

"Key"
MCITP: DBA, MCSE, MCTS: SQL 2005, OCP
Linda Johanning
Linda Johanning
Mr or Mrs. 500
Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)

Group: General Forum Members
Points: 587 Visits: 623
Actually, you may want to try creating a linked server and see if you get the same error. I scripted a linked server and got the message "The OLE DB provider "MSDAORA" has not been registered." only because the linked server had a missing or wrong configuration. So you might want to do a little testing first. I always found it easier to use a linked server instead of OPENROWSET--but that's just me :-)



Lorenzo DBA
Lorenzo DBA
SSC Rookie
SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)

Group: General Forum Members
Points: 43 Visits: 217
If you are running 64 bit SQL Server 2005 it may not be possible.
I found the the MDAC linked server for Excel only works in 32 bit.
I use SSIS to import Excel Data into 64 bit SQL 2005.
isd83
isd83
SSC-Enthusiastic
SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)

Group: General Forum Members
Points: 109 Visits: 574
has anyone have success with the latest 64-bit OleDB driver. I have installed the 64-bit Oledb driver but still not able to import Excel data into a sql db.



Jamie-2229
Jamie-2229
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3152 Visits: 838
I did not mess with the 64 bit MDAC... the version on server 2008 was higher than the listed MDAC patch so I believe the problem lay elsewhere.

I checked a couple of other items. First, that it was possible that the registration needed a kick start so I simply added a dummy Access database to the linked servers and seeing it was there in full, I found another issue that resolved my problem.

In the project file, Configuration Properties, Debugging, there is an option to set 64 bit debugging to true or false. Once it was set to false, I stopped receiving the error. I'm not sure the answer was just the one step, so I include the other step (Jump Start above) as a reference.

Jamie
azzil
azzil
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 0
Please explain in more detail about the fix you found "In the project file, Configuration Properties, Debugging, there is an option to set 64 bit debugging to true or false."

I am also receiving the error "The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine." when trying to run custom software on my machine. System is Windows Vista Home Premium Service Pack 2 64-bit Operating System.

I dropped msjetoledb40.dll directly into the System 32 folder but that did not work.
Jamie-2229
Jamie-2229
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3152 Visits: 838
In the project file, Configuration Properties, Debugging, there is an option to set 64 bit debugging to true or false. Once it was set to false, I stopped receiving the error.


If the question was directed elsewhere, my apologies - otherwise, this is all I have.

Jamie
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search