久久久久久久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>
                          • 主站蜘蛛池模板: 7777精品伊人久久精品影视 | 日日干夜夜干 | 五月网婷婷 | 国产一区亚洲二区三区 | 亚洲精品专区 | 国产精品福利视频 | 欧美啊v在线观看 | 逼逼网 | 久久国产精品久久久久 | 国产精品美女久久久久久免费 | 成人福利影院 | 国产sm主人调教女m视频 | 成人福利 | 综合一区 | 欧美性影院 | 欧美日韩免费一区二区三区 | 福利精品 | 日日摸夜夜添夜夜添特色大片 | 成人福利在线 | 久久久久av| 欧美日韩在线成人 | 亚洲国产成人精品女人久久久 | 91av导航 | 欧美一区二区综合 | 91在线精品一区二区 | 二区中文字幕 | 成人国产精品免费观看 | 99亚洲精品视频 | 91在线精品秘密一区二区 | 999观看免费高清www | 国产精品成人一区二区 | 日韩成人免费视频 | 精品三级在线观看 | 亚洲国产精品久久久久 | 国产精品3区| 日韩精品极品视频在线观看免费 | 久久精品99 | 一区二区三区在线播放 | 99精品国产一区二区三区 | 国产精品一区二区久久久久 | 99一区二区|