devxlogo

Copying SQL Server Databases From One Server to Another

Copying SQL Server Databases From One Server to Another

Database backups from one MS SQL Server (server1) could be used to create a copy of the database on another MS SQL Server (server2). But existing user to login mappings are not restored correctly even if same logins exists on server2. The databases restored in this way could be made accessible again to these users by using the sp_addalias system stored procedure. This SQL statement should be executed after connecting to the restored database on server2 using ISQL/W or some other query tool.

      sp_addalias , 
See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist