Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个具有现有连接的实时数据库。无论任何打开的连接如何,我都想删除此数据库。
我使用 SQL Server 管理工作室。
什么是坏方法:
detach
delete
我希望问题很清楚
ALTER DATABASE [YourDbName] SET SINGLE_USER WITH ROLLBACK IMMEDIATE GO DROP DATABASE [YourDbName] GO
拉吉