dbTalk Databases Forums  

What's the equivalen function of StrConv ([FirstName] , 3 ) in ACCESS in Sql Server 2000?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss What's the equivalen function of StrConv ([FirstName] , 3 ) in ACCESS in Sql Server 2000? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Leader
 
Posts: n/a

Default What's the equivalen function of StrConv ([FirstName] , 3 ) in ACCESS in Sql Server 2000? - 07-29-2003 , 01:18 AM






HI,
i got a problem while using StrConv function in sql server.
My requirement is:-
suppose in a name field i have "jhon smith" Now i want to run a sql
which will give me the result like "Jhon Smith"--which means upper
case first.

Now i am running a query like below which is giving me "Jhon smith"
but i want "Jhon Smith".

SELECT [CustomerID] ,upper(left(firstname,1)) + lower(right(firstname,
len(firstname)-1)) AS [FirstName_] from my_table;


But the above query is not giving me the right result. Please
suggest...


Thanks
Hoque

Reply With Quote
  #2  
Old   
Simon Hayes
 
Posts: n/a

Default Re: What's the equivalen function of StrConv ([FirstName] , 3 ) in ACCESS in Sql Server 2000? - 07-29-2003 , 03:39 AM






sohelcsc (AT) yahoo (DOT) com (Leader) wrote in message news:<b1a93c73.0307282218.74758994 (AT) posting (DOT) google.com>...
Quote:
HI,
i got a problem while using StrConv function in sql server.
My requirement is:-
suppose in a name field i have "jhon smith" Now i want to run a sql
which will give me the result like "Jhon Smith"--which means upper
case first.

Now i am running a query like below which is giving me "Jhon smith"
but i want "Jhon Smith".

SELECT [CustomerID] ,upper(left(firstname,1)) + lower(right(firstname,
len(firstname)-1)) AS [FirstName_] from my_table;


But the above query is not giving me the right result. Please
suggest...


Thanks
Hoque
You can find one possible solution here:

http://vyaskn.tripod.com/code.htm#propercase

Simon


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.