Click here to Skip to main content
15,908,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiii all
i have table in sql server 2008 database which contains arabic data anf now i create aprocedure to select id of an employee . but the i think that i have aproblem with the syntax because i tried it in english and works well.
So, Can any one helps me in that , please....

SQL
create proc [dbo].[usp_EmployeeAddress_Select] 
(
@EmployeeName nvarchar(50)
)
AS
DECLARE @query as nvarchar(100)
print N''+@PropertyValue
set @query = '
select dbo.tbl_Properties.Id
from dbo.tbl_Properties
where Name like N'''+cast(@EmployeeName as  nvarchar(50))+''''


Thanks
Posted
Updated 16-Sep-11 3:05am
v2

1 solution

Like in SQL server will work with any unicode character set as long as it is in the table data.

Try the following :
@PropertyValue is not defined use @EmployeeName in your select string.
 
Share this answer
 
Comments
moon2011 16-Sep-11 8:58am    
sorry ,it was written mistake from me
not working also ,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900