Solved

Current DB owner, SQL Server move

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

943 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

1 Experts available now in Live!

Get 1:1 Help Now