手机
当前位置:查字典教程网 >编程开发 >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】相关文章:

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

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

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

卡拉 OK 字幕效果

javascript委托(Delegate)blur和focus用法实例分析

JavaScript对W3C DOM模版的支持情况详解

由浅到深了解JavaScript类

JQuery中层次选择器用法实例详解

jQuery聚合函数实例

js+html5绘制图片到canvas的方法

精品推荐
分类导航