Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
ATHAR
Starting Member
2 Posts |
Posted - 2008-06-05 : 06:22:57
|
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 messageServer: Msg 7399, Level 16, State 1, Line 5OLE 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 onMicrosoft SQL Server 2000 - 8.00.2039 (Intel X86)Windows 2003, build 3790.srv03_gdr.070301-2306Have checked a number of knowledge base articlesC:\Windows\system32\msjet40.dll version 4.0.8618.0REGEDT32: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC, Administrator/everyone full accessD:\Applications\xxxxxxxxx\AppRoot\xxxxxxxxxSQL\Catalogues has full permissions for Administrator/everyone groupsCan anyone suggest the next step to identifying a possible cause to this issue. |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-06-05 : 06:26:54
|
http://support.microsoft.com/kb/814398 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
ATHAR
Starting Member
2 Posts |
Posted - 2008-06-05 : 07:22:48
|
visakh16Went throguh the steps included in the article, http://support.microsoft.com/kb/814398Identified 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, thanksPesoOur paper product import routine runs locally on the server.Thanks again for your input into helping to sort this issueI may well have plodded on for many days reading this/thatWho knows when I would have found the article aboveNow then |
|
|
|
|
|
|
|