ListtheStoredProceduresinaSQLServerdatabase_圖象特效
來源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-27 20:37:25
ListtheStoredProceduresinaSQLServerdatabase_圖象特效
ListtheStoredProceduresinaSQLServerdatabase_圖象特效:List the Stored Procedures in a SQL Server database. Supported Platforms SQL Server 2000 Yes Script Code strDBServerName = . strDBName = Northwind Set objSQLServer = CreateObject(SQLDMO.SQLServer) objSQLServer.LoginSecure = True objS
導(dǎo)讀ListtheStoredProceduresinaSQLServerdatabase_圖象特效:List the Stored Procedures in a SQL Server database. Supported Platforms SQL Server 2000 Yes Script Code strDBServerName = . strDBName = Northwind Set objSQLServer = CreateObject(SQLDMO.SQLServer) objSQLServer.LoginSecure = True objS
List the Stored Procedures in a SQL Server database.
Supported Platforms
SQL Server 2000
Yes
Script Code
strDBServerName = "."
strDBName = "Northwind"
Set objSQLServer = CreateObject("SQLDMO.SQLServer")
objSQLServer.LoginSecure = True
objSQLServer.Connect strDBServerName
Set objDB = objSQLServer.Databases(strDBName)
Set colStoredProcedures = objDB.StoredProcedures
For Each objStoredProcedure In colStoredProcedures
WScript.Echo "SP Name: " & objStoredProcedure.Name
Next
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
ListtheStoredProceduresinaSQLServerdatabase_圖象特效
ListtheStoredProceduresinaSQLServerdatabase_圖象特效:List the Stored Procedures in a SQL Server database. Supported Platforms SQL Server 2000 Yes Script Code strDBServerName = . strDBName = Northwind Set objSQLServer = CreateObject(SQLDMO.SQLServer) objSQLServer.LoginSecure = True objS