You can use PATINDEX
with a pattern like '%[^0123456789]%'
or '%[^0-9]%'
to find the position of the first non-numeric character
More Related Contents:
- Find index of last occurrence of a sub-string using T-SQL
- Check if a string contains a substring in SQL Server 2005, using a stored procedure
- How do I create a unique constraint that also allows nulls?
- How do I get list of all tables in a database using TSQL?
- Get first day of week in SQL Server
- What is the significance of 1/1/1753 in SQL Server?
- Escape a string in SQL Server so that it is safe to use in LIKE expression
- Insert Update trigger how to determine if insert or update
- SQL time difference between two dates result in hh:mm:ss
- What is the best way to truncate a date in SQL Server?
- Dynamic SQL (passing table name as parameter)
- SQL Server: Difference between PARTITION BY and GROUP BY
- How do you truncate all tables in a database using TSQL?
- Understanding SQL Server LOCKS on SELECT queries
- SQL Server: How to select all days in a date range even if no data exists for some days
- SQL – The conversion of a varchar data type to a datetime data type resulted in an out-of-range value
- TSQL: How to convert local time to UTC? (SQL Server 2008)
- T-SQL Dynamic SQL and Temp Tables
- Find non-ASCII characters in varchar columns using SQL Server
- How can I determine in SQL Server if a dateTime range overlaps another
- SQL Server Query – groupwise multiplication
- How do I select last 5 rows in a table without sorting?
- SELECT INTO a table variable in T-SQL
- T-SQL query to show table definition?
- How can I insert binary file data into a binary SQL field using a simple insert statement?
- Cannot find either column “dbo” or the user-defined function or aggregate “dbo.Splitfn”, or the name is ambiguous
- Include missing months in Group By query
- How to set value to variable using ‘execute’ in t-sql?
- Update SQL with consecutive numbering
- Count number of records returned by group by