How To delete duplicate record from a particular table?
Answer Posted / g2
create table Table1(trowid int not null, tname varchar(100))
insert into table1(trowid, tname) values(1, 'G2')
go 100
declare @row int;
set @row= (select count(*) from table1)
set @row=@row-1
set rowcount @row
delete from table1 -- You can put here conditions with all
the columns also
set rowcount 0
go
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How each E-R model constructs can be mapped to the relational model?
How will you monitor replication latency in transactional replication? : sql server replication
How can I tell if sql server is 32 or 64 bit?
What is change data capture (cdc) feature?
Where are SQL server users names and passwords are stored in sql server?
What is the default fill factor value?
What is the syntax for encrypting a column in SQL Server?
How to change parameter value inside the report?
To which devices can a backup be created and where should these devices be located? : sql server management studio
What is rank function?
What the different types of Replication and why are they used?
What is data compression?
What is after dml trigger?
Explain the xml support sql server extends?
What is trigger in salesforce?