I want to insert and update Arabic language into SQL Server by using stored procedure and parameters. I checked the other posts all they said you use nvarchar(100)
or use N'الاسم العربي'
.
My case is different: I am using stored procedure and parameters, how to put N before the parameter @patient_Name_Arabic
this is my stored procedure:
ALTER PROCEDURE [dbo].[UPDATE_PATIENTS]
@Patient_name VARCHAR(50),
@Age INT,
@Mobile VARCHAR(50),
@Email VARCHAR(50),
@Address VARCHAR(50),
@Gender INT,
@Patient_id VARCHAR(50),
@Natid INT,
@Patient_no INT,
@insurance_card IMAGE,
@ID_card IMAGE,
@patient_Name_Arabic NVARCHAR(50)
AS
UPDATE [Patients]
SET [Patient_Name] = @Patient_name,
[Age] = @Age,
[Mobile] = @Mobile,
[Email] = @Email,
[Address] = @Email,
[Gender] = @Gender,
[Patient_id] = @Patient_id,
[Natid] = @Natid,
[insurance_card] = @insurance_card,
[ID_card] = @ID_card,
patient_Name_Arabic = @patient_Name_Arabic
WHERE Patient_no = @Patient_no
I tried to put N
before parameter @patient_Name_Arabic
but it's not working.
N'@patient_Name_Arabic' or N"@patient_Name_Arabic" or N(@patient_Name_Arabic)
What is the correct way in my case to store Arabic language ?