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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:00:39+00:00 2026-06-15T14:00:39+00:00

I have tow tables in sql server 2008 TBL_CustomerMaster [FilingId] [numeric] (18, 0) NOT

  • 0

I have tow tables in sql server 2008

TBL_CustomerMaster
[FilingId] [numeric]  (18, 0) NOT NULL,
[CustId]   [nvarchar] (500)   COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

TBL_Customer
[FilingId]  [numeric]  (18, 0) NOT NULL,
[CustUnqId] [numeric]  (18, 0) NOT NULL,
[CustId]    [nvarchar] (500)   COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

I used bulk insert to load data into two tables for each FilingId, CustId’s for two tables are same. I have generated unique CustUnqId for TBL_Customer

Now i want to map the CustUnqId with CustId of TBL_CustomerMaster
i. e. replace CustId in TBL_CustomerMaster with corresponding CustUnqId form TBL_Customer

kindly suggest the solution.

  • 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-15T14:00:40+00:00Added an answer on June 15, 2026 at 2:00 pm

    You can try this, but enclose this into transaction and do the testing before putting anything into production environment:

    SELECT  a.CustId,
            b.CustUnqId
    INTO    #temp
    FROM    TBL_CustomerMaster a
    JOIN    TBL_Customer b ON
            a.CustId = b.CustId
    
    UPDATE  TBL_CustomerMaster
    SET     CustId = t.CustUnqId
    FROM    TBL_CustomerMaster a
    JOIN    #temp t ON
            t.CustId = a.CustId
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tow tables the first d001 has two col: ACC_ID, ACC_NAME | |
I have tow tables concept_access and concept_access_log. I want to create a trigger that
I have tow tables named TableA and TableB Let us say TableA Id TableAName
I have tow tables in my MySQL database - one with flights and one
I have tow tables where User (id,name) and UserInfo (user_id,email,date_edit) How i can do
I write a project using Prism . I have tow modules and this modules
Have 2 tables in Access 2007, both lists of certain tasks to be accomplished.
I have a client that I'm wanting to move to a virtual private server.
I currently have a client website on the Grid server on MediaTemple that will
I have a Premiums table that I attempting to query using the following LINQ-to-SQL:

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.