473,387 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SQL Server Performance and permissions

Hello,

I am running SQL Server 2000 standard in mixed mode security and have
two problems.

1.) I created a database as sa and assigned a login as db_owner,
however, the design view is grayed out for all tables. All tables are
owned by dbo and no user defined role exists for the database.

2.) Any login other than sa will time-out in Enterprise Manager or take
extremely long. The sa login performs acceptably well. Once the non
sa login is connected to a server in EM, the database list shows 'no
items'. F5 refresh takes incredibly long. Accessing the tables under
a DB often times out.

Any ideas?

Mike

Jul 23 '05 #1
4 1864

<ra*****@mail.horacemann.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hello,

I am running SQL Server 2000 standard in mixed mode security and have
two problems.

1.) I created a database as sa and assigned a login as db_owner,
however, the design view is grayed out for all tables. All tables are
owned by dbo and no user defined role exists for the database.

2.) Any login other than sa will time-out in Enterprise Manager or take
extremely long. The sa login performs acceptably well. Once the non
sa login is connected to a server in EM, the database list shows 'no
items'. F5 refresh takes incredibly long. Accessing the tables under
a DB often times out.

Any ideas?

Mike


I couldn't reproduce your first problem - I added a login, put it in the
db_owner role of a database, and the "Design Table" menu option is available
for all tables; if the user is not in db_owner it is greyed out, so perhaps
you didn't add the user correctly? You can try these queries to confirm if
the user is in the role:

select is_member('db_owner')
exec sp_helprolemember 'db_owner'

As for the second issue, you could try increasing the query timeout in EM
(Tools - Options - Advanced), but I don't know if that will help. One point
to mention is that if your databases are set to auto close, then it can take
a long time to display them all in EM. But this isn't on by default for
Standard Edition, and you say that you get timeouts working on tables too,
so it seems unlikely. It might still be worth checking, though:

select name, databasepropertyex(name, 'IsAutoClose')
from master..sysdatabases

If this doesn't help, I suggest you give some more details - how many
databases, do you get similar timeouts from Query Analyzer or other clients,
do both Windows and SQL logins have this problem, are you connecting over a
LAN or a WAN, are there any general network issues etc.

Simon
Jul 23 '05 #2
Simon,

Thank you for your reponse.

1.) I had tried this query and the login shows up as db_owner. I could
not reproduce the problem on other servers either.

2.) The problem is with EM only with a NON-sa login. The sa login
performance is fine. Any NON-sa login performs poorly or stops
responding. Is the sa login NOT affected by IsAutoClose or somehow
treated differently than a NON sa?

Thanks
Mike

Jul 23 '05 #3
(ra*****@mail.horacemann.com) writes:
2.) The problem is with EM only with a NON-sa login. The sa login
performance is fine. Any NON-sa login performs poorly or stops
responding. Is the sa login NOT affected by IsAutoClose or somehow
treated differently than a NON sa?


Yes. For sa Enterprise Manager does not have to check whether you have
permissions to access a certain database - sa always have permission.
But for a non-sa user, EM submits a query foreach database when you
expand the database node. If databases are in autoclose, then this will
take a long time.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #4
Autoclose is set to 0 for all databases. Is that why the database list
will return 'No items' without a refresh?

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brad H McCollum | last post by:
I'm writing an application using VB 6.0 as the front-end GUI, and the MSDE version of SQL Server as the back-end (it's a program for a really small # of users --- less then 3-4). I'm trying to...
67
by: Mike MacSween | last post by:
I've got a SQL Server database. Nearly finished. It's going to go on a single non networked machine. One day somebody might get access to it over ADSL (probably TS), but for now it's a single user...
2
by: Todd Barlow | last post by:
I have an ASP.NET application that instantiantes a Win32 C++ Com object. This object's methods require specific access permissions to the underlying registry/file structure in order to function...
9
by: Ivan Demkovitch | last post by:
Hi! I would like to know if I can save File on Server using server-side code? For example, I like to create thumbnail images and populate specific directory. Do I need specific permissions...
7
by: Lucas | last post by:
Hi, I have an ASP.Net application written with VS.Net 2002 (Net FWK 1.0). This Web Application uses Exception Management Application Block to log Events to Windows Event Log. We registered the...
3
by: datapro01 | last post by:
I am a DB2 DBA that has been asked to become familiar enough with SQL Server in order to become actively involved in its installation, implementation, and to review database backup/recovery...
4
by: casper | last post by:
Hi, I created an asp.net 2.0 website with VWD and made it an application in IIS. It was created on a ntfs disc (my documents...). The directory permissions are set on 'anonymous allowed' using...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
0
by: Bill E. | last post by:
I will be creating an application using MS Access as a client to SQL Server 2005. Each user will have the client installed on his/her machine. Some users will be attached to the local network...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.