About 34,000,000 results
Open links in new tab
  1. Use the Copy Database Wizard - SQL Server | Microsoft Learn

    Jul 22, 2024 · By using this wizard, you can do the following actions: Pick a source and destination server. Select one or more databases to move or copy. Specify the file location for one or more databases. Copy logins to the destination server. Copy supporting objects, jobs, user-defined stored procedures, and error messages.

  2. Simple Procedure to Make a Copy of a SQL Server Database

    Dec 5, 2016 · My solution is to create a stored procedure (dbo.CloneDBUsingBackupRestore) that does the cloning process. The method used for the cloning is to backup the database and restore to a new database. This will create an exact copy of the database.

  3. How to make a copy of a database in SQL Server - Stack Overflow

    Oct 30, 2013 · A simple way is taking a back up copy of current DB and restoring it. You Can do this in single step with a simple script. backup database MyDB to disk='D:\MyDB.bak'; restore database MyDB2 from disk='D:\MyDB.bak' WITH move 'MyDB_Data' to 'D:\MyDB2_Data.mdf', move 'MyDB_log' to 'D:\MyDB2_Data.ldf'; GO

  4. Copy databases to other servers - SQL Server | Microsoft Learn

    Jul 22, 2024 · Learn how to copy a SQL Server database from one computer to another for testing, to make it available to remote-branch operations, or for other reasons.

  5. How can I clone an SQL Server database on the same server in SQL Server ...

    Right-click the database to clone, click Tasks, click Copy Database.... Follow the wizard and you're done. here is how it works in express: stackoverflow.com/questions/4269450/… This doesn't work if you have encrypted objects in your database. I would say, that the main point is actually where to do it? What you described is pretty intuitive.

  6. How best to copy entire databases in MS SQL Server?

    1) creating each destination database 2) using the " Tasks->Export Data " command to create and populate tables for each database individually 3) rebuilding all of the indexes for each database with a SQL script

  7. Easy way to copy a SQL database with Microsoft SQL Server Management ...

    Jul 31, 2018 · How to copy a database on the same SQL server. The scenario is pretty simple: We just want a copy of our database, with all the data and the complete scheme and permissions. 1. step: Make a back up of your source database. Click on the desired database and choose “Backup” under tasks. 2. step: Use copy only or use a full backup

  8. Copy Databases with Backup and Restore - SQL Server

    Aug 27, 2024 · In SQL Server, you can create a new database by restoring a backup of a user database created by using some previous versions.

  9. Clone a SQL Server Database Using DBCC CLONEDATABASE

    Aug 11, 2016 · In SQL Server 2014 SP2, Microsoft introduced a new DBCC command that can be used to create a read-only copy of an existing database in one shot that includes the schema and statistics of the source database but no data, this command is DBCC CLONEDATABASE.

  10. How to duplicate MSSQL database on the same or another server?

    Sep 5, 2009 · In SQL Server 2008 R2 at least you can skip a step for getting a backup local to the server. Click Restore Database.. Probably this is the best solution: 1) On Source DB Server - Create backup to local file. 2) Copy the Source File to Destination Server. 3) On Destination DB Server: Restore the database from backup file.

  11. Some results have been removed