hmmmheres the code of the stored procedure: CREATE PROCEDURE sp_enum_dtssteplog @lineagefull UNIQUEIDENTIFIER = NULL, -- all steps in this package execution @stepexecutionid BIGINT = NULLAS SET NOCOUNT ON --// This is used for realtime viewing of package logs, so don't error if no entries --// found, simply return an empty result set. --// This query must be restricted within a single package execution (lineage); it may --// be further restricted by stepexecutionid to a single step within that package execution. SELECT stepexecutionid, lineagefull, stepname, stepexecstatus, stepexecresult, starttime, endtime, elapsedtime, errorcode, errordescription, progresscount FROM sysdtssteplog WHERE (@lineagefull IS NULL OR lineagefull = @lineagefull) AND (@stepexecutionid IS NULL OR stepexecutionid = @stepexecutionid) ORDER BY stepexecutionid RETURN 0 -- SUCCESSGO
The following error is produced by running the code below: Server: Msg 213, Level 16, State 7, Procedure sp_enum_dtssteplog, Line 11Insert Error: Column name or number of supplied values does not match table definition.--------DROP TABLE #dtsStepLogSELECT stepexecutionid, lineagefull, stepname, stepexecstatus, stepexecresult, starttime, endtime, elapsedtime, errorcode, errordescription, progresscountINTO #dtsStepLogFROM msdb.dbo.sysdtssteplogTRUNCATE TABLE #dtsStepLogINSERT #dtsStepLog EXEC msdb.dbo.sp_enum_dtssteplog null, null
clues anyone? (did all the above with sa login)