![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Do anyone know where to find the package log details that can be displayed by right-clicking a package and choosing "Packages Logs..."? It would be very useful to be able to query this table or tables. TIA! dj |
#3
| |||
| |||
|
|
This should help some... SELECT logdate, a.name, b.stepname, c.DTSStepDescription, b.starttime, b.endtime, b.elapsedtime, b.progresscount, b.errorcode, LEFT(b.errordescription,3000), b.stepexecutionid, @syncDate FROM msdb..sysdtspackagelog a JOIN msdb..sysdtssteplog b ON a.lineagefull=b.lineagefull LEFT JOIN PackageStepXref c ON a.name=c.DTSPackageName AND b.stepname=c.DTSStepName WHERE logdate IN (SELECT DISTINCT logdate FROM msdb..sysdtspackagelog WHERE logdate > DATEADD(HOUR,-12,GETDATE())) ORDER BY stepexecutionid dj wrote: Do anyone know where to find the package log details that can be displayed by right-clicking a package and choosing "Packages Logs..."? It would be very useful to be able to query this table or tables. TIA! dj |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |