حدث
٢ شوال، ١١ م - ٤ شوال، ١١ م
أكبر حدث تعلم SQL و Fabric و Power BI. 31 مارس – 2 أبريل. استخدم التعليمات البرمجية FABINSIDER لتوفير 400 دولار.
تسجيل اليوملم يعد هذا المتصفح مدعومًا.
بادر بالترقية إلى Microsoft Edge للاستفادة من أحدث الميزات والتحديثات الأمنية والدعم الفني.
Applies to:
SQL Server
Removes a database and all files associated with that database.
هام
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;
حدث
٢ شوال، ١١ م - ٤ شوال، ١١ م
أكبر حدث تعلم SQL و Fabric و Power BI. 31 مارس – 2 أبريل. استخدم التعليمات البرمجية FABINSIDER لتوفير 400 دولار.
تسجيل اليوم