?
Solved

Change Ref ID on all Tables

Posted on 1998-08-02
3
Medium Priority
?
211 Views
Last Modified: 2010-03-19
What is the best way to change the Ref ID fields on all tables???
0
Comment
Question by:kachan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
gmoriak earned 200 total points
ID: 1089359
Drop your foreign keys.  Write and run scripts to renumber your Id's .  Then readd your foreign keys

What is the reason for doing this?  There may be better alternatives both for renumbering and to renumbering.
0
 

Author Comment

by:kachan
ID: 1089360
In fact what I want to change is the Ref ID which is the the key value of all tables.. After getting advices from all experts, I think I would like to do it in other way rather changing this so important field.

Thanks for your input.
0
 

Author Comment

by:kachan
ID: 1089361
In fact what I want to change is the Ref ID which is the the key value of all tables.. After getting advices from all experts, I think I would like to do it in other way rather changing this so important field.

Thanks for your input.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

800 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