About 1,030,000 results
Open links in new tab
  1. Attach a Database - SQL Server | Microsoft Learn

    Aug 10, 2023 · Learn how to attach a database in SQL Server by using SQL Server Management Studio or Transact-SQL. Use this feature to copy, move, or upgrade a database.

  2. Database detach and attach (SQL Server) - SQL Server

    Apr 1, 2024 · Detaching and attaching a database is useful if you want to change the database to a different instance of SQL Server on the same computer or to move the database. File …

  3. SQL Server Attach and Detach Database Examples

    Jan 8, 2020 · This article looks at how to detach and attach a SQL Server database using the SSMS GUI and T-SQL commands.

  4. sql server - How to attach a database without an LDF file

    May 29, 2009 · You can use sp_attach_single_file_db to attach a database which is missing it's log file. It gives this error: Could not open new database 'SharedCS'. CREATE DATABASE is …

  5. How to Attach and Detach Databases in SQL Server

    Jan 13, 2025 · Attaching a SQL Server Database Using SSMS. To attach the database, right-click on Databases and select Attach... on the SQL Server instance where you wish to attach the …

  6. How to attach a SQL Server database file from another server

    Aug 20, 2017 · Copy/Move your files to "Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\". In SQL Server Management Studio …

  7. How to attach a SQL Server database from the command line

    you need to use: sqlcmd Utility. The sqlcmd utility lets you enter Transact-SQL statements, system procedures, and script files at the command prompt, in Query Editor in SQLCMD …

  8. SQL SERVER – Attach a Database with T-SQL

    Dec 18, 2020 · Let us see today we can attach a database with T-SQL. There are two different methods to attach the database. Let us see both of them. This is my preferred method and I …

  9. How do I attach a database in SQL Server?

    Some common questions relating to attaching databases in SQL Server: What does it mean to attach or detach a database? How do I detach a database? How do I attach a database? …

  10. SQL SERVER – T-SQL Script to Attach and Detach Database

    Aug 24, 2007 · Following script can be used to detach or attach the database. If the database is to be from one database to another database following script can be used to detach from old …

  11. Some results have been removed
Refresh