Re: Deny Create Database

From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 02/12/04


Date: Thu, 12 Feb 2004 11:11:02 -0500

Run:

use master

before you run the DENY.

--
Tom
---------------------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"Scotty" <scasti1@cox.net> wrote in message
news:4B307CF8-97A3-41ED-9F3E-ABB130C8C525@microsoft.com...
User is an NT Administrator and has been made a member  of  Server Role
sysadmin.
I'm not in the master database in query analyzer.
When I do this:
Deny Create Database
To User
I get the following message:
CREATE DATABASE PERMISSION CAN ONLY BE GRANTED IN THE MASTER DATABASE
How do I alter the SQL statement to refer to the master database?
Thanks for any help.


Relevant Pages

  • Re: unable to start SQL Service ... error code 3417
    ... If the Master database is corrupt, how would you advise I maybe replace with ... "SQL Server cannot start the master database. ... MVP - Windows Live Platform ...
    (microsoft.public.sqlserver.server)
  • RE: master DB users
    ... (No user other than DBA should be allowed to access the master database). ... explicitly to database users in master, except those that SQL Server ... Those that are not in the sys schema ...
    (microsoft.public.sqlserver.security)
  • Re: Restoring the Master Database
    ... You need to start SQL Server in single-user mode in order to restore master. ... > I am trying to restore the master database and am getting the following ...
    (microsoft.public.sqlserver.server)
  • RE: Disconnected Database solution
    ... Have a look at SQL Server CE edition on ... You can run merge replication to sync between your device and the master ... > while disconnected from the main database (SQL Server ... > Server level I can synchronize with the master database ...
    (microsoft.public.sqlserver.connect)
  • 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)

Quantcast