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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:24:47+00:00 2026-05-19T00:24:47+00:00

I need to migrate some data from access to sql. access has one table:

  • 0

I need to migrate some data from access to sql.

access has one table: tblMakeModel with two fields: make, model

I am making two tables in SQL

  • tblMake: id, make

and

  • tblModel: id, makeID, model

I’ve moved the makes over, but now i can’t figure out how to migrate the models to match up with the makeIDs, since I am recreating ID’s, how do i match them up?

please help

  • 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-19T00:24:48+00:00Added an answer on May 19, 2026 at 12:24 am

    (I’m assuming that the IDs are database-generated integers).

    Bring the entire table into the SQL Server database and call it tblMakeModel (just like in the original). Then:

     INSERT INTO tblMake (Make) SELECT DISTINCT Make FROM tblMakeModel
    
     INSERT INTO tblModel (MakeID, Model) 
        SELECT DISTINCT M.MakeID, MM.Model 
        FROM tblMakeModel MM INNER JOIN tblMake M ON MM.Make = M.Make
    
     DROP TABLE tblMakeModel
    

    If the IDs are not a sequence, then you’ll need to edit the tblMake table after the first command to contain the new IDs and then run the other two commands, then add the IDs to the tblModel table. In this case, you’ll need to remove the PK constraint on both tables until you finish your work.

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

Sidebar

Related Questions

I need to migrate data from a Plone-based portal to Liferay. Has anyone some
I need to migrate some data from one MYSQL database to another but the
I need to migrate data in a large flat table located in SQL Server
I wish to migrate some data from a single table into these new THREE
I need to write an application that migrates data from a RavnDB to SQL.
I need to create a quick and dirty solution to migrate data from database
I just finished some database changes and now I need to migrate the data
I have a need to migrate game score table from (don't laugh please...) *.ini
I need to manually migrate modified stored procedures from a DEV SQL Server 2005
I need to migrate cities/countries/regions resources from http://www.maxmind.com/app/geoip_resources to my app. I have two

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.