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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQLServer Default Database Changed

SQLServer Default Database Changed

Scheduled Pinned Locked Moved Database
sysadmindatabasehelpquestion
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.
  • T Offline
    T Offline
    Tim Carmichael
    wrote on last edited by
    #1

    On a SQLServer 2000 server, the default database for the user accounts was changed. This appears to have occurred for ALL users accounts, both network login names and SQLServer named accounts. Any idea how this can happen? Our DBA resigned Thanksgiving week, so there is no help onsite. Thanks in advance, Tim

    L D 2 Replies Last reply
    0
    • T Tim Carmichael

      On a SQLServer 2000 server, the default database for the user accounts was changed. This appears to have occurred for ALL users accounts, both network login names and SQLServer named accounts. Any idea how this can happen? Our DBA resigned Thanksgiving week, so there is no help onsite. Thanks in advance, Tim

      L Offline
      L Offline
      loyal ginger
      wrote on last edited by
      #2

      There are multiple ways to change the default database for the user accounts. You will need to retrieve a backup to restore the old default databases for all users. You may need to talk to the previous DBA about this issue. It is time consuming to find the cause by yourself. Was the previous DBA happy or not?

      1 Reply Last reply
      0
      • T Tim Carmichael

        On a SQLServer 2000 server, the default database for the user accounts was changed. This appears to have occurred for ALL users accounts, both network login names and SQLServer named accounts. Any idea how this can happen? Our DBA resigned Thanksgiving week, so there is no help onsite. Thanks in advance, Tim

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        Use this statement to verify what you think happened ... select name,default_database_name,modify_date from sys.sql_logins If, indeed the changes were made, you will see when they happened and someone here might be able to work you through fixing it. You may want to start by changing your administrative passwords since your DBA left. Make sure to tighten up any remote access accounts, etc.

        T 1 Reply Last reply
        0
        • D David Mujica

          Use this statement to verify what you think happened ... select name,default_database_name,modify_date from sys.sql_logins If, indeed the changes were made, you will see when they happened and someone here might be able to work you through fixing it. You may want to start by changing your administrative passwords since your DBA left. Make sure to tighten up any remote access accounts, etc.

          T Offline
          T Offline
          Tim Carmichael
          wrote on last edited by
          #4

          David Mujica wrote:

          Use this statement to verify what you think happened ...

          Users could access the system last Thursday; on Friday, they couldn't. The default database was changed to a database that is used for sending e-mail messages, so, they neither need nor have access to it. The accounts (there are only a handful) have been manually updated.

          David Mujica wrote:

          select name,default_database_name,modify_date from sys.sql_logins

          Since this is a SQLServer 2000 node, the listed table didn't work, but it gave me enough information to move forward. I used the following: select l.name, xdate1 as creation_Date, xdate2 as modify_date, l.dbid, d.name as defaultdb from sysxlogins l inner join sysdatabases d on l.dbid = d.dbid And that just opened up more questions... One of the accounts was created in 2007, updated a minute later and not touched after that, but, they have a default database set to a database that didn't exist at the time. As far as access rights, when someone leaves the company, their password is changed and remote access removed. Tim

          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