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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:43:18+00:00 2026-06-01T23:43:18+00:00

Simple query : UPDATE [WebERP].[dbo].[Users] SET [ActiveDirectoryUser] = null WHERE ActiveDirectoryUser=’xxx\royin’ Error : Msg

  • 0

Simple query :

UPDATE [WebERP].[dbo].[Users]
   SET 
       [ActiveDirectoryUser] = null

WHERE ActiveDirectoryUser='xxx\royin'

Error :

Msg 512, Level 16, State 1, Procedure Users_Update, Line 17
Subquery returned more than 1 value. This is not permitted when the subquery
follows =, !=, <, <= , >, >= or when the subquery is used as an
expression. The statement has been terminated.

I guess the problem is here :

enter image description here

it treats it as carriage return.

(if I change \r to \b it’s ok.)

How can I fix it ?

  • 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-01T23:43:20+00:00Added an answer on June 1, 2026 at 11:43 pm

    I think your error in fact lies elsewhere – I assume you’ve given us a much simplified query which in fact doesn’t reproduce the original error, or you’ve only given us one part of a bigger query.

    For one thing – it says the error occurs in a subquery – your example doesn’t contain one.

    The code you’ve provided works fine on my adventureworks database:

    update SalesLT.Address
    set AddressLine2 = 'abc\nd'
    where AddressID = 9
    

    Does exactly as expected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run a simple query with node-mysql like this: client.query(UPDATE mytable SET
I'm running a simple update query, something like: UPDATE some_table SET columnA = 'value'
I am trying to run a simple Update query on a certain set of
Query: update mytable set mycol = null where id in ( 583048, 583049, ...
I have a simple query UPDATE `t_timecard_detail` SET `timeoff_request_id` = 'adad8e0d-c22b-41c3-a460-6cf982729299' WHERE `id` =
Am trying to construct a simple update query in my model class Model_DbTable_Account extends
I am trying to use do the most simple update query but Doctrine issues
I'm optimizing an update query: UPDATE projects SET rgt = rgt + 2 WHERE
I have a simple query for update table (30 columns and about 150 000
I am trying to perform a simple update query in MS SQL. In mysql

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.