dbTalk Databases Forums  

Converting string to unicode string in T-SQL

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


Discuss Converting string to unicode string in T-SQL in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
yashgt@gmail.com
 
Posts: n/a

Default Converting string to unicode string in T-SQL - 03-26-2007 , 03:08 AM






Hi,

We have stored proc name proc_test(str nvarchar(30)). So far this proc
has been invoked from a .NET application assuming that only English
character strings will be passed to it. The calls are like
proc_test('XYZ')
We now have a requirement for passing Chinese strings as well. Rather
than changing the calls throughout the application, we would like to
handle it in the stored procedure so that it treats the string as a
unicode string. Can we apply some function to the parameter to convert
it to unicode so that we don't have to call with an N prefixed to the
string?

Thanks,
Yash


Reply With Quote
  #2  
Old   
Razvan Socol
 
Posts: n/a

Default Re: Converting string to unicode string in T-SQL - 03-26-2007 , 02:34 PM






Please do not multipost (if really necessary, you should cross-post).
You have several responses in the other thread:
http://groups.google.com/group/micro...6e494f5d0f8e/#

Razvan


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.