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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 help with query, starting character of string

Author  Topic 

mike123
Master Smack Fu Yak Hacker

1462 Posts

Posted - 2005-03-16 : 20:37:04


Hi

I have a table.. "USERS", with a column "NAME"

How can I determine if there are any users with the first character not a-z or 0-9 and "_"


If anyone has any ideas, help much appreciated.

Thanks once again,

Mike123

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-03-16 : 20:40:48
where [name] like '[^a-z0-9_]%'

Be One with the Optimizer
TG
Go to Top of Page

mike123
Master Smack Fu Yak Hacker

1462 Posts

Posted - 2005-03-16 : 23:42:53
thanks alot!
Go to Top of Page
   

- Advertisement -