Something Strange happend in SSIS....

  • Hi I tried this,

    It was working when I gave the below lines to SQL command data accessing mode.

    SET NOCOUNT ON

    Exec sp_name 1

    here 1 the the value. But when I tried

    SET NOCOUNT ON

    Exec sp_name ?

    and tried to map the parameter with variable I'm getting error.

    Can I get some help for this ....

    Regards,

    MC

    Thanks & Regards,
    MC

  • Hi friends,

    I just got it , if we give the below two lines at the beginning of the sp it works!!!!

    SET FMTONLY OFF

    SET NOCOUNT ON

    ie

    CREATE PROCEDURE SP_NAME

    AS

    BEGIN

    (@P1 INT, @P2 VARCHAR(30)

    )

    AS

    BEIGN

    SET FMTONLY OFF

    SET NOCOUNT ON

    -----

    ---

    --

    END

    in this case , in the data access mode is selected as 'SQL Command' , no need to give SET NOCOUNT ON . Also we can give the parameter using ? , and can map it with variable . ie

    exec sp_name ?,?

    Regards,

    MC

    Thanks & Regards,
    MC

Viewing 2 posts - 16 through 16 (of 16 total)

You must be logged in to reply to this topic. Login to reply