This article is a mirror article of machine translation, please click here to jump to the original article.

View: 958|Reply: 2

[Tips] SQL Server replication clones a database to a new database

[Copy link]
Posted on 2025-7-14 15:06:52 | | | |
Requirements: The project needs to create a new test environment, and the database also needs to use the new database, how to clone an existing database into a new database? For example, a copy of a copy based on database A becomes database B.

TEST_DEV is the existing database, and TEST_DEV_New is the new database created based on TEST_DEV replication, as shown in the following figure:



The SQL script looks like this:





Previous:Internet Identification Autonomous System (ASN)
Next:Charles Proxy Packet Capture Tool License Genuine Software Purchase Process
 Landlord| Posted on 2025-7-14 15:12:04 |
To delete the .bak backup file, the sql command is as follows:
Posted on 2025-8-5 10:15:07 |
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com