Re: Need unique constraint on data table
From: Hugo Kornelis (hugo_at_pe_NO_rFact.in_SPAM_fo)
Date: 08/06/04
- Previous message: Paul: "Re: Need unique constraint on data table"
- In reply to: Paul: "Re: Need unique constraint on data table"
- Next in thread: Paul: "Re: Need unique constraint on data table"
- Reply: Paul: "Re: Need unique constraint on data table"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 06 Aug 2004 17:59:31 +0200
On Fri, 6 Aug 2004 08:47:04 -0700, Paul wrote:
>Thanks for the information. Was not aware that you could include more than 1
>column to create a primary key. I noticed in enterprize manager if you right
>click on the table and select design table and then right click on the design
>table menu and select indexes/keys it has an option to create UNIQUE
>Constraint, but looks like it is only for a single column, not sure.
Hi Paul,
Like a PRIMARY KEY constraint, a UNIQUE constraint may span several
columns as well. And like the PRIMARY KEY constraint, I urge you to use
SQL statements throug Query Analyzer to define it, instead of working
through Enterprise Manager. In fact, I'd advise you to do all DDL (data
definition language - creating, modifying and dropping tables, indexes,
constraints, etc) with SQL statements through Query Analyzer.
Enterprise Manager is a great tool for administrating the database (doing
ad-hoc or scheduled backups, restoring, managing users and permissions,
setting up repication, DTS, etc), but it really shouldn't be used for
other tasks.
Best, Hugo
-- (Remove _NO_ and _SPAM_ to get my e-mail address)
- Previous message: Paul: "Re: Need unique constraint on data table"
- In reply to: Paul: "Re: Need unique constraint on data table"
- Next in thread: Paul: "Re: Need unique constraint on data table"
- Reply: Paul: "Re: Need unique constraint on data table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|