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.
| Author |
Topic |
|
rcr69er
Constraint Violating Yak Guru
327 Posts |
Posted - 2007-11-23 : 10:25:43
|
| HiI have just imported some data into a sql table. However I have noticed that there are a number of rogue characters such as '£' and '/' in fields such as the first name. Is there anyway to locate these rogue characters using sql?Thanks |
|
|
Ifor
Aged Yak Warrior
700 Posts |
Posted - 2007-11-23 : 11:28:11
|
| [code]-- *** Test Data ***DECLARE @t TABLE( Surname varchar(30) NOT NULL)INSERT INTO @tSELECT 'Smith' UNION ALLSELECT 'Jones' UNION ALLSELECT 'Smith-Jones' UNION ALLSELECT 'Smith Jones' UNION ALLSELECT 'O''Rouke' UNION ALLSELECT 'Sm£th' UNION ALLSELECT 'Smith-Jone$' UNION ALLSELECT 'Jon/s'-- *** End Test Data ***SELECT *FROM @tWHERE Surname LIKE '%[^-,A-Z,a-z,'', ]%'[/code]ps If your source data does not have the rouge characters you will need to look at how you are doing the import. |
 |
|
|
blindman
Master Smack Fu Yak Hacker
2365 Posts |
Posted - 2007-11-24 : 10:12:09
|
| My son says Rogue Characters have a wide variety of skills to make up for a lack of combat prowess. They get hit-die six, so the only worse class is the sorcerer, with a die four hit dice. But their ability to sneak attack makes them invaluable to warrior characters for flanking bonuses. If they make a bluff check as a move action with improved feint, they can get a sneak attack bonus all by themselves, and the opponent loses their dexterity AC bonus.e4 d5 xd5 Nf6 |
 |
|
|
|
|
|