| Posted by mplpost on 05/16/07 10:37 
> > Who is the owner of the original database?This made me think about creating the database with the xy(the login
 that connects from the web application) login and then backup the
 database and then restore using the RESTORE command with the xy
 login(xy is assigned to dbcreator role).  This allowed me to connect
 to the NewOrgDB with xy login.
 
 But again I encountered the block when I tried restoring on a server
 other than the server that I took the orginal DB backup from. Yes I
 understand that this is due to the lost login-user mapping in the new
 database.
 
 Would like to restore the privilege of xy to be able to login to the
 NewOrgDB without  assigning it to sysadmin role.  Can i make use of
 sp_change_users_login in this case, but again I think we need to login
 as a user with sysadmin role to NewOrgDB database and only then can i
 execute this procedure, which I wouldnt be able to. Pls suggest any
 solution.
  Navigation: [Reply to this message] |