Forum Replies Created

Viewing 2 posts - 166 through 167 (of 167 total)

  • RE: Error handling in 2K8

    Lowell,

    I changed the procedure:

    =============

    ALTER PROCEDURE [dbo].[sp_InsertKeyIssues]

    @KeyIssuesText nvarchar (250),

    @ClinicalReviewID nvarchar(10)

    AS

    SET NOCOUNT ON;

    BEGIN Try

    Insert into tblKeyIssue

    (KeyIssuesText ,ClinicalReviewID)

    Values

    (@KeyIssuesText ,cast(@ClinicalReviewID as int))

    return @@rowcount

    Print cast(@@rowcount as nchar(1))

    END Try

    begin catch

    exec sp_SqlInsertError

    end catch

    =============

    Then tried to generate...

  • RE: Error handling in 2K8

    Note that the second parameter in the main procedure declared as int .

    In the first run I put quoted 'abc' - and it returned a message 'cannot convert nvarchar...

Viewing 2 posts - 166 through 167 (of 167 total)