Unix Technical Forum

Enterprise Manager - problem

This is a discussion on Enterprise Manager - problem within the SQL Server forums, part of the Microsoft SQL Server category; --> I have a problem with Enterprise Manager - when I refresh list of tables or databases it hangs (is ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 03:00 PM
Mr Curious
 
Posts: n/a
Default Enterprise Manager - problem

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 03:00 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Enterprise Manager - problem

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/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 03:01 PM
Mr Curious
 
Posts: n/a
Default Re: Enterprise Manager - problem


Uzytkownik "Erland Sommarskog" <esquel@sommarskog.se> napisal w wiadomosci
news:Xns9716F29CBA659Yazorman@127.0.0.1...
> 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
>



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

Regards.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 03:01 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Enterprise Manager - problem

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/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-29-2008, 03:01 PM
Mr Curious
 
Posts: n/a
Default Re: Enterprise Manager - problem


> 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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-29-2008, 03:01 PM
Mr Curious
 
Posts: n/a
Default Re: Enterprise Manager - problem

> 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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-29-2008, 03:01 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Enterprise Manager - problem

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/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-29-2008, 03:01 PM
Mr Curious
 
Posts: n/a
Default Re: Enterprise Manager - problem

>> 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.


Thank you very much.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com