INFO:
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.
Attach a Database - SQL Server | Microsoft Learn