Answer Posted / sql2000
Its Possible, run the below code and have a look...
begin transaction
create table test (col1 int, col2 int)
insert into test values (1, 1)
insert into test values (1, 2)
insert into test values (1, 3)
insert into test values (2, 1)
delete from test where col1 = 2
alter table test
alter column col2 int not null
alter table test
add
constraint [pk_col2] primary key nonclustered(col2) on
[primary]
rollback transaction
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the usage of the sign function?
What is normalization? Describe its different types.
What is sub-query in sql server? Explain its properties.
How to enter date and time literals in ms sql server?
What is the contrast amongst drop and truncate?
How to rebuild all indexes on a single table?
What is difference between rollback immediate and with no_wait during alter database?
What are the steps you can take to avoid “deadlocks”?
What is the difference between a primary key and a unique key? Are they the same?
What is the sql profiler?
What are different types of schemas?
What is indexing a document?
What are the requirements for sql server 2016?
What are the components of sql server service broker?
What is the difference between mysql and mysqli?