Home > Archive > Microsoft SQL Server forum > November 2005 > Enterprise Manager - problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Enterprise Manager - problem
Mr Curious

2005-11-22, 3:23 am

I have a problem with Enterprise Manager - when I refresh list of tables or
databases it hangs (is not responding) for long time - about 10-30 minutes.
What is more important during my refreshement users are unable to work
normally - it hangs entire server.
Some other details:
1. I am only dbo of one database with no administrative privilges.
2. There are no problems with Query Analyzer
3. Problem is related to one particular server - I don't have these
difficulties with my local instance of SQL Server.



Is there any solution of this problem?

Cheers.


Erland Sommarskog

2005-11-22, 8:23 pm

Mr Curious (courious@somewhere.eu) writes:
> I have a problem with Enterprise Manager - when I refresh list of tables
> or databases it hangs (is not responding) for long time - about 10-30
> minutes.
> What is more important during my refreshement users are unable to work
> normally - it hangs entire server.
> Some other details:
> 1. I am only dbo of one database with no administrative privilges.
> 2. There are no problems with Query Analyzer
> 3. Problem is related to one particular server - I don't have these
> difficulties with my local instance of SQL Server.


Sounds like there are several databases that are set to autoclose. Then
EM needs to open all of those, to see what permissions you have in them.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx
Mr Curious

2005-11-23, 7:23 am


Uzytkownik "Erland Sommarskog" <esquel@sommarskog.se> napisal w wiadomosci
news:Xns9716F29CBA65
9Yazorman@127.0.0.1...
> Mr Curious (courious@somewhere.eu) writes:
>
> Sounds like there are several databases that are set to autoclose. Then
> EM needs to open all of those, to see what permissions you have in them.
>
>
>
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>



Thank you. Can I (or rather a server administrator) change this option? Is
it safe?

Regards.


Erland Sommarskog

2005-11-23, 7:23 am

Mr Curious (courious@somewhere.eu) writes:
> Thank you. Can I (or rather a server administrator) change this option? Is
> it safe?


Yes. Autoclose is a very dubious option. There are some contexts where
it's good, but not many.

I believe that Autoclose is on by default in MSDE instances. Where it may
make sense, because the database is only accessed from an application that
is run infrequently. But as soon as you start to access the server with
Enterprise Manager, autoclose becomes a problem. (Note that the license
terms does not permit you to access MSDE from EM!)


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx
Mr Curious

2005-11-23, 7:24 am


> Yes. Autoclose is a very dubious option. There are some contexts where
> it's good, but not many.
>
> I believe that Autoclose is on by default in MSDE instances. Where it may
> make sense, because the database is only accessed from an application that
> is run infrequently. But as soon as you start to access the server with
> Enterprise Manager, autoclose becomes a problem. (Note that the license
> terms does not permit you to access MSDE from EM!)
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>


Thank you again. This is not MSDE of course. I'll try to find out somethig
about this option (how to switch off etc.).

Cheers.


Mr Curious

2005-11-23, 7:24 am

> Yes. Autoclose is a very dubious option. There are some contexts where

> it's good, but not many.
>
> I believe that Autoclose is on by default in MSDE instances. Where it may
> make sense, because the database is only accessed from an application that
> is run infrequently. But as soon as you start to access the server with
> Enterprise Manager, autoclose becomes a problem. (Note that the license
> terms does not permit you to access MSDE from EM!)
>


One remark - if Auto close option is responsible - the server administrator
should have similair problem?
As far as I know he doesn't (I forgot to mention). That's why I suspect some
security issue.


Cheers.


Erland Sommarskog

2005-11-23, 7:24 am

Mr Curious (courious@somewhere.eu) writes:
> One remark - if Auto close option is responsible - the server
> administrator should have similair problem?
> As far as I know he doesn't (I forgot to mention). That's why I suspect
> some security issue.


I think the problem is due to that EM accesses the databases to see if you
have permission to it. Since sa has permission to all databases anyway,
EM might bypass the check for him.

The command to turn it off is ALTER DATABASE db SET AUTO_CLOSE OFF.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx
Mr Curious

2005-11-23, 7:24 am

>> One remark - if Auto close option is responsible - the server
>
> I think the problem is due to that EM accesses the databases to see if you
> have permission to it. Since sa has permission to all databases anyway,
> EM might bypass the check for him.
>
> The command to turn it off is ALTER DATABASE db SET AUTO_CLOSE OFF.


Thank you very much.



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com