Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to drop builtin\administrators account from sql server

How to drop builtin\administrators account from sql server

Scheduled Pinned Locked Moved Database
databasesecurityquestionsql-serversysadmin
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Developer611
    wrote on last edited by
    #1

    Hi there I want to drop 'builtin\administrators' from sql server with a SQL query or stored procedure. I logged in with sa user and i don't know how to drop administrators account. In fact i want to remove windows authentication security login. How can i do that? Thanx.

    M 1 Reply Last reply
    0
    • D Developer611

      Hi there I want to drop 'builtin\administrators' from sql server with a SQL query or stored procedure. I logged in with sa user and i don't know how to drop administrators account. In fact i want to remove windows authentication security login. How can i do that? Thanx.

      M Offline
      M Offline
      Mark Churchill
      wrote on last edited by
      #2

      I'm pretty sure the authentication modes for SQL 2005 are 'Windows Authentication only' and 'Mixed mode' (both). There should only be a couple of built-in accounts - can you just remove their permissions in the management console?

      Mark Churchill Director Dunn & Churchill

      D 1 Reply Last reply
      0
      • M Mark Churchill

        I'm pretty sure the authentication modes for SQL 2005 are 'Windows Authentication only' and 'Mixed mode' (both). There should only be a couple of built-in accounts - can you just remove their permissions in the management console?

        Mark Churchill Director Dunn & Churchill

        D Offline
        D Offline
        Developer611
        wrote on last edited by
        #3

        Yes . I can remove the login 'BUILTIN\Administrator' or other built-in accounts with management console but i can't remove it with SQL query . My problem is remove with sql query . How can I do this ?

        DMASTER

        B 1 Reply Last reply
        0
        • D Developer611

          Yes . I can remove the login 'BUILTIN\Administrator' or other built-in accounts with management console but i can't remove it with SQL query . My problem is remove with sql query . How can I do this ?

          DMASTER

          B Offline
          B Offline
          Burnsys2
          wrote on last edited by
          #4

          sp_revokelogin 'BUILTIN\Administrator'

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups