SQL Server Admin
T-SQL Articles

February 22, 2009

Find Names in the SQL Server Database with Special Characters




If your name fields has special characters like ~!@#$%^&*()-+":{} and so on, then here's a simple query that lets you find special characters in Names.


SELECT * FROM CustomersTemp


WHERE FirstName like '%[~!@%^&*()]%'


or LastName like '%[~!@%^&*()]%'



Did you like this post?
kick it on DotNetKicks.com
subscribe via rss subscribe via e-mail
print this post follow me on twitter



 
  Feedback:

comments

0 Responses to "Find Names in the SQL Server Database with Special Characters"
 

Copyright © 2009-2011 All Rights Reserved for SQLServerCurry.com by Suprotim Agarwal | Terms and Conditions