Showing posts with label tool. Show all posts
Showing posts with label tool. Show all posts

Monday, March 26, 2012

Rights needed for Surface Area Configuration tool?

Greetings.

Can a non-local admin run the Surface Area Configuration tool? Our dba wants to be able to use the tool, but is not a local admin on the SQL Server. Would we be able to assign a minimal set of rights to him without giving him full local admin?

Thanks.


Dale.

The SAC tool pretty much assumes that a local admin is setting up the configuration of the system. It uses WMI to access the services and it some cases needs to create a connection to the server within the contenct of the SQL Admin. If there is a standard setup you need for your SQL instances, you might consider having an administrator setup a configuration file and run it across your servers using the SAC command line utility.

Thank you,

Bill Ramos, Lead PM, SQL Manageability

Wednesday, March 21, 2012

RI Enforcement: Trigger-Based or ??

On my first SQL Server DB, I used MS Access as my database design tool and then
converted it.
Not knowing much, I made a more-or-less random choice and opted for
Trigger-Based RI enforcement.
I know there's another method, but haven't got a clue as to the tradeoffs.
Eventually, I'll spring for a "real" design tool and at that point need to be
able to make a more informed decision.
Comments?
--
PeteCresswellRE/
>I know there's another method, but haven't got a clue as to the tradeoffs.
Actually, I think I may have a single small clue: With trigger-based RI
enforcement, you have the opportuntity to customize the failure messages... but
that seems trivial...
--
PeteCresswell|||The standard way to enforce RI is through a Foreign Key constraint:
CREATE TABLE Table_A (A INTEGER PRIMARY KEY)
CREATE TABLE Table_B (B INTEGER PRIMARY KEY, A INTEGER NOT NULL
CONSTRAINT constraint_name REFERENCES Table_A (A))
This is much more concise than the equivalent trigger and generally should
perform better than procedural trigger code. A foreign key can also be used
by the optimizer to build more efficient query plans and it can be used by
design and admin tools (such as Enterprise Manager) to determine
relationships. Triggers won't do those things.
Some reasons for using a trigger instead might be: to implement complex
validation that can't otherwise be defined in a CHECK or FK constraint; to
implement cascading RI where the CASCADE option isn't permitted.
--
David Portas
--
Please reply only to the newsgroup
--sql