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. Moving DBs to new Server

Moving DBs to new Server

Scheduled Pinned Locked Moved Database
databasesecuritycsharpsharepointsql-server
2 Posts 2 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
    Dr_X
    wrote on last edited by
    #1

    I have been tasked with moving all of the SQL Server databases from an old server to a new one. I was hoping to simply do a sp_detach, copy the mdf & ldf files to the new server, then reattach them. However, we are using mix-mode authentication and the handful of sql user logins we use fail to login on the new server during testing. So, I attempted to create the users under the security/logins section prior to attaching the database but, that did not work either. Is there an easy/fast way to migrate the database to the new server with out using DTS? Application Error Log File which probably isn't helpful: SQL Errors: SqlError: 1 Error #: 4060 Procedure: Line # 0 Server: TheSqlServer Source: .Net SqlClient Data Provider Message: Cannot open database requested in login 'TheDatabase'. Login fails. SqlError: 2 Error #: 18456 Procedure: Line # 0 Server: TheSqlServer Source: .Net SqlClient Data Provider Message: Login failed for user 'SqlServerLogin'. Thanks, Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    D 1 Reply Last reply
    0
    • D Dr_X

      I have been tasked with moving all of the SQL Server databases from an old server to a new one. I was hoping to simply do a sp_detach, copy the mdf & ldf files to the new server, then reattach them. However, we are using mix-mode authentication and the handful of sql user logins we use fail to login on the new server during testing. So, I attempted to create the users under the security/logins section prior to attaching the database but, that did not work either. Is there an easy/fast way to migrate the database to the new server with out using DTS? Application Error Log File which probably isn't helpful: SQL Errors: SqlError: 1 Error #: 4060 Procedure: Line # 0 Server: TheSqlServer Source: .Net SqlClient Data Provider Message: Cannot open database requested in login 'TheDatabase'. Login fails. SqlError: 2 Error #: 18456 Procedure: Line # 0 Server: TheSqlServer Source: .Net SqlClient Data Provider Message: Login failed for user 'SqlServerLogin'. Thanks, Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

      D Offline
      D Offline
      Daniel Santillanes
      wrote on last edited by
      #2

      in the database list, right click -> all tasks -> generate sql script... With this, you can select that Enterprise Manager creates scripts for the users using the database, try it. daniero

      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