User Properties

Name: dbo 

SQL

if not exists (select * from dbo.sysusers where name = N'dbo' and uid < 16382)
    EXEC sp_grantdbaccess N'sa', N'dbo'
GO

See Also

List of users