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 we call stored procedure in trigger?
There is a trigger defined for INSERT operations on a table, in an OLTP system. The trigger is written to instantiate a COM object and pass the newly insterted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better?
two tables with table name ship(name,year) and battle (name,year),how to find the latest added year in the table ship
Where sql server usernames and passwords are stored in a sql server?
What is the use of sign function?
What protocol does sql server use?
How to defragment table indexes?
Why is replication required on the sql server?
What is the data type of time?
Tell me what do you mean by an execution plan? Why is it used? How would you view it?
What is PROJECTION Operation?
When would you use sql joins?