Solved

Import access table

Posted on 2016-07-25
2
56 Views
Last Modified: 2016-07-29
Hi,

I am trying to import a access table which as relationships and lookup.How do I imports it in sql database.
I guess i have to first remove the lookup table and relationships.How do I do this?
0
Comment
Question by:RIAS
2 Comments
 
LVL 6

Assisted Solution

by:Manju
Manju earned 250 total points
ID: 41727715
I would use https://www.microsoft.com/en-sg/download/details.aspx?id=43690 to migrate. This is a MS tool for access to SQL migration.
0
 
LVL 34

Accepted Solution

by:
PatHartman earned 250 total points
ID: 41727873
Yes.  Remove the table level lookups first since SQL Server does not support them.  To remove a lookup
1. Backup the BE database
2. Open the table in design view.
3. Select the column to change.
4. On the Lookup tab, change the Display Control value to "Text Box"

Now for the FE.
Every query/form/report where you depended on seeing the lookup value rather than the stored value will need to be changed.
1. For the queries, add a join to the lookup table and select the text field from there.  That will give you both the actual stored value plus the display value.
2. For forms - these are probably OK if they are using combos to display the column.
3. For reports- change the ControlSource to reference the lookup value from the query rather than the stored value.  OR - less desirable - change the text boxes to be combos.  Combos don't look good on reports so the first option is usually better.

Make sure that all your relationships are correctly defined.  Check the enforce RI option and cascade change as appropriate.  Cascade update is rarely used since most primary keys should be autonumbers which cannot be changed.
Once everything is working again, then you can upsize.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Concatenating multiple comments into one row 16 44
Sql query for filter 12 22
Open a word document 23 15
Stored procedure 23 9
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now