September 16, 2010 at 4:49 am
Hi all,
I am inserting column value as 'sqlserver → 2005' But, it is inserted as 'sqlserver ? 2005'
Pls give the solution to insert Like 'sqlserver → 2005'
Thank'q
September 16, 2010 at 4:54 am
you'll need to change the definition of the column from varchar to nvarchar.
the issue can be seen in this example...special charcters get converted to question marks if a varchar field (or a sloppy insert that implicitly converts it as a varchar)
select convert(nvarchar(30),N'sqlserver ? 2005' ),
convert(varchar(30),N'sqlserver ? 2005' )
--results
/*
sqlserver ? 2005sqlserver ? 2005
*/
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply