Home >Web Front-end >JS Tutorial >Sample script that deletes a SQL Server database_javascript技巧

Sample script that deletes a SQL Server database_javascript技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:12:211064browse

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 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn