cannot acees two databases as owner



Hi,

i have already posted this in other forums but so far nobody could tell me
how to solve this.

i log in to Sql server with Studio Management with Windows Authentification.
My account ("myaccount") is local 'administrator' on this computer. There
are several databases and "myaccount" is owner of all databases.

On one day, as far as i know nothing changed to the configuration of sql
server, two databases were no longer accessible: when trying to expand them:
error: "this database is not accessible" and when trying to rightclick on
them in order to see the properties:
Cannot show requested dialog. (Microsoft.SqlServer.Express.SqlMgmt)
------------------------------
An exception occurred while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.Express.ConnectionInfo)
------------------------------
The server principal "SERVERNAME\myaccount" is not able to access the
database
"sales" under the current security context. (Microsoft SQL Server, Error:
916)

But the webapplication still runs: i can insert records, update, delete ...
from asp.net.

Any attempt to grant myself privileges or make me sysadmin gives the error:
"user does no have permission for performing ..."

I also tried "reconfigure with override" with the same error. Same thing
when trying to remove a login ...

So i have the idea that the account "myaccount" has lost its owner
privileges because of unknown reason.

Can somebody tell me the right steps to do for recovering the two databases?
Thanks
David




.



Relevant Pages

  • Re: why>?
    ... On your desktop-- you'll be running SQL Server behind the scenes. ... it isn't risky to allow end users to create databases. ... it is no more risky than giving you the ability to create spreadsheets. ... I'm not saying that Oracle and IBM are going away. ...
    (microsoft.public.excel)
  • Re: Please answer my queries for fresh Installation
    ... Moving SQL Server Databases ... Using WITH MOVE in a Restore to a New Location with Detach/Attach ... Disaster Recovery Articles for SQL Server ...
    (microsoft.public.sqlserver.server)
  • Re: Please answer my queries for fresh Installation
    ... You can restore MSDB as well as master. ... > SQL Server, It will create Master, MSDB databases. ...
    (microsoft.public.sqlserver.server)
  • Re: Moving SQL Server 2000 from NT4.0 to Windows 2003
    ... Detach your existing user databases, ... user databases (or RESTORE) to the new server. ... > Hey Steve, ... Windows 2003 will not allow SQL Server SP less than 3. ...
    (microsoft.public.sqlserver.server)
  • Re: The best elegant solution to override 65k rows limit in a sheet
    ... MDB is friggin dead.. ... SQL Server has taken over the world. ... than read-only access to central company databases. ... I learned to write queries in Access after an hours' ...
    (microsoft.public.excel)

Loading