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. Development and production database servers

Development and production database servers

Scheduled Pinned Locked Moved Database
databasesysadminalgorithmsquestion
8 Posts 6 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.
  • V Offline
    V Offline
    vanikanc
    wrote on last edited by
    #1

    Hello, Our production and development databases are on the same server, due to the complexity of the system. is there a way, that I could not have the production server active, when I open the database server? I do not want to accidently connect to this. Thanks!

    B D J 3 Replies Last reply
    0
    • V vanikanc

      Hello, Our production and development databases are on the same server, due to the complexity of the system. is there a way, that I could not have the production server active, when I open the database server? I do not want to accidently connect to this. Thanks!

      B Offline
      B Offline
      badprog
      wrote on last edited by
      #2

      Can you create a different password for the production server database?

      :)

      1 Reply Last reply
      0
      • V vanikanc

        Hello, Our production and development databases are on the same server, due to the complexity of the system. is there a way, that I could not have the production server active, when I open the database server? I do not want to accidently connect to this. Thanks!

        D Offline
        D Offline
        Dr Walt Fair PE
        wrote on last edited by
        #3

        Depending on what DB server you are using, you can also assign different users to the databases.

        CQ de W5ALT

        Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

        V 1 Reply Last reply
        0
        • D Dr Walt Fair PE

          Depending on what DB server you are using, you can also assign different users to the databases.

          CQ de W5ALT

          Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

          V Offline
          V Offline
          vanikanc
          wrote on last edited by
          #4

          Both instances of databases are on the same server, this is sql2005. Once you add a login, it is by default to all the databases that exists on that server, right?

          D D J 3 Replies Last reply
          0
          • V vanikanc

            Both instances of databases are on the same server, this is sql2005. Once you add a login, it is by default to all the databases that exists on that server, right?

            D Offline
            D Offline
            Dr Walt Fair PE
            wrote on last edited by
            #5

            I'm not an expert on SQL2005, but check the GRANT SQL keyword. You should be able to create a user and grant that user access to only a single DB. I don't think there's any way to restrict the administrator from accessing a db, though.

            CQ de W5ALT

            Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

            1 Reply Last reply
            0
            • V vanikanc

              Both instances of databases are on the same server, this is sql2005. Once you add a login, it is by default to all the databases that exists on that server, right?

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

              You can create a login on a SQL server, but you still need to associate it to a User in a database and grant that user specific rights in that database. For example, I created a user, pm_user, which is valid in the PM database, but has no access to the "Sandbox" database. When I try to execute the following SQL, Use Sandbox GO I get the following error message: The server principal "pm_user" is not able to access the database "Sandbox" under the current security context. This shows that a login is not the same as a user and with a single login, you can restrict the databases the user has access to. Hope this helps. David

              1 Reply Last reply
              0
              • V vanikanc

                Both instances of databases are on the same server, this is sql2005. Once you add a login, it is by default to all the databases that exists on that server, right?

                J Offline
                J Offline
                J4amieC
                wrote on last edited by
                #7

                vanikanc wrote:

                Both instances of databases are on the same server, this is sql2005. Once you add a login, it is by default to all the databases that exists on that server, right?

                Wrong. A login to a server does not automatically grant access to databases on that server.

                1 Reply Last reply
                0
                • V vanikanc

                  Hello, Our production and development databases are on the same server, due to the complexity of the system. is there a way, that I could not have the production server active, when I open the database server? I do not want to accidently connect to this. Thanks!

                  J Offline
                  J Offline
                  jschell
                  wrote on last edited by
                  #8

                  vanikanc wrote:

                  Our production and development databases are on the same server, due to the complexity of the system. is there a way, that I could not have the production server active, when I open the database server? I do not want to accidently connect to this.

                  Obviously the best solution is to use two different servers. That precludes other problems as well such as run away queries that cause CPU overload, or timeouts due to long running processes. Myself I test against the database server which runs on my development box. But as noted by others very careful use of users and permissions would entirely preclude overlap.

                  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