Solved

schema request

Posted on 2011-02-18
4
933 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

730 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