iamsql1 (7/27/2013) Jeff Moden (7/27/2013)
Use length and then substring funtionc
It's easy to get to the moon. All you need to do is build a rocket ship. ;-)
How would YOU use what you suggested to accomplish the task? Some code would be a big help.
SUBSTRING(column, 3, len(column));
Use Column name in first and last place of argument.
That'll work. Thanks for posting it.
As a bit of a sidebar, you can avoid the extra calculation of LEN depending on what you intend to do with the result.
is pronounced ree-bar and is a Modenism for R
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.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs