Solved

schema request

Posted on 2011-02-18
4
909 Views
Last Modified: 2013-11-05
I dont have any 2000 or 2005 instance of sql server to identify what I am after.

I want the table schema for (2000) master..sysxlogins and (2005) sys.sql_logins

Can anyone send the 2 schemas to me?
0
Comment
Question by:pma111
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
mkobrin earned 65 total points
ID: 34925102
TABLE [sysxlogins]

      [srvid] [smallint] NULL ,
      [sid] [varbinary] (85) NULL ,
      [xstatus] [smallint] NOT NULL ,
      [xdate1] [datetime] NOT NULL ,
      [xdate2] [datetime] NOT NULL ,
      [name] [sysname] NULL ,
      [password] [varbinary] (256) NULL ,
      [dbid] [smallint] NOT NULL ,
      [language] [sysname] NULL ,
      [isrpcinmap] AS (convert(smallint,case when ([xstatus] & 32 = 32) then 1 else 0 end)) ,
      [ishqoutmap] AS (convert(smallint,case when ([xstatus] & 64 = 64) then 1 else 0 end)) ,
      [selfoutmap] AS (convert(smallint,case when ([xstatus] & 192 = 192) then 1 else 0 end))

I don't have sys.sql_logins from 2005 with me now.
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 60 total points
ID: 34925773
sys.sql_logins is not a table it is a system VIEW.  Here is the definition from SQL Server BOL:
http://msdn.microsoft.com/en-us/library/ms174355(SQL.90).aspx


0
 
LVL 3

Author Comment

by:pma111
ID: 34926062
By "Inherits from sys.server_principals" does that mean if you

ran select * from sys.sql_logins youd get all the fields from that view/table as well

Basically I have an extract of select * from sys.sql_logins, minus the column names, its the column names I am trying to find so I know what row of data represents what...
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 34926546
>>select * from sys.sql_logins youd get all the fields from that view/table as well<<
Yes.  In other words you need to click on the link in the article (that is http://msdn.microsoft.com/en-us/library/ms188786(v=SQL.90).aspx) and that will show you all the columns that are derived from the sys.server_principals.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS SQL - Rotating Values in SQL 9 55
T-SQL:  I Want "Summary"--Not "Detail" 6 22
SQL Server stored proc 2 13
SQL Pivot Rows To Columns 9 22
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now