Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

XLSX Import Error: result code db_sec_E_auth_failed Expand / Collapse
Posted Sunday, March 17, 2013 4:31 PM



Group: General Forum Members
Last Login: Wednesday, January 13, 2016 9:57 AM
Points: 2,881, Visits: 8,808
I'm trying to import a 190 meg .XLSX file to a SQL 2008 (not R2) server. First, I installed "Office 12.0 Access Database Engine OLD DB Provider". But I get the error:

"Operation Could Not Be Completed. No Error message available. Result code db_sec_E_auth_failed"

I found a suggestion to go to the properties tab and insert the path & file name, which now give me the error:

DB_E_ERRORSOCCURRED(0x80040E21). System Data.

Any thoughts ? I have a 2005 server available, but assumed the 2008 (not R2) server would be better to try.

Post #1432043
Posted Wednesday, March 20, 2013 5:43 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Saturday, December 19, 2015 11:32 AM
Points: 30, Visits: 422
I would imagine this has never been fixed (dates to 2001)
Post #1433146
Posted Wednesday, March 20, 2013 6:04 AM


Group: General Forum Members
Last Login: Yesterday @ 7:22 PM
Points: 7,993, Visits: 7,278
I must admit that the largest file I've done is a 261 MB text file what was delimited AND fixed-width. Yes...delimited and fixed-width in the same file.

The way I did it was by using a BULK INSERT and a format file.

  BULK INSERT table_name
FROM 'D:\data_file.txt'
FORMATFILE = 'D:\format_file.xml',

It does take some work to set up the format file at first, but then it's repeatable. The throughput is simply amazing. If you have any character data that's too long for the fields you define in your incoming data table, the error is much nicer than the ever-annoying "string or binary data would be truncated" error that doesn't give you a field or line or anything to go on. When using the BULK INSERT, it tells you right where the problem is.

The first thing I would do is to get the data out of the Excel if possible. Try getting it to a flat-file and working with it from there. This will take the Excel driver out of the equation.


Tally Tables - Performance Personified
String Splitting with True Performance
Best practices on how to ask questions
Post #1433155
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse