SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 IDBInitialize::Initialize returned 0x80004005
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ATHAR
Starting Member

2 Posts

Posted - 06/05/2008 :  06:22:57  Show Profile  Reply with Quote
When executing the following SQL statement we get the error as message below:

INSERT INTO [dbo].[ProductImport] ([CustomerName], [AccountCode], [ProductCode], [Description1],
[Description2], [MaterialType], [Brand], [PGroup], [Type], [GSM], [Colour], [Size1], [Size2], [Microns],
[PriceQuantity], [PriceUnit], [Packed], [Price], [MinQuantity], [TonnePrice], [LeadTime], [WebURL])

SELECT [CustomerName], [AccountCode], [ProductCode], [Description1], [Description2], [MaterialType], [Brand],
[PGroup], [Type], [GSM], [Colour], [Size1], [Size2], [Microns], [PriceQuantity], [PriceUnit], [Packed], [Price],
[MinQuantity], [TonnePrice], [LeadTime], [WebURL]
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'
Text;Database=D:\Applications\xxxxxxxxx\AppRoot\xxxxxxxxxSQL\Catalogues;HDR=YES
', 'SELECT * FROM [product_test.csv]')
AS ImportFile WHERE [ImportFile].[MaterialType] IN (1, 2, 3, 4)



Error message
Server: Msg 7399, Level 16, State 1, Line 5
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
[OLE/DB provider returned message: Unspecified error]
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0' IDBInitialize::Initialize returned 0x80004005: ].




This is being run on
Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
Windows 2003, build 3790.srv03_gdr.070301-2306


Have checked a number of knowledge base articles
C:\Windows\system32\msjet40.dll version 4.0.8618.0

REGEDT32: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC, Administrator/everyone full access

D:\Applications\xxxxxxxxx\AppRoot\xxxxxxxxxSQL\Catalogues has full permissions for Administrator/everyone groups

Can anyone suggest the next step to identifying a possible cause to this issue.

visakh16
Very Important crosS Applying yaK Herder

India
47157 Posts

Posted - 06/05/2008 :  06:26:54  Show Profile  Reply with Quote
http://support.microsoft.com/kb/814398
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
29138 Posts

Posted - 06/05/2008 :  06:28:45  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Can your SQL Server reach the D: path? All paths are relative to your server´, not your workstation.
Do the SQL Server has security access to the path mentioned?

Temporarily switch to another provider for possible more error information as seen here
http://weblogs.sqlteam.com/peterl/archive/2007/10/24/Getting-errors-when-working-with-Excel-and-SQL-Server.aspx



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

ATHAR
Starting Member

2 Posts

Posted - 06/05/2008 :  07:22:48  Show Profile  Reply with Quote
visakh16
Went throguh the steps included in the article, http://support.microsoft.com/kb/814398
Identified that the user account a different user, setup the temporary folder with full permissions to user and configures TMP/TEMP variables, following restart, this has now been resolved, thanks

Peso
Our paper product import routine runs locally on the server.

Thanks again for your input into helping to sort this issue
I may well have plodded on for many days reading this/that
Who knows when I would have found the article above



Now then
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000