On Aug 2, 9:24 am, Paul @ Blue Ivy
<PaulBlue...@discussions.microsoft.com> wrote:
> Okay, installed Management Studio Express.
>
> Tried to open the database and I was getting FILE access denied errors. I
> went to the BCM folder and gave Network Service Full Control (everybody else
> had Full Control so it was the only thing left to do).
>
> I looked in the General tab under properties and I am the owner.
>
> I was then able to view the database. Whenever I click on Database Diagrams
> I get the error:
>
> ===
> Database diagram support objects cannot be installed because this database
> does not have a valid owner. To continue, first use the Files page of the
> Database Properties dialog box or the ALTER AUTHORIZATION statement to set
> the database owner to a valid login, then add the database diagram support
> objects.
> ===
>
> I know you didn't ask me to do this, however I thought it worth mentioning.
> I have also done what the error said (in the Files tab) but it's not made any
> difference.
>
> I have also deleted the BCM folder and started again - still EXACTLY the
> same error from BCM.
>
> --
> Kind regards,
>
> Paul
> Blue Ivy Ltd (http://www.blueivy.co.uk)
>
>
>
>
>
> > There are several ways to proceed. Here's my suggestion:
>
> > Get Microsoft SQL Server Management Studio Express
> >http://www.microsoft.com/downloads/d...d=C243A5AE-4BD...
>
> > Once installed run it; on Vista run as administrator.
> > Connect to BLUWKSHIG002\MSMSLBIZ, using Windows Authentication.
> > Find database MSSmallBusiness and right click on it, Properties.
> > In the General folder, look at property Owner.
>
> > If it is not your login, that's your problem. Taking ownership of the
> > database should fix your problem. You need to run, in your database,
> > the sql command: sp_changedbowner 'paul.broadwith'. Right click on the
> > database and select New Query to enter and run the command.
>
> > If you already own the database, then further diagnostics are
> > necessary.- Hide quoted text -
>
> - Show quoted text -
> Tried to open the database and I was getting FILE access denied errors.
Did you run Sql Studio as admin? This only applies on Vista.
> I looked in the General tab under properties and I am the owner.
Have you deleted and re-added your login recently?
The reason I ask is because windows uses a unique systen id for users,
and the name is just a display property.
A login may have:
sid: 1E623BFB-3C8B-4E5E-8F44-592BB3E94745
name: LutherB
I can delete that login, and add LutherB again, and Windows will
generate a new, different, id.
So, Sql Studio may show the database owner as: LutherB.
But under the covers Sql and Windows are using the id and not the name
to check for permissions, and the database may have the dbo set to the
old id.
Create a new database.
Run this command on the new database and your bcm database:
select sid from sysusers where name = 'dbo'
If they don't match, try updating the bcm database's sysusers table's
dbo record's sid field to the value in the new database.
If they do match, then I don't know why BCM won't recognize new
databases.
You could try turning on logging from the BCM About dialog box and
examining the log right after it fails to create and connect to a new
database.
As an alternative, create a new user. Login in as that user, run
Outlook (you don't need to connect it to an email system), and try to
create a new bcm database. If it creates and connect to a new
database, then the problem is related to your regular login. If it
also fails for the new user, then there's a problem with the way BCM
or Sql are installed.