Solved

Renaming a Constraint

Posted on 2004-08-17
3
2,392 Views
Last Modified: 2012-08-13
Is is possible to rename a constraint once it's created (In Query Analyzer)....besides Dropping it and Recreating it.
0
Comment
Question by:phunchak
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
patrikt earned 50 total points
ID: 11824614
NO.

Constraints, Indexes atc. can be only droped and recreated.

If you want to seve time during recreation use WITH NOCHECK. It'll skip existing records checking.

Patrik
0
 
LVL 2

Author Comment

by:phunchak
ID: 11824687
That's what I thought...
Although in Enterprise manager you can rename a PK or FK constraint or an index through the manage relationships button.   Although the one I want to change is a Default constraint which doesn't show up on the list.
0
 
LVL 12

Expert Comment

by:patrikt
ID: 11824740
Be avare that if you rename something in EM it can result in drop/create and sometimes to create/copy/drop operation. This can have big impact on your server performance if done in "bad" moment.

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

770 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