Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 system tables

Author  Topic 

ServerTeam
Yak Posting Veteran

83 Posts

Posted - 2008-06-02 : 10:28:23

Hi Gurus,

select * from sys.server_principals is not working for me on 2000 SERVER.

This works fine on 2005 SERVER..

Where Iam going wrong ..please advice..

Thanks,
ServerTeam

ServerTeam
Yak Posting Veteran

83 Posts

Posted - 2008-06-02 : 10:31:51
and also for..

select * from sys.database_principals

Thanks,
ServerTeam
Go to Top of Page

mdubey
Posting Yak Master

133 Posts

Posted - 2008-06-02 : 11:02:52
Hi,

select * from sys.database_principals will worj for SQL 2005 and SQL 2008 not in SQL 2000.

select default_schema_name from sys.database_principals where
name=USER_NAME()

Manoj
MCP, MCTS
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-06-02 : 12:27:11
what are you trying to achieve?
Go to Top of Page
   

- Advertisement -