Home Forums SQL Server 2005 T-SQL (SS2K5) Avoid a record that has first character as number in a column RE: Avoid a record that has first character as number in a column

  • srikant maurya (2/6/2011)


    this may help if you Ignore only first number char from Str

    select * from Table where isnumeric(left(column_name,1))=0

    Oh, be careful now. IsNumeric shouldn't be used as a digit test. Please see the following article on that, please...

    http://www.sqlservercentral.com/articles/IsNumeric/71512/

    --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)