Solved

Current DB owner, SQL Server move

Posted on 2012-04-11
2
473 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

751 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