手机
当前位置:查字典教程网 >编程开发 >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 字幕效果

JS+CSS实现的拖动分页效果实例

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

由ReactJS的Hello world说开来

Javascript高级应用:文件操作篇

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

两个SUBMIT按钮,如何区分处理

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

textarea是否自动换行

浅谈angularJS 作用域

精品推荐
分类导航