Solved

Change Ref ID on all Tables

Posted on 1998-08-02
3
210 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 50 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

717 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