Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8717731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:21:59+00:00 2026-06-13T06:21:59+00:00

I know by using N’…’ we can insert multi language data into SQL Server.

  • 0

I know by using N'...' we can insert multi language data into SQL Server. But I don’t know how to use it with parameters. Please help me..

My code is :

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:22:00+00:00Added an answer on June 13, 2026 at 6:22 am

    Modify your stored proc to look like this:

    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=@Title,DesCription=@Description,Image=@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
    

    Then call it like this:

    exec proc_T_NewsAddUpdate
        @Id = 1, 
        @Title = N'Sample Title',
        @Description =  N'Sample Description',
        @image =  N'Sample Image',
        @DateOfNews = '1/1/2000',
        @CreatedBy = 1,
        @ModifiedBy = 1,
        @IsVisible = 1,
        @IsDeleted = 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Django, I know using filter with multiple arguments gets translated into SQL AND
I know using prepared statements helps to avoid sql-injection. My problem is, that a
Friends, I like to know using which version of Android SDK we can develop
How to generate unique id's in Javascript? I know using uuid in java, but
I know that using friends_work_history permission, we can access friend's work history. Now, I
I know that using Dim currUser As String = Request.ServerVariables(LOGON_USER) returns the Domain\Username, but
Does anyone know why using-declarations don't seem to work for importing type names from
First of all, I know using the setLayout(null) is not the best way, but
I know this has probably been asked before, but I can't find it with
I know using below code to ignore a certain exception, but how to let

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.