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
 General SQL Server Forums
 New to SQL Server Programming
 ismatch

Author  Topic 

shemayb
Posting Yak Master

159 Posts

Posted - 2007-08-29 : 03:16:47
in c# there is an ismatch function,is there an equivalent for that in sql server?

Funnyfrog

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-29 : 03:20:34
LIKE

You haven't found your best friend yet, the famous BOOKS ONLINE?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

shemayb
Posting Yak Master

159 Posts

Posted - 2007-08-29 : 03:25:18
example the ssn number i would like to get the correct format of it..for example if ssn ismatch(ssn)..(the format of the value,not the value itself)

Funnyfrog
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-29 : 03:38:00
Read Books Online for pattern matching and LIKE operator.


E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-08-29 : 06:18:11
Or you could use the SEARCH function on this forum to look for "Social Security Number" ...
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-29 : 06:44:56
What is "correct format"?
Is there some knid of built-in checksum in SSN, like the LUHN algorithm?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -