手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >Sample script that displays all of the users in a given SQL Server DB
Sample script that displays all of the users in a given SQL Server DB
摘要:SamplescriptthatdisplaysalloftheusersinagivenSQLServerDB.SupportedPlat...

SamplescriptthatdisplaysalloftheusersinagivenSQLServerDB.

SupportedPlatforms

SQLServer2000

Yes

ScriptCode

复制代码 代码如下:

strDBServerName="."

strDBName="ScriptingGuysTestDB"

SetobjSQLServer=CreateObject("SQLDMO.SQLServer")

objSQLServer.LoginSecure=True

objSQLServer.ConnectstrDBServerName

SetobjDB=objSQLServer.Databases(strDBName)

SetcolUsers=objDB.Users

ForEachobjUserIncolUsers

WScript.Echo"User:"&objUser.Name

WScript.Echo"Login:"&objUser.Login

Next

【Sample script that displays all of the users in a given SQL Server DB】相关文章:

測試代碼真方便

卡拉 OK 字幕效果

跨浏览器的设置innerHTML方法

window.onload与$(document).ready()的区别分析

JavaScript正则表达式之multiline属性的应用

jQuery获取字符串中出现最多的数

7个有用的jQuery代码片段分享

javascript中DOM复选框选择用法实例

由浅到深了解JavaScript类

jQuery聚合函数实例

精品推荐
分类导航