Solved

Change Ref ID on all Tables

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can we attach PDF to table 2 46
Display Date and Time 7 48
Format Output of Select Statement 2 38
database audit for object access 6 42
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

734 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