About 266,000 results
Open links in new tab
  1. 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 Explorer, click the server name to expand the server tree. Right-click Databases, and then click Restore Database. The Restore Database dialog box opens.

  2. Restoring database from .mdf and .ldf files of SQL Server 2008

    Click the “Add” button to open and Locate Database Files From C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\folder. Click the "OK" button. SQL Server Management Studio loads the database from the .MDF file.

  3. sql server - Database stuck in "Restoring" state - Stack Overflow

    RESTORE DATABASE YourDB FROM DISK = 'Z:\YourDB.bak' WITH NORECOVERY GO RESTORE LOG YourDB FROM DISK = 'Z:\YourDB.trn' WITH RECOVERY GO You can use SQL Server Management Studio wizard also: There is also virtual restoring process, but you'll have to use 3rd party solutions. Usually you can use a database backup as live online database.

  4. sql server - mssql '5 (Access is denied.)' error during restoring ...

    The account that sql server is running under does not have access to the location where you have the backup file or are trying to restore the database to. You can use SQL Server Configuration Manager to find which account is used to run the SQL Server instance, and then make sure that account has full control over the .BAK file and the folder ...

  5. SQL Server tells me database is in use but it isn't

    Feb 24, 2011 · There could be lots of things blocking your database. For example, if you have a query window opened on that database, it would be locked by you. Not counting external accesses, like a web application on IIS. If you really wanna force the drop on it, check the close existing connections option or try to manually stop SQL Server's service.

  6. SQL Server database backup restore on lower version

    May 31, 2011 · No, is not possible to downgrade a database. 10.50.1600 is the SQL Server 2008 R2 version. There is absolutely no way you can restore or attach this database to the SQL Server 2008 instance you are trying to restore on (10.00.1600 is SQL Server 2008).

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

    Next, update the script below to restore the databases from the backup files. Replace C:\Backup\ with your local directory containing your .BAK files and replace C:\Microsoft SQL Server\SQLINSTANCE\MSSQL\DATA\ with your SQL Server data directory. This script also assumes the .BAK file names match the database names, otherwise the script will ...

  8. sql server - Restore database backup over the network - Stack …

    Nov 25, 2014 · On the Server that you want to restore to launch SSMS go restore database and select "From Device". In the "Locate Backup file-"Server"" dialog box and remove anything in the "Selected Path" field and in the "File Name" field supply full path so "\server\backups\db.bak".

  9. Restore SQL Database with Replace option - Stack Overflow

    Aug 25, 2016 · C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\Test1.mdf; Let your Sql script run; That's it. In general I think it is better to create a backup and restore this. In the database. right click on database -> Tasks -> Take Offline; right click on database -> Tasks -> Restore -> Database

  10. SQL RESTORE WITH RECOVERY; Hangs at 100% - Stack Overflow

    May 6, 2015 · I am attempting to recover a database with SQL Server 2014 and it keeps hanging at 100%. A lot of people suggest that the solution is to just make sure that you restore with the RECOVERY option. I have tried that and it still hangs at 100%. I have tried via the SSMS Restore dialog and I have tried running the following SQL Statement:

Refresh