﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server Newbies  / comparsion of users between two servers / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 01:01:36 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: comparsion of users between two servers</title><link>http://www.sqlservercentral.com/Forums/Topic1234131-1292-1.aspx</link><description>Maybe not, but you could always do it the other way round.</description><pubDate>Fri, 13 Jan 2012 09:45:47 GMT</pubDate><dc:creator>spaghettidba</dc:creator></item><item><title>RE: comparsion of users between two servers</title><link>http://www.sqlservercentral.com/Forums/Topic1234131-1292-1.aspx</link><description>Is it a good Idea to link Production server to Test server?</description><pubDate>Fri, 13 Jan 2012 09:40:42 GMT</pubDate><dc:creator>DBA_Learner</dc:creator></item><item><title>RE: comparsion of users between two servers</title><link>http://www.sqlservercentral.com/Forums/Topic1234131-1292-1.aspx</link><description>Thank you.</description><pubDate>Fri, 13 Jan 2012 09:40:12 GMT</pubDate><dc:creator>DBA_Learner</dc:creator></item><item><title>RE: comparsion of users between two servers</title><link>http://www.sqlservercentral.com/Forums/Topic1234131-1292-1.aspx</link><description>A third option is to use PowerShell.  I'm not a PowerShell guy myself, but I think this is an excellent scenario for using it.</description><pubDate>Thu, 12 Jan 2012 08:41:09 GMT</pubDate><dc:creator>  Jack Corbett</dc:creator></item><item><title>RE: comparsion of users between two servers</title><link>http://www.sqlservercentral.com/Forums/Topic1234131-1292-1.aspx</link><description>Another option: use a linked server.</description><pubDate>Wed, 11 Jan 2012 10:42:50 GMT</pubDate><dc:creator>spaghettidba</dc:creator></item><item><title>RE: comparsion of users between two servers</title><link>http://www.sqlservercentral.com/Forums/Topic1234131-1292-1.aspx</link><description>Sure you can, but you have a little work to do.This query lists users per database :sp_MSForeachdb 'USE ?select 	db_name() as dbname 	, sp.name as login	, dp.name as [user]from sys.database_principals dpinner join sys.server_principals sp on sp.principal_id = dp.principal_idWHERE dp.type_desc = ''SQL_USER'''Run it on your test and prod server and then :- compare with Excel for eample- import your prod users to your dev server (you will have to store the results in a table and then use Import Data wizard in Management Studio)and compare with a FULL JOIN</description><pubDate>Wed, 11 Jan 2012 09:56:40 GMT</pubDate><dc:creator>azdzn</dc:creator></item><item><title>comparsion of users between two servers</title><link>http://www.sqlservercentral.com/Forums/Topic1234131-1292-1.aspx</link><description>Can we compare users between two servers, for ex: users in production and test environments to see users in the Test Environment that are not in production and inactive Production users that are active in the Test environment.</description><pubDate>Wed, 11 Jan 2012 09:39:38 GMT</pubDate><dc:creator>DBA_Learner</dc:creator></item></channel></rss>