更改DBName数据库,dbo的登录名为 sa
use DBName
go
sp_changedbowner 'sa'
// 查询重复记录数大于1的所有记录
// SELECT * FROM [TABLE] GROUP BY [FIELD] HAVING COUNT(ID) > 1
更改DBName数据库,dbo的登录名为 sa
use DBName
go
sp_changedbowner 'sa'
// 查询重复记录数大于1的所有记录
// SELECT * FROM [TABLE] GROUP BY [FIELD] HAVING COUNT(ID) > 1
转载于:https://my.oschina.net/u/915735/blog/619988