Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
Author
Message
Posted Sunday, March 17, 2013 4:31 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, August 22, 2014 12:24 PM
Points: 2,829, Visits: 8,477
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: Wednesday, August 27, 2014 12:36 PM
Points: 30, Visits: 393
I would imagine this has never been fixed (dates to 2001)

http://support.microsoft.com/kb/223180
Post #1433146
Posted Wednesday, March 20, 2013 6:04 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: 2 days ago @ 1:00 PM
Points: 4,196, Visits: 3,235
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'
WITH (DATAFILETYPE = 'CHAR',
FIRSTROW = 2,
FORMATFILE = 'D:\format_file.xml',
MAXERRORS = 0);

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.

HTH



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