Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
I have a string field that is varchar 15, example:AA AA# 9 AAaaa# 999999The last 6 digits can be from 1 to 999999. I need to pull only the numeric digits from the end of this string. right(fieldname,6) doesn't work because it starts from the last character entered. Any ideas?