Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
Applies to:
SQL Server
Removes a database and all files associated with that database.
Penting
This feature will be removed in a future version of SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. We recommend that you use DROP DATABASE instead.
Transact-SQL syntax conventions
sp_dbremove
[ [ @dbname = ] N'dbname' ]
[ , [ @dropdev = ] 'dropdev' ]
[ ; ]
The name of the database to be removed. @dbname is sysname, with a default of NULL
.
A flag provided for backward compatibility only and is currently ignored. @dropdev is varchar(10), with a default of dropdev
.
0
(success) or 1
(failure).
None.
Requires membership in the sysadmin fixed server role, or execute permission directly on this stored procedure.
The following example removes a database named sales
and all files associated with it.
EXEC sp_dbremove sales;
Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari ini