我知道通过使用N'...'
我们可以将多语言数据插入 SQL Server。但我不知道如何将它与参数一起使用。请帮我..
我的代码是:
Alter proc proc_T_NewsAddUpdate
(
@Id bigint,
@Title nvarchar(500),
@Description nvarchar(1000),
@image nvarchar(200),
@DateOfNews datetime,
@CreatedBy bigint,
@ModifiedBy bigint,
@IsVisible int,
@IsDeleted int
)
as
if exists(select 1 from T_LatestNews where ID=@Id)
begin
Update t_LatestNews
set Titlle = N@Title,
DesCription = N@Description,
Image = N@image,
dateOfnews = @DateOfNews,
modifiedDate = GETDATE(),
ModifiedBy = @ModifiedBy,
Isvisible = @IsVisible,
isdeleted = @IsDeleted
where
ID=@Id
select 1
end
else
begin
insert into t_latestnews (Titlle, Description, Image, dateofnews, CreatedDate, ModifiedDate, CreatedBy, ModifiedBy, isvisible, isdeleted)
values(@Title, @Description, @image, @DateOfNews, GETDATE(), GETDATE(), @CreatedBy, @ModifiedBy, @IsVisible, @IsDeleted)
select 1
end