Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Symbols in stored procedure

Author  Topic 

ingineu
Yak Posting Veteran

89 Posts

Posted - 2005-12-14 : 13:28:57
I am creating a Project schedule using a stored procedure. The character is currently set to '>'. I would like to replace this with the 'black square', character code '25A0'. Is this possible?
Here's part of my code:
QBar = CASE WHEN EstStartDate >= @ZFromDate AND EstDeliveryDate <= @ZToDate 
THEN Replicate(' ',Datediff(day,@ZFromDate,EstStartDate)) + Replicate('>',Datediff(day,EstStartDate,EstDeliveryDate) + 1)


(Running Access 2002 frontend)

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-12-14 : 13:41:50
is this what you're looking how to do?

select nchar(convert(int,0x25A0))

EDIT:
I guess this works too:
select nchar(0x25A0)

Be One with the Optimizer
TG
Go to Top of Page

ingineu
Yak Posting Veteran

89 Posts

Posted - 2005-12-14 : 16:35:23
Cool ... just what I was looking for. Thank you.
Go to Top of Page
   

- Advertisement -