Home Forums Article Discussions Article Discussions by Author Discuss Content Posted by Amit Jethva Capturing The Error Description In A Stored Procedure RE: Capturing The Error Description In A Stored Procedure
Peter E. Kierstead
SSCarpal Tunnel
Points: 4114
More actions
April 27, 2005 at 5:24 pm
#555411
To catch those elusive error messages you could also try:
Declare @SQL nVarChar(4000)
Set @SQL=N'osql -Usa -P -Q"declare @t table(PKey Int not Null) insert @t select Null"'
Exec xp_CmdShell @SQL
and do whatever you want with the response