ASCII Characters?

  • Hi Guys,

    I need to pass a ASCII character to a stored procedure as it uses this char as a seperator. The vb that currently calls the procedure uses this function to define the seperator Chr$(1) this evaluates to something like the following symbol 

    How can I copy this in SQL? I know there is an ASCII function but I cannot work out how to use it correctly.

  • CHAR(1)

    _____________
    Code for TallyGenerator

  • Just pass it to a variable/parameter in the proc as you would any other string...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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