Link to home
Start Free TrialLog in
Avatar of mlcktmguy
mlcktmguyFlag for United States of America

asked on

Not Able To Build Index on imported table

I'm pretty new to SQL, using SQL 2014 Developer edition.

I imported an MS Access table into my SQL DB using the 'SQL Server 2014 Import and Export Data'

For some reason the 'Import' did not preserve any of the indexes set up on the table in Access.

I want to re-create the indexes from within SQL Server Manager.

However, when I right click in the 'Index' option underneath the table name the 'New Index' option is grayed out and cannot be selected.

On all of the other tables the 'New Index' option is not grayed out.  I can select it and build an index on the table.

Any ideas on what could be causing this issue?
Avatar of babu chenikkyala
babu chenikkyala

Why don't you try creating the Indexes using Queries(CREATE INDEX) and see if it is allowing?
Avatar of Vitor Montalvão
For some reason the 'Import' did not preserve any of the indexes set up on the table in Access.
Import and Export wizard only works with data, so no indexes, triggers, permissions are imported/exported.
You'll need to script your Access table and adapt the script to run in SQL Server.
ASKER CERTIFIED SOLUTION
Avatar of lcohan
lcohan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial