I've got a procedure like this..
Now if there is any error in the querystring I want to store that error message in this variable @ErrMsg. How can I accompalish this??Code:CREATE PROC dbWBS_sp_ExecuteQuery ( @QueryString VARCHAR(8192), @ErrMsg VARCHAR(512) OUTPUT ) AS BEGIN EXEC @QueryString END
Thanks in Advance




Reply With Quote