About 108,000 results
Open links in new tab
  1. t sql - Fully automated SQL Server Restore - Stack Overflow

    Mar 25, 2010 · I'm not very fluent with SQL Server commands. I need a script to restore a database from a .bak file and move the logical_data and logical_log files to a specific path. I …

  2. sql - Restore database from database using script - Stack Overflow

    3 if you want to restore database from a generated script file you can use windows command line. open CDM and run the below command (database=NorthWind, script file C:\MyScript.sql)

  3. script to restore database sql server from bak file, doesn't work

    Nov 18, 2015 · RESTORE DATABASE DB_Clients FROM DISK = 'C:\OldDBClients.bak' WITH REPLACE, MOVE 'YourMDFLogicalName' TO '<MDF file path>', MOVE …

  4. SQL-Server: Is there a SQL script that I can use to determine the ...

    Script to check the Backup and Restore progress in SQL Server: Many times it happens that your backup (or restore) activity has been started by another Database Administrator or by a job, …

  5. How to restore to a different database in SQL Server?

    Jun 7, 2011 · To restore a database to a new location, and optionally rename the database Connect to the appropriate instance of the SQL Server Database Engine, and then in Object …

  6. Best script to restore multiple databases with SQL Server 2012?

    GO -- To update the currently configured value for this feature. RECONFIGURE; GO Next, update the script below to restore the databases from the backup files. Replace C:\Backup\ with your …

  7. sql server - Restore All Databases Script - Database Administrators ...

    Jul 31, 2014 · I am migrating SQL Server DBs to a new instance. I have been told that it is possible to dynamically build a RESTORE script from available backups in the system catalog. …

  8. Microsoft SQL Server, restore a backup of a database with one …

    Aug 3, 2012 · Here is a SQL script that will restore a database with no interaction required. Just enter your "Source Database" & your "Destination Database" - the script will do the rest :)

  9. How do I specify "close existing connections" in sql script

    I'm doing active development on my schema in SQL Server 2008 and frequently want to rerun my drop/create database script. When I run USE [master] GO IF EXISTS (SELECT name FROM …

  10. Restore a database with a different name on the same server

    Dec 4, 2019 · Create a backup of the database you want to clone first, then restore it as a new database after renaming the current one: -- Run this script in SQL Server Management Studio: