久久久久久久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>
                          • 主站蜘蛛池模板: 羞羞视频免费在线观看 | 欧美爱爱视频 | 欧美日韩精品亚洲 | 免费看大片bbbb欧美 | 久久亚洲国产精品 | 日韩一区中文字幕 | 日韩欧美精品 | 日美女逼逼 | 精品欧美一区二区在线观看欧美熟 | 日韩欧美视频 | 欧美美女爱爱视频 | 在线观看你懂的网站 | 久久久www成人免费无遮挡大片 | 亚洲精品视频在线看 | 波多野结衣在线观看一区二区三区 | 婷婷色在线 | 成人日韩 | 影音先锋中文字幕在线观看 | 国产伦精品一区二区三区精品视频 | 国产日韩精品在线 | 亚洲巨乳自拍在线视频 | 久久成人一区 | 精品美女视频在线观看免费软件 | 久久大陆 | 精品国产99 | 国产精品永久免费观看 | 综合伊人| 亚洲高清视频一区 | 日本韩国欧美在线观看 | 欧美视频| 精品中文字幕一区二区三区 | 免费成人av| 欧美色999 | 99re国产视频| 91精品国产91久久久久久不卞 | 亚洲精品视频导航 | 一区二区三区四区免费在线观看 | 亚洲天堂男人的天堂 | 黄色网址免费在线观看 | 国精产品一区二区三区 | 国产高清在线视频 |