Можете ли вы объяснить проблему, с которой вы сталкиваетесь с собственным назначением журнала SQL Server? У меня отлично работает.
У меня был пакет, который генерировал предупреждения и ошибки, называемые Package2. Я включил ведение журнала SQL Server
Я выбрал указанные события
И только захватил нужные поля
Я запустил пакет, и он чудесно провалился. Я запросил соединение, которое использовал для регистрации (каталог SSISDB для локального экземпляра с именем localsqla в моем случае)
C:> sqlcmd -S localhost \ localsqlA -d SSISDB -W -Q "SELECT L.id, L.source, L.event, L.message ОТ dbo.sysssislog L WHERE L.starttime> '2012-01 -10' "
И результаты. Они плохо печатаются здесь, поэтому я выделил это с помощью |
(пробел)
id source event message
-- ------ ----- -------
4054 | Package2 | PackageStart | Beginning of package execution.
4055 | Execute SQL Task | OnError | Executing the query "SELECT ? as c1, ? as c2, ? as C3" failed with the following error: "Syntax error, permission violation, or other nonspecific error". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
4056 | Package2 | OnError | Executing the query "SELECT ? as c1, ? as c2, ? as C3" failed with the following error: "Syntax error, permission violation, or other nonspecific error". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
4057 | Execute SQL Task | OnTaskFailed |
4058 | Package2 | OnWarning | SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
4059 | Package2 | PackageEnd | End of package execution.
(6 rows affected)