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 function

Author  Topic 

moramoga
Starting Member

34 Posts

Posted - 2006-12-05 : 16:51:33
I need to make a funtion thats receives a String and checks that it a have a chacacter that is not in the alphabet, how do I do it?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-12-05 : 17:01:53
select * from yourtablenamehere
where yourcolumnnamehere like '%[^a-zA-Z]%'


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2006-12-05 : 17:04:48
As far as how to create the function, check Books Online for syntax to CREATE FUNCTION.


Be One with the Optimizer
TG
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-12-05 : 17:06:58
See your original question here. It is now answered again.
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=75925


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-12-06 : 10:45:51
quote:
Originally posted by moramoga

I need to make a funtion thats receives a String and checks that it a have a chacacter that is not in the alphabet, how do I do it?


1 Filter it before sending data to table
2 http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=56713

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -