Solved

Current DB owner, SQL Server move

Posted on 2012-04-11
2
476 Views
Last Modified: 2012-07-31
I am in the process of moving the databases off an old server to a new physical server.

sp_changedbowner ... allows to set

Q1. Is there a stored procedure that shows me WHO the current db owner is ( without right clicking around)

Q2. Is there a way to move these db permissions across from old server to new server.

Thanks
0
Comment
Question by:3Musketeers
[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 Comments
 
LVL 7

Accepted Solution

by:
Anoo S Pillai earned 500 total points
ID: 37835589
1) You can find out the from sys.databases; The following query will be helpful.
select suser_sname(owner_sid) from sys.databases

2) As database permissions are set within the database, permissions of database users won't lost even if you move database across servers.
BUT you should ensure that database users are not orphaned.
Please refer the following article to fix orphaned users.
http://msdn.microsoft.com/en-us/library/ms175475(v=sql.100).aspx


Hope this is helpful.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 37835608
Q1. EXEC sp_helpdb 'YourDatabaseName'
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

621 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