Passing Symbols as Input to SP

  • Hi,

    I have the following SP.

    create proc Sample

    (

    @sample varchar(10)

    )

    as

    Begin

    print @sample

    End

    When I execute

    exec sample 'sampletest^'

    It just shows 'sampletest' and the '^' symbol is missing. This happens with all the symbols. But if I pass the symbol alone it works fine.

    Can somebody help with this?


    Regards,
    Genie Cool

  • String 'sampletest^' has 11 symbols.

    And you parameter is VARCHAR(10).

    11th symbol is just truncated.

    _____________
    Code for TallyGenerator

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

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