Solved

MS SQL 2000 (Jobs) recurrent error message                (Error = -2147217900 (80040E14))

Posted on 2008-10-21
2
565 Views
Last Modified: 2013-11-30
Hi!

We have 200 - 300 Jobs programmed in MS SQL Server 2000 that run different Data Transformation Services packages at different times of the day -mainly reports.

We've come up with a recurrent error, at least 10 times a day with different jobs.
When looking at the Job History for the error, it goes like this:



Executed as user: [can't tell]\Administrator. .....  
DTSRun OnStart:  DTSStep_DTSExecuteSQLTask_6   DTSRun OnFinish:  DTSStep_DTSExecuteSQLTask_6  
DTSRun OnStart:  DTSStep_DTSExecuteSQLTask_4   DTSRun OnFinish:  DTSStep_DTSExecuteSQLTask_4  
DTSRun OnStart:  DTSStep_DTSActiveScriptTask_2   DTSRun OnFinish:  DTSStep_DTSActiveScriptTask_2  
DTSRun OnStart:  DTSStep_DTSExecuteSQLTask_3   DTSRun OnFinish:  DTSStep_DTSExecuteSQLTask_3  
DTSRun OnStart:  DTSStep_DTSActiveScriptTask_5   DTSRun OnFinish:  DTSStep_DTSActiveScriptTask_5  
DTSRun OnStart:  DTSStep_DTSActiveScriptTask_1   DTSRun OnFinish:  DTSStep_DTSActiveScriptTask_1  
DTSRun OnStart:  DTSStep_DTSActiveScriptTask_3   DTSRun OnFinish:  DTSStep_DTSActiveScriptTask_3  
DTSRun OnStart:  DTSStep_DTSExecuteSQLTask_1   DTSRun OnError:  
DTSStep_DTSExecuteSQLTask_1, Error = -2147217900 (80040E14)      
Error string:  OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.        
Error source:  Microsoft OLE DB Provider for SQL Server     . The step failed.


We do pass information from SQL Server to Excel files ('Microsoft.Jet.OLEDB.4.0') at some point in our queries.
But, how come it works most of the time, and all sudden reporte failures?

The part of the query we use follows.

Thank you for your help.



--we pass a parameter that tells where the Excel file is "@filepath"
 
declare @DataSource 	varchar(600)
set @DataSource = 'Excel 8.0;HDR=NO;Database='+ @FilePath + ';'
 
 
exec ('
              insert into
              OPENROWSET(''Microsoft.Jet.OLEDB.4.0'',''' + @DataSource + ''', ''SELECT * FROM [Sheet1$A4:L4]'')
              select *
              from   dbo.temp_Table
')

Open in new window

0
Comment
Question by:hispanicteleservices
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Expert Comment

by:James Murrell
ID: 22767890
This error means... if you try to insert/update a column that does not allow NULL values, with NULL (e.g. by hard-coding NULL into the statement, or by leaving a column - that does not have a default value defined - out of the INSERT list).
0
 

Accepted Solution

by:
hispanicteleservices earned 0 total points
ID: 22820381
We appreciate the attemp.
I have no doubt Error -2147217900 (80040E14)      would be, under most circumstances, caused by what's been stated.
However, this was more of a traffic problem. we just had too much Jobs traffic. After moving some really heavy tasks to other schedules, the Jobs didn't fail anymore.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question