sys.sp_attach_single_file_db

general
#stored-procedure

Description

Attaches a database that’s only one data file to the current server. can’t be used with multiple data files. Don’t attach or restore databases from unknown or untrusted sources. Such databases could contain malicious code that might execute unintended Transact-SQL code or cause errors by modifying the schema or the physical database structure.

Syntax

sp_attach_single_file_db