How to create Clustered Primary Key to table?
Answers were Sorted based on User's Feedback
Answer / sarika jayadave
USE <DATABASE NAME>
GO
ALTER TABLE [SERVER NAME].[TABLE NAME]
ADD CONSTRAINT [PRIMARY KEY NAME]
PRIMARY KEY CLUSTERED
(
[ORDER BY FILED NAME] ASC
)
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / saravakumar
USE [AdventureWorks]
GO
ALTER TABLE [Sales].[Individual]
ADD CONSTRAINT [PK_Individual_CustomerID]
PRIMARY KEY CLUSTERED
(
[CustomerID] ASC
)
| Is This Answer Correct ? | 1 Yes | 1 No |
Can sql servers link to other servers?
How to create function without parameter in sql server?
Say if we have a table that contains only a single column , say OrderID, which has IDENTITY attribute defined on it. So how can we insert data in this table. I am reframing my question, that how can we make the table to increment the column "OrderID" value several times???
What are the default system databases in sql server 2000?
What is dimension table? : sql server analysis services, ssas
We create an index to fast the search. How it fast the query? Do we write any special keyword with query?
Explain fundamentals of Data ware housing & OLAP?
How many columns can we include on clustered index ?
What are ddl (data definition language) statements for tables in ms sql server?
What is a self join in sql server?
What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.
How do I view a procedure in sql server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)