troubleshooting Question

data stored like ????? in sql server nvarchar column

Avatar of ebram ishaak
ebram ishaakFlag for Egypt asked on
Microsoft SQL Server
19 Comments4 Solutions290 ViewsLast Modified:
CREATE SCHEMA Product;

CREATE TABLE [Product].[ProductCategory]
(
 ID INT IDENTITY(1,1) PRIMARY KEY,
 Name NVARCHAR(20) NOT NULL UNIQUE,

 CONSTRAINT C_ProductCategoryName CHECK
 ((LEN([Name])BETWEEN 1 AND 20) AND ([Name]+'.'<>'.') AND ([Name] NOT LIKE' %') AND ([Name]NOT LIKE'% '))
);

CREATE PROC [Product].[SP_AddProductCategory]
(@Name NVARCHAR(20))
AS
BEGIN
            INSERT INTO [Product].[ProductCategory] VALUES (@Name)
END

EXEC [Product].[SP_AddProductCategory] 'T-shirt' -----result--> T-shirt
EXEC [Product].[SP_AddProductCategory] 'تيشيرت' -----result--> ??????

i want to add N prefix in stored procedure to be able to stored arabic values successfully when exec the stored procedure
ASKER CERTIFIED SOLUTION
Vitor Montalvão
IT Engineer
Join our community to see this answer!
Unlock 4 Answers and 19 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros