SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 COUNT UPPER CASE
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pnpsql
Posting Yak Master

India
241 Posts

Posted - 05/07/2012 :  01:10:22  Show Profile  Reply with Quote
HI TEAM,

I NEED TO COUNT UPPER CASE LETTERS IN STRING.

challenge everything

khtan
In (Som, Ni, Yak)

Singapore
16745 Posts

Posted - 05/07/2012 :  01:15:30  Show Profile  Reply with Quote
What happen to the fn_FilterString() that i suggested in your other thread ? Use that function


KH
Time is always against us

Go to Top of Page

pnpsql
Posting Yak Master

India
241 Posts

Posted - 05/07/2012 :  01:35:30  Show Profile  Reply with Quote
that returns both upper case and lower case. i
correct but not works

challenge everything
Go to Top of Page

khtan
In (Som, Ni, Yak)

Singapore
16745 Posts

Posted - 05/07/2012 :  01:43:38  Show Profile  Reply with Quote
quote:

/*
Returns a string with specified characters left or removed. Run the examples for clarity.

Examples:

DECLARE @s VARCHAR(500)
SET @s = '1a2b&3,45 c,>DE.$~99X yZ'

SELECT dbo.fn_FilterString(@s, '_', 0) --identity
SELECT dbo.fn_FilterString(@s, '[0-9]', 0) --just numbers
SELECT dbo.fn_FilterString(@s, '[^0-9]', 0) --no numbers
SELECT dbo.fn_FilterString(@s, '[a-z]', 0) --just letters
SELECT dbo.fn_FilterString(@s, '[a-z]', 1) --just lower case letters
SELECT dbo.fn_FilterString(@s, '[A-Z]', 1) --just upper case letters
SELECT dbo.fn_FilterString(@s, '[^ ,.]', 0) --removes spaces, commas and full stops
*/




KH
Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000