Solved

Constraint Not Showing Under "Constraints" in Management Studio

Posted on 2006-11-02
4
714 Views
Last Modified: 2013-12-03
I created a new table like this:

IF OBJECT_ID('MyTables') IS NULL
CREATE TABLE MyTables (
id INT IDENTITY (1,1),
SomeName VARCHAR(20) NOT NULL CONSTRAINT UniqueSomeName UNIQUE (SomeName)
);

Now, when I got to Management Studio (2005), the constraint does not show under the "Constraints", but it does show under the "Indexes" and "Statistics". Am I doing something wrong?
0
Comment
Question by:GivenRandy
  • 2
4 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 17859057
a UNIQUE constraint is implemented by a UNIQUE INDEX. hence it shows up there...
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 17859059
>Am I doing something wrong?
no
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 17859079
Check for that one in indexes
0
 
LVL 9

Author Comment

by:GivenRandy
ID: 17859399
LMAO -- Of course. Thanks!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
2016 SQL Licensing 7 41
Need help how to find where my error is in UFD 6 30
transaction in asp.net, sql server 6 34
Need help constructing a conditional update query 16 48
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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.
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.
Viewers will learn how the fundamental information of how to create a table.

832 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