x
login about faq Site discussion (meta-askssc)

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 '12 at 11:52 AM in Default

Newbie Bala gravatar image

Newbie Bala
293 7 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 '12 at 12:17 PM

Sacred Jewel gravatar image

Sacred Jewel
1.6k 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.

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



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x394
x73

asked: Feb 16 '12 at 11:52 AM

Seen: 412 times

Last Updated: Feb 16 '12 at 12:17 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.