[英]Connect to SQL Server Windows Authentication using DBeaver
[英]Connect to SQL Server using Powershell with Windows Authentication
我的Powershell腳本使用連接字符串連接到sql server實例,並使用executeReader獲取數據。
現在使用系統用戶的當前Windows身份驗證進行連接,
$conn.ConnectionString = "Server=$SrvName; Integrated Security=true;"
但是如果我想使用備用Windows身份驗證憑據並注意我不想使用SQL Server身份驗證,而是使用備用憑據而不是當前憑據的Windows身份驗證,即
這使用SQL Server身份驗證,對嗎?
$conn.ConnectionString = "Server=$SrvName; UserName=User1; Password=pwd;"
我不想要它。
我想要一個帶有用戶名,密碼輸入的ConnectionString,但是使用帶有這些輸入的Windows身份驗證。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.