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


XLSX Import Error: result code db_sec_E_auth_failed


XLSX Import Error: result code db_sec_E_auth_failed

Author
Message
homebrew01
homebrew01
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12568 Visits: 9222
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.



batesview
batesview
SSC-Enthusiastic
SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)

Group: General Forum Members
Points: 162 Visits: 422
I would imagine this has never been fixed (dates to 2001)

http://support.microsoft.com/kb/223180
Ed Wagner
Ed Wagner
SSC Guru
SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)

Group: General Forum Members
Points: 50149 Visits: 10844
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. w00t

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
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