Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

ASCII Characters? Expand / Collapse
Author
Message
Posted Tuesday, August 07, 2007 2:30 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, May 09, 2013 7:25 AM
Points: 288, Visits: 674

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.

Post #388413
Posted Tuesday, August 07, 2007 3:28 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 6:28 AM
Points: 4,557, Visits: 8,211
CHAR(1)
Post #388427
Posted Tuesday, August 07, 2007 5:36 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 7:10 AM
Points: 32,910, Visits: 26,801
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."

For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #388469
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse