Solved

Current DB owner, SQL Server move

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

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

Suggested Solutions

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…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

744 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

12 Experts available now in Live!

Get 1:1 Help Now