Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the Indexed property of a field in a table

Status
Not open for further replies.

stealth3

Technical User
Sep 9, 2004
34
AU
Dear Team

I have inherited a poorly designed database and one of the problems is that a field has been set up as Indexed - Yes (No Duplicates) when (Yes Duplicates) should have been selected. This table only has an ID field and one other text field which is the primary key and is the one I want to change. To change it requires removing it as the primary key, removing the relationship and then re-establishing. However I am having problems doing this and I am wary that the data in the db will be permanently affected. Can anyone advise if this is so?

Regards
 
You can safely remove / alter indices, but I would suggest doing it when you have exclusive use of the database.

You will need to remove the relationship BEFORE you remove the index. If needed, I have some code laying around.


Learn from the mistakes of others. You won't live long enough to make all of them yourself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top