You're going to need to add a unique column to your table, so that you can distinguish between different copies of the same row:
ALTER TABLE YourTable
ADD TempRowNumber int IDENTITY(1, 1) NOT NULL;
Then you need to find and delete the duplicate rows. Assuming you only care about the
Stuid
column:
DELETE
FROM
T1
FROM
YourTable As T1
WHERE
Exists
(
SELECT 1
FROM YourTable As T2
WHERE T2.Stuid = T1.Stuid
And T2.TempRowNumber < T1.TempRowNumber
)
;
If necessary, you can then drop the temporary unique column, and add a proper unique constraint:
ALTER TABLE YourTable
DROP COLUMN TempRowNumber;
GO
ALTER TABLE YourTable
WITH CHECK
ADD CONSTRAINT UX_YourTable_Stuid UNIQUE (Stuid);
GO