Hello All,
I need a little help. I have a function that will title case a field. My routine to call the function is:
update TableNname
set FieldName = dbo.fn_title_case (FieldName)
where FieldName is not null and FieldName not like ''
I need functions that will do the following:
Make text uppercase where the string is X.X. That is a letter followed by a period, another letter then another period. This will be helpful where a persons initials are being used like R.E. Wies or it is a post office bix address like P.O. Box XXX.
I also need to be able to look for a & and make uppercase the letters that appear on either side such as A&A.
I also need to do the same with a hyphen so that a name like Tri-State will have uppercase T & S.
My current uppercase function looks for a space and makes anything after a space uppercase.
I need seperate functions for each of these, they don't need to be incororated into one function. I need to specify the table and the field as I have several in this conversion.
Your help is greatly appreciated.
Ron--
I need a little help. I have a function that will title case a field. My routine to call the function is:
update TableNname
set FieldName = dbo.fn_title_case (FieldName)
where FieldName is not null and FieldName not like ''
I need functions that will do the following:
Make text uppercase where the string is X.X. That is a letter followed by a period, another letter then another period. This will be helpful where a persons initials are being used like R.E. Wies or it is a post office bix address like P.O. Box XXX.
I also need to be able to look for a & and make uppercase the letters that appear on either side such as A&A.
I also need to do the same with a hyphen so that a name like Tri-State will have uppercase T & S.
My current uppercase function looks for a space and makes anything after a space uppercase.
I need seperate functions for each of these, they don't need to be incororated into one function. I need to specify the table and the field as I have several in this conversion.
Your help is greatly appreciated.
Ron--