SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 need to change database owner
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

barnsley
Starting Member

31 Posts

Posted - 12/12/2012 :  11:55:44  Show Profile  Reply with Quote
We have a website running off a DotNetNuke CMS.

We have recently upgraded our database from SQL2000 to SQL2005.

In our initial install (a few yrs ago) we used a databaseOwner and schema by the same name - called 'nigel'.

Due to previous failed upgrade attempts of the CMS I have changed the schema name from 'nigel' back to 'dbo'. (also created missing stored procedures, views and tables using dbo).

However, there is still one thing which I can't change from 'nigel' to 'dbo' - and that is the databaseOwner specified in our web.config file - if I chage this to dbo - our site goes down (error msg saying 'site is currently unavailable...').

I am wondering if this could be at the heart of our upgrade problems?
Because we are getting upgrade errors like this:
"system.data.sqlclient.sqlexception : cannot find the object 'upgrade Default Language' because it does not exist or you do not have permission..."

In SQL, I have dbo listed under security >> users > with db_owner checked.

I am changing to dbo from our own default schema and owner name becasue i read this somewhere:

if you have ‘dbo’ as the database owner, you’ve probably got no problems.  But if you have a value like databaseOwner="YOUR_OWN_NAME” then you probably have a problem.  This is because each of the above scripts does not specify the ‘owner’ or ‘schema’ of the database object.


thanks,
mark.

mark.

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3383 Posts

Posted - 12/12/2012 :  12:16:48  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Getting rid of Nigel is a mistake - as a number of companies have found to their cost (but some not).

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 12/12/2012 :  12:36:32  Show Profile  Reply with Quote
There is difference between schema and owner. Read this...the answer is here

http://www.sqlteam.com/article/understanding-the-difference-between-owners-and-schemas-in-sql-server
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000