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

function to pad a string with '-' to make it 10 long Expand / Collapse
Author
Message
Posted Wednesday, November 26, 2008 3:15 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, December 11, 2008 2:24 AM
Points: 1, Visits: 2
How do I write a function that takes in a string and pads it with '-' (from the right) to make it 10 characters long????
Post #608922
Posted Wednesday, November 26, 2008 3:28 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, June 13, 2014 3:51 AM
Points: 298, Visits: 474
Left(Coalesce(@String, '') + '----------', 10)
Post #608927
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse