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
 General SQL Server Forums
 New to SQL Server Programming
 Difference between varchar and nvarchar

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-07-11 : 03:41:23
Can ANY one tell why should i go for Nvarchar.since i can use varchar.
create procedure del_sp(@tmp varchar(10))
as
begin
set nocount on
Declare @sql_tmp Nvarchar(400)
set @sql_tmp='select * from sysobjects where xtype=''U''' + ' and name like ''%' + @tmp + '%'''
exec sp_executesql @sql_tmp
set nocount off
end

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-07-11 : 03:43:16
have you try to google for this ?
http://www.google.com.sg/search?hl=en&q=varchar+vs+nvarchar&btnG=Google+Search&meta=


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -