Sample script that deletes a SQL Server database
更新时间:2007年06月16日 00:00:00 作者:
Sample script that deletes a SQL Server database.
Supported Platforms
SQL Server 2000
Yes
Script Code
strDBServerName = "."
strDBToDelete = "ScriptingGuysTestDB"
Set objSQLServer = CreateObject("SQLDMO.SQLServer")
objSQLServer.LoginSecure = True
objSQLServer.Connect strDBServerName
objSQLServer.KillDatabase strDBToDelete
Supported Platforms
SQL Server 2000
Yes
Script Code
复制代码 代码如下:
strDBServerName = "."
strDBToDelete = "ScriptingGuysTestDB"
Set objSQLServer = CreateObject("SQLDMO.SQLServer")
objSQLServer.LoginSecure = True
objSQLServer.Connect strDBServerName
objSQLServer.KillDatabase strDBToDelete
相关文章
基于js disabled="false"不起作用的解决办法
本篇文章是对js disabled="false"不起作用的解决办法进行了详细的分析介绍,需要的朋友参考下2013-06-06
最新评论