question

Newbie Bala avatar image
Newbie Bala asked

sysuers in SQL 2008 R2

select * from sysusers where issqlrole=1 When run this statement in SQL 2000 by using both Windows Authentication and SQL Authentication the results will be same. But using this in SQL 2008 R2, the SQL Authentication gives few results and Windows Authentication gives the same result as SQL 2000. Please help with this.
sql-server-2008-r2login
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sacred Jewel avatar image
Sacred Jewel answered
The `sysuser` Microsoft SQL Server 2000 system table is included as a view for backward compatibility only. Start using `sys.database_principals` instead in SQL 2005+ environment.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.