久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='Pv2d9'><tr id='Pv2d9'><dt id='Pv2d9'><q id='Pv2d9'><span id='Pv2d9'><b id='Pv2d9'><form id='Pv2d9'><ins id='Pv2d9'></ins><ul id='Pv2d9'></ul><sub id='Pv2d9'></sub></form><legend id='Pv2d9'></legend><bdo id='Pv2d9'><pre id='Pv2d9'><center id='Pv2d9'></center></pre></bdo></b><th id='Pv2d9'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Pv2d9'><tfoot id='Pv2d9'></tfoot><dl id='Pv2d9'><fieldset id='Pv2d9'></fieldset></dl></div>
<legend id='Pv2d9'><style id='Pv2d9'><dir id='Pv2d9'><q id='Pv2d9'></q></dir></style></legend>

  • <tfoot id='Pv2d9'></tfoot>
  • <small id='Pv2d9'></small><noframes id='Pv2d9'>

      • <bdo id='Pv2d9'></bdo><ul id='Pv2d9'></ul>

        windows服務sql連接問題

        windows service sql connection problems(windows服務sql連接問題)

            <bdo id='RxClf'></bdo><ul id='RxClf'></ul>
              <tfoot id='RxClf'></tfoot>

                <tbody id='RxClf'></tbody>
              • <small id='RxClf'></small><noframes id='RxClf'>

                • <i id='RxClf'><tr id='RxClf'><dt id='RxClf'><q id='RxClf'><span id='RxClf'><b id='RxClf'><form id='RxClf'><ins id='RxClf'></ins><ul id='RxClf'></ul><sub id='RxClf'></sub></form><legend id='RxClf'></legend><bdo id='RxClf'><pre id='RxClf'><center id='RxClf'></center></pre></bdo></b><th id='RxClf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='RxClf'><tfoot id='RxClf'></tfoot><dl id='RxClf'><fieldset id='RxClf'></fieldset></dl></div>
                • <legend id='RxClf'><style id='RxClf'><dir id='RxClf'><q id='RxClf'></q></dir></style></legend>
                • 本文介紹了windows服務sql連接問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我需要你的幫助!!!!!!

                  I need your help !!!!

                  我想從 Windows 服務連接到 sql server,但它拋出以下異常:

                  I want to connect to sql server from a windows service, but it throw following exception :

                  用戶NT"登錄失敗權威\匿名登錄'.

                  Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

                  我的連接字符串聲明如下:

                  My connection string is declared as follow:

                  <add name="CoreConnectionString" 
                       connectionString="Data Source=10.10.2.102;Initial Catalog=DataBaseName;
                                         Integrated Security=True" 
                       providerName="System.Data.SqlClient" />
                  

                  當我使用用戶名和密碼而不是 Integrated Security=True 時它可以工作,但在最終部署中我不能使用用戶名和密碼.

                  When I use user name and password instead of Integrated Security=True It works but in final deployment I cannot use user name and password.

                  出了什么問題我該怎么辦??????

                  What is wrong what can I do????

                  推薦答案

                  當您在連接字符串中定義 Integrated Security=True 時,當前登錄的任何用戶都將嘗試連接到您的數據庫.將此作為控制臺或 Winforms 應用運行時,這是您自己的用戶帳戶.

                  When you define Integrated Security=True in your connection string, whatever user is currently logged in will try to connect to your database. When running this as a console or Winforms app, this is your own user account.

                  但是,如果您將它作為 Windows NT 服務運行,則該服務是在該服務帳戶下運行的 - 在您的情況下顯然 NT AUTHORITY\ANONYMOUS LOGON.

                  However, if you run it as a Windows NT Service, it's the service account that this service is running under - in your case obviuosly NT AUTHORITY\ANONYMOUS LOGON.

                  并且錯誤明確指出:此用戶帳戶沒有連接到 SQL Server 的權限.

                  And the error says it clearly: this user account does not have the permission to connect to the SQL Server.

                  您有多種選擇:

                  • 停止您的 NT 服務并將服務帳戶更改為有權訪問 SQL Server 的人

                  • stop your NT service and change the service account to be someone who does have access to the SQL Server

                  允許 NT AUTHORITY\ANONYMOUS LOGON 登錄到您的 SQL Server 并使用您的數據庫

                  allow the NT AUTHORITY\ANONYMOUS LOGON to log into your SQL Server and use your database

                  在您的 SQL Server 中創建一個特定用戶(例如應用程序用戶")并更改您的連接字符串以專門使用該用戶:

                  create a specific user (e.g. an "application user") in your SQL Server and change your connection string to use that user specifically:

                  connectionString="Data Source=10.10.2.102;Initial Catalog=DataBaseName;
                                    user id=Your-Application-User-here;password=The-Secret-Password"
                  

                  這篇關于windows服務sql連接問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數據庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發
                  How to create a login to a SQL Server instance?(如何創建對 SQL Server 實例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現“數據類型轉換錯誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                  WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)
                    <tbody id='Kft1C'></tbody>

                    <legend id='Kft1C'><style id='Kft1C'><dir id='Kft1C'><q id='Kft1C'></q></dir></style></legend>

                      • <i id='Kft1C'><tr id='Kft1C'><dt id='Kft1C'><q id='Kft1C'><span id='Kft1C'><b id='Kft1C'><form id='Kft1C'><ins id='Kft1C'></ins><ul id='Kft1C'></ul><sub id='Kft1C'></sub></form><legend id='Kft1C'></legend><bdo id='Kft1C'><pre id='Kft1C'><center id='Kft1C'></center></pre></bdo></b><th id='Kft1C'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Kft1C'><tfoot id='Kft1C'></tfoot><dl id='Kft1C'><fieldset id='Kft1C'></fieldset></dl></div>

                        1. <tfoot id='Kft1C'></tfoot>

                          <small id='Kft1C'></small><noframes id='Kft1C'>

                            <bdo id='Kft1C'></bdo><ul id='Kft1C'></ul>
                          • 主站蜘蛛池模板: 欧美久久久久久久久中文字幕 | 国产精品久久福利 | 亚洲日韩中文字幕一区 | 在线观看第一页 | 亚洲电影免费 | 亚洲一区二区三区在线播放 | 成人国产综合 | 91视视频在线观看入口直接观看 | 国产成人午夜精品影院游乐网 | 日本成人中文字幕 | 欧美中文字幕在线观看 | www.日韩免费 | 欧美一级精品片在线看 | 精品国产精品国产偷麻豆 | 午夜精品一区二区三区在线观看 | 在线视频成人 | aaa在线| 国产日韩欧美一区二区 | 国产高清精品一区二区三区 | 欧美一区二区三区的 | 成人免费一区二区三区视频网站 | av免费网站在线观看 | 狠狠干狠狠操 | 日韩电影一区 | 免费在线观看黄色av | 久久久久久久夜 | 久久精品国产久精国产 | 国产精品亚洲成在人线 | 欧美日韩在线观看一区 | 国产视频久久久 | 国产精品入口久久 | 国产亚洲精品精品国产亚洲综合 | 四虎影院美女 | www.亚洲.com | 99国产精品视频免费观看一公开 | 日本精品久久 | 在线观看国产www | 鲁一鲁资源影视 | 日韩视频一区二区 | 成人欧美一区二区 | 亚洲色图综合 |