?
Solved

schema request

Posted on 2011-02-18
4
Medium Priority
?
947 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 260 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 240 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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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 the fundamental information of how to create a table.

764 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