Microsoft Technology
Posted: 29 Jun 2010 08:41 AM PDT
| ||||||||||||||||||||
Posted: 29 Jun 2010 07:03 AM PDT
| ||||||||||||||||||||
Posted: 29 Jun 2010 03:49 AM PDT
| ||||||||||||||||||||
Posted: 28 Jun 2010 10:38 PM PDT
Composite Key is a primary key, combination of more than one column to maintain unique record. It is also known as Concatenated Key or Aggregate Key
For example:
CREATE TABLE InvoiceDetails (
InvoiceNo numeric(18,0),
itemNumber numeric(18,0),
productId int,
quantity numeric(18,2),
PRIMARY KEY (InvoiceNo, itemNumber))
InvoiceDetails table may have a composite key on InvoiceNo & itemNumber
| ||||||||||||||||||||
Posted: 28 Jun 2010 10:10 PM PDT
It is a Database concept, it maintain the consistent relation between parent and child tables. When one table contains FK, it may not allow inserting any values in key columns of the child tables which is not existed in parents table. It supports cascading update and cascading delete, which ensures the changes made to the child table will be reflected in parent table as well.
| ||||||||||||||||||||
Posted: 28 Jun 2010 08:52 PM PDT
You can use any of the following queries to retrieve list of all databases
SELECT name FROM sys.databases
SELECT name FROM sys.sysdatabases
Or you can use the following system stored procedure
EXEC sp_databases
EXEC sp_helpdb
|
Comments
Post a Comment