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 8100627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:46:44+00:00 2026-06-05T22:46:44+00:00

I have the strings which consists of ( ‘ ) quote mark like mother’s

  • 0

I have the strings which consists of ( ‘ ) quote mark like “mother’s love” …

While inserting the data by sql query from c#. It shows error. How can i rectify the problem and insert this kind of data successfully?

string str2 = "Insert into tblDesEmpOthDetails (EmpID, Interviewnotes) values ('" + EmpId + "','" + Interviewnotes + "')";

Interview notes consists the value like “Mother’s love” (with single quote). While executing this query it shows error as “Unclosed quotation mark after the character string ‘)” how can i insert this type of strings?

  • 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-05T22:46:47+00:00Added an answer on June 5, 2026 at 10:46 pm

    I’m pretty sure you don’t use SQL parameters:

    using (SqlCommand myCommand = new SqlCommand(
        "INSERT INTO table (text1, text2) VALUES (@text1, @text2)")) {
    
        myCommand.Parameters.AddWithValue("@text1", "mother's love");
        myCommand.Parameters.AddWithValue("@text2", "father's love");
        //...
    
        myConnection.Open();
        myCommand.ExecuteNonQuery();
        //...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to work with strings which may contain Lat/Long data, like this: $query
I have a sqlite .db file which consists of data in string, int and
I have a simple language which consists of patterns like size(50*50) start(10, 20, -x)
I have a big procedure which consists mostly dynamic SQL. I am having issues
I have to read inputs from a file which consists of pipe delimetered strings
I have a data structure which consists of pairs of values, the first of
I have an Activity, which simply consists in listing Pair<String, String> objects. I have
I faced an interesting problem today. I have 4 strings which I need to
I have a vector of strings which are changing its contents for no apparent
I have a number of strings which contain words which are bunched together and

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.