Solved

insert xp_logininfo results to table

Posted on 2008-06-18
1
1,087 Views
Last Modified: 2008-06-19
I am using this query

xp_logininfo @acctname = 'ad-ent\msuued', @option = 'all'

How can I insert this into a temp table?
0
Comment
Question by:JonMny
1 Comment
 
LVL 4

Accepted Solution

by:
zx10r earned 500 total points
ID: 21814101
CREATE TABLE #temp
(
      [account name] varchar(50),
      [type] varchar(50),
      [privilege] varchar(50),
      [mapped login name] varchar(50),
      [permission path] varchar(50)
)

INSERT #temp
EXEC xp_logininfo @acctname = 'ad-ent\msuued', @option = 'all'
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

757 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

20 Experts available now in Live!

Get 1:1 Help Now