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

  • Home
  • SEARCH
  • 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 7698685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:18:00+00:00 2026-05-31T22:18:00+00:00

TBL1 ID Value 1 A 2 B 3 C TBL2 ID Value 1 2

  • 0
TBL1

ID   Value
1    A
2    B
3    C

TBL2

ID   Value
1    
2    
3    

UPDATE TBL1
SET TBL1.ID= TBL2.ID
FROM
TBL1 t1
INNER JOIN TBL2 t2
ON t1.Value= t2.Value
WHERE t2.ID like '1'

ID - nvarchar(200)
Value - ntext

My purpose is to fill TBL2 from TBL1

I cannot change the datatypes as the database is not my database.

When I wrote the above content, everything is supposed to be fine.

But I have this error message.

Msg 402, Level 16, State 1, Line 16
The data types ntext and ntext are incompatible in the equal to operator.

Any idea how to overcome this?

  • 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-05-31T22:18:02+00:00Added an answer on May 31, 2026 at 10:18 pm

    You purpose is to fill TBL2, but in your were filling tabl1 in your sample code .

    And you want to set ID? Value?

    try this?

    UPDATE t2
    SET    t2.VALUE = t1.VALUE
    FROM   tbl2 t2
           LEFT JOIN tbl1 t1
             ON t1.id = t2.id  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In SQL Server , I can do something like this: UPDATE tbl1 SET col2
The query: SELECT tbl1.* FROM tbl1 JOIN tbl2 ON (tbl1.t1_pk = tbl2.t2_fk_t1_pk AND tbl2.t2_strt_dt
Query - Select * FROM tbl1 LEFT OUTER JOIN tbl2 ON tbl1.id = tbl2.id
I have taken String value from a EditText and set it inside SELECT QUERY
I have a select statement, sth like.. select col1, col2, col3 from tbl1 where
When a SQL client issues the following command: select * into tbl2 FROM tbl1
SELECT DISTINCT ID FROM (SELECT * FROM tbl1 UNION SELECT * FROM tbl2 UNION
I have 2 tables tbl1 and tbl2 tbl1 has userid col1 col2 col3 (multiple
I have a table, TBL1 , with only GUIDs. I have another table, TBL2
I have the following tables: tbl1: CC GG GA VALUE 01 NULL NULL 10

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.