Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Enterprise
Expertise: Intermediate
Jun 2, 1999

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 <login name in server 2>, <user name in restored database in
server2>
KulBhushan Sharma
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date