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. moving database in sql (question again)

moving database in sql (question again)

Scheduled Pinned Locked Moved Database
databasehelpquestionsql-serversysadmin
9 Posts 4 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.
  • S Offline
    S Offline
    shaz jazz
    wrote on last edited by
    #1

    in reply of moving database in sql Colin Angus Mackay once wrote : Two ways I can think of. 1. Detach the database move the files and then attach at the other end. (You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db) 2. Create a backup of the database, move the backup file to the new system, then restore the backup (you'll again have to wire up the logins to accounts for the same reasons given above). now i'm havg same problem(i'm using sql server 2005 express edition), i hav tried both ways but at second server when i click database diagrams then it gives masseage that no valid owner of this database exits so can't work with database diagrams, in database properties i tried to enter different owners but didn't worked so what should i do?? further more what does this mean "(You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db)" i just cant get it? May God help u solv ur problems as well,thx in advance!!

    C F 2 Replies Last reply
    0
    • S shaz jazz

      in reply of moving database in sql Colin Angus Mackay once wrote : Two ways I can think of. 1. Detach the database move the files and then attach at the other end. (You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db) 2. Create a backup of the database, move the backup file to the new system, then restore the backup (you'll again have to wire up the logins to accounts for the same reasons given above). now i'm havg same problem(i'm using sql server 2005 express edition), i hav tried both ways but at second server when i click database diagrams then it gives masseage that no valid owner of this database exits so can't work with database diagrams, in database properties i tried to enter different owners but didn't worked so what should i do?? further more what does this mean "(You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db)" i just cant get it? May God help u solv ur problems as well,thx in advance!!

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      shaz jazz wrote:

      further more what does this mean "(You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db)" i just cant get it?

      I answered this question already here[^] If there is something you don't understand from that answer then what is it?


      Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

      S 1 Reply Last reply
      0
      • C Colin Angus Mackay

        shaz jazz wrote:

        further more what does this mean "(You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db)" i just cant get it?

        I answered this question already here[^] If there is something you don't understand from that answer then what is it?


        Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

        S Offline
        S Offline
        shaz jazz
        wrote on last edited by
        #3

        what about this problem???:doh: "now i'm havg same problem(i'm using sql server 2005 express edition), i hav tried both ways but at second server when i click database diagrams then it gives masseage that no valid owner of this database exits so can't work with database diagrams, in database properties i tried to enter different owners but didn't worked so what should i do?? further more what does this mean "(You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db)" i just cant get it?" May God help u solv ur problems as well,thx in advance!!

        C 1 Reply Last reply
        0
        • S shaz jazz

          what about this problem???:doh: "now i'm havg same problem(i'm using sql server 2005 express edition), i hav tried both ways but at second server when i click database diagrams then it gives masseage that no valid owner of this database exits so can't work with database diagrams, in database properties i tried to enter different owners but didn't worked so what should i do?? further more what does this mean "(You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db)" i just cant get it?" May God help u solv ur problems as well,thx in advance!!

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Repeating yourself won't help because from my point of view I've answered your question. I showed you how to "wire up the logins again" which would appear to be the source of your other problem. I assume you have sorted out the users on the moved database - What is your problem now?


          Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

          S 1 Reply Last reply
          0
          • C Colin Angus Mackay

            Repeating yourself won't help because from my point of view I've answered your question. I showed you how to "wire up the logins again" which would appear to be the source of your other problem. I assume you have sorted out the users on the moved database - What is your problem now?


            Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

            S Offline
            S Offline
            shaz jazz
            wrote on last edited by
            #5

            is owner of database and login same?? i made a database in lab and i want 2 work on same db 8 home(ofcourse the servers r differnt!), now when i attached the db(8 home) using object explorer then it normally attaches but "Database Diagrams" are not shown and cannot be worked with because it gives error that there is no owner of this database. now i went to properties of the database then files and here i entered the same owner which is the default owner of database created at this server(8 home), but it doesn't accepts it and gives error of unregistered owner!!i tried other owner option that comes with browse button on that screen bt it didn't worked, so what should i do?? May God help u solv ur problems as well,thx in advance!!

            P C 3 Replies Last reply
            0
            • S shaz jazz

              is owner of database and login same?? i made a database in lab and i want 2 work on same db 8 home(ofcourse the servers r differnt!), now when i attached the db(8 home) using object explorer then it normally attaches but "Database Diagrams" are not shown and cannot be worked with because it gives error that there is no owner of this database. now i went to properties of the database then files and here i entered the same owner which is the default owner of database created at this server(8 home), but it doesn't accepts it and gives error of unregistered owner!!i tried other owner option that comes with browse button on that screen bt it didn't worked, so what should i do?? May God help u solv ur problems as well,thx in advance!!

              P Offline
              P Offline
              PlayByTheRules
              wrote on last edited by
              #6

              shaz jazz wrote:

              2

              You mean "to", "too" or "two"?

              shaz jazz wrote:

              8

              Are you really that lazy that you cannot type "at"? (It is the only word that fits, but it took me quite a few seconds to figure that out - Do you really expect a prompt reply when it takes people an unnecessary amount time to figure out what you are writing?!

              shaz jazz wrote:

              r

              "are" - You know how difficult it is to read this crap?!

              shaz jazz wrote:

              u

              Another weird abbreviation - Or are you now speaking Dutch?

              shaz jazz wrote:

              ur

              "your" or "you're"?? C'mon if you want to be taken seriously don't write this SMS style crap.

              shaz jazz wrote:

              thx

              THX is a quality standard for sound repoduction in cinemas and home cinema surround sound systems.

              1 Reply Last reply
              0
              • S shaz jazz

                is owner of database and login same?? i made a database in lab and i want 2 work on same db 8 home(ofcourse the servers r differnt!), now when i attached the db(8 home) using object explorer then it normally attaches but "Database Diagrams" are not shown and cannot be worked with because it gives error that there is no owner of this database. now i went to properties of the database then files and here i entered the same owner which is the default owner of database created at this server(8 home), but it doesn't accepts it and gives error of unregistered owner!!i tried other owner option that comes with browse button on that screen bt it didn't worked, so what should i do?? May God help u solv ur problems as well,thx in advance!!

                C Offline
                C Offline
                Colin Angus Mackay
                wrote on last edited by
                #7

                shaz jazz wrote:

                is owner of database and login same??

                I don't know - that depends on your database. If the user in the database has db_owner rights then the user will be the owner of the database, and that user must be associated to a login.

                shaz jazz wrote:

                there is no owner of this database

                Find out which user or users are marked as the database owners (they have db_owner rights on the database, or sysadmin rights over the whole server) and apply them on your database at home.

                shaz jazz wrote:

                but it doesn't accepts it and gives error of unregistered owner

                I've never seen this error before, So I'm guessing that you have to use the same user as the owner as where the database was created. You need to use ensure that user has a valid login and that user is granted the db_owner rights on your server at home. As it is a lab experiment, you might want to elevate that to sysadmin rights (which will give that user the right to do anything on the server, not just the database).


                Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

                1 Reply Last reply
                0
                • S shaz jazz

                  is owner of database and login same?? i made a database in lab and i want 2 work on same db 8 home(ofcourse the servers r differnt!), now when i attached the db(8 home) using object explorer then it normally attaches but "Database Diagrams" are not shown and cannot be worked with because it gives error that there is no owner of this database. now i went to properties of the database then files and here i entered the same owner which is the default owner of database created at this server(8 home), but it doesn't accepts it and gives error of unregistered owner!!i tried other owner option that comes with browse button on that screen bt it didn't worked, so what should i do?? May God help u solv ur problems as well,thx in advance!!

                  C Offline
                  C Offline
                  Colin Angus Mackay
                  wrote on last edited by
                  #8

                  Wait a moment: Are you moving a SQL Server 2000 database onto a SQL Server 2005 system? If so then the diagrams won't work - It is a known limitation, SQL Server 2005 does not read SQL Server 2000 diagrams and the tools for SQL Server 2005 won't create diagrams on a SQL Server 2000 database.


                  Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

                  1 Reply Last reply
                  0
                  • S shaz jazz

                    in reply of moving database in sql Colin Angus Mackay once wrote : Two ways I can think of. 1. Detach the database move the files and then attach at the other end. (You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db) 2. Create a backup of the database, move the backup file to the new system, then restore the backup (you'll again have to wire up the logins to accounts for the same reasons given above). now i'm havg same problem(i'm using sql server 2005 express edition), i hav tried both ways but at second server when i click database diagrams then it gives masseage that no valid owner of this database exits so can't work with database diagrams, in database properties i tried to enter different owners but didn't worked so what should i do?? further more what does this mean "(You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db)" i just cant get it? May God help u solv ur problems as well,thx in advance!!

                    F Offline
                    F Offline
                    Frank Kerrigan
                    wrote on last edited by
                    #9

                    "(You'll then have to wire up the logins again as the login ids will be different because they are stored in the master db)" i just cant get it? " If you restore a db with its security context (It has users). You have to delete them from the db then add then again. If the users don't exist on the SQL box you have to create them. Look where you want to go not where you don't want to crash. Bikers Bible

                    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