Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Starting Member

34 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:
" : 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.



Flowing Fount of Yak Knowledge

United Kingdom
3385 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

Flowing Fount of Yak Knowledge

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
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000