亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

查看Lync前端服務器登錄(負載平衡時檢查是否成功)

發布時間:2020-07-14 20:25:02 來源:網絡 閱讀:215 作者:wzx1234556 欄目:系統運維

#Defined Connection String
$connstring = "server=lync\rtclocal;database=rtcdyn;<br/>trusted_connection=true;" <br/>$connstring2 = "server=lync2\rtclocal;database=rtcdyn;
trusted_connection=true;"

#Define SQL Command

$command = New-Object System.Data.SqlClient.SqlCommand

$command.CommandText = "Select (cast (RE.ClientApp as <br/>varchar (100))) as ClientVersion,
R.UserAtHost as UserName, <br/>Reg.Fqdn
From <br/>rtcdyn.dbo.RegistrarEndpoint RE
Inner Join <br/>rtc.dbo.Resource R on R.ResourceId = RE.OwnerId
Inner Join <br/>rtcdyn.dbo.Registrar Reg on Reg.RegistrarId =
RE.PrimaryRegistrarClusterId `
Order By ClientVersion, UserName "

#Make the connection to Server 1

$connection = New-Object System.Data.SqlClient.SqlConnection
$connection.ConnectionString = $connstring
$connection.Open()

$command.Connection = $connection

$sqladapter = New-Object System.Data.SqlClient.SqlDataAdapter
$sqladapter.SelectCommand = $command

$results = New-Object System.Data.Dataset

$recordcount=$sqladapter.Fill($results)

$connection.Close()

$overallrecords = $overallrecords + $Results.Tables[0]

#Make the connection to Server 2

$connection.ConnectionString = $connstring2
$connection.Open()

$command.Connection = $connection

$results = New-Object System.Data.Dataset
$recordcount=$sqladapter.Fill($results)

$connection.Close()

$overallrecords = $overallrecords + $Results.Tables[0]

#End Section 2

$overallrecords | Export-Csv "PoolDistribution.csv"
Write-Host -ForegroundColor Green "Query complete"

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

尤溪县| 临泉县| 玉山县| 荆州市| 永年县| 栾城县| 西乌珠穆沁旗| 沙坪坝区| 惠来县| 信阳市| 安平县| 湟中县| 清丰县| 定兴县| 宜宾市| 肇东市| 瓮安县| 兴化市| 周至县| 扎鲁特旗| 仁布县| 文化| 临猗县| 封丘县| 旬阳县| 定南县| 江安县| 资源县| 长寿区| 始兴县| 长垣县| 浠水县| 福安市| 鄂伦春自治旗| 阳江市| 紫金县| 渝北区| 临颍县| 黄山市| 潞西市| 江山市|