我有強烈可怕的健忘問題,這是幫助自己記憶的網站,記憶了許多個人的事. 收錄許多資訊,防止資料不見或網站消失,供查找留存用。 如:筆記,訊息,記錄,生活,網路小品,趣味之事.... 希望我不要連整個Blog也一起忘記.
2011年12月23日 星期五
如何新增 "SQL Authentication Login" in SQL Server 2005
Reference:
Windows Authentication vs. SQL Server Authentication
有沒有試過設定了新的SQL login account卻不能用它connect 到 SQL server的經驗呢?
原來SQL server 2005 有一個 "authentication mode" 的 setting, 而default是 "Windows Authentication mode", 即是只接受windows authentication, SQL authentication 是不行的.
要更改這個setting, 需要login 到 "SQL server Management Studio", 在 object explorer 中right click server 名字, 選 "properties" => "security", 就會見到可以選擇 "SQL Server and Windows Authentication mode" 啦~
如果要新增一個 SQL Authentication Login Account, 則在上面提到的 "properties" => "security" 再選 "Logins", 在右邉 "summary" 空白地方 right-click "New Login…" 就可以了, 記得選 "SQL Server Authentication"…
提多一點, 這裡create出來的account是沒有權限的, 連table也看不到, 要在各database處再添加permission給這個account才可以工作 (例如︰最簡單的觀看 table 內容就只要 "connect" 以及 "select" permission 就ok 了)
訂閱:
張貼留言 (Atom)
如何查看主機跟NAS連線的指令?
windows的VM或主機可以下 net use 或是 Get-SmbConnection 看有沒有關於連線到NAS storage的資訊. ================================================ 對於linux VM或主機可以下 net...
-
查詢AD帳號狀態,可查詢密碼到期時間,使用甚麼群組資訊.... 指令:net user AD_USERNAME /domain 例如AD帳號為test,則指令為: net user test /domain 或是要直接查當下的登入帳號,就輸入: > net user %us...
-
問題: 在某些特定情況,win10的控制台,無法開啟Mail(郵件)。 或是控制台內的郵件設定中圖示是空白,造成"找不到應用程式" Environment: OS: Win10 Pro Office: MS office 2016 ...
-
針對帳號鎖定進行問題分析如下: 特別是 4740 備註 :若要搜尋與帳號鎖定相關的事件記錄,以下是 Windows Server 2003 與 Windows Server 2008 的相關事件編號與相關描述。 Event ID (Win2k3) Event ID (Win2k...
沒有留言:
張貼留言