x

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.
more ▼

asked Feb 16, 2012 at 11:52 AM in Default

Newbie Bala gravatar image

Newbie Bala
293 11 11 13

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first
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.
more ▼

answered Feb 16, 2012 at 12:17 PM

Sacred Jewel gravatar image

Sacred Jewel
1.7k 2 4 5

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x587
x84

asked: Feb 16, 2012 at 11:52 AM

Seen: 727 times

Last Updated: Feb 16, 2012 at 12:17 PM