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

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

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

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

    1. 數據庫客戶端:如何在 SQL Server 重啟后等待數據庫

      Database clients: how to wait for database activation after SQL Server restart?(數據庫客戶端:如何在 SQL Server 重啟后等待數據庫激活?)

            <tbody id='5sdpn'></tbody>
              <bdo id='5sdpn'></bdo><ul id='5sdpn'></ul>

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

                <small id='5sdpn'></small><noframes id='5sdpn'>

                本文介紹了數據庫客戶端:如何在 SQL Server 重啟后等待數據庫激活?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                服務依賴不足以保證數據庫客戶端在系統重啟后會發現他們的 SQL Server 啟動并運行.他們可能能夠創建到 master 數據庫的連接,但特定的數據庫可能仍在打開過程中(在恢復模式下),并且在最初的一段時間內將拒絕連接.

                Service dependency is not enough to guarantee that database clients will find their SQL Server up and running after a system reboot. They may be able to create a connection to the master database, but a specific database may still be in the process of opening (in the recovery mode) and connections to it will be refused for some initial period of time.

                延遲的確切持續時間變化很大,取決于系統上的數據庫數量、恢復模式、LDF 文件大小或重啟前的流量等因素.

                The exact duration of the delay is highly variable and depends on factors such as number of databases on the system, recovery mode, LDF file size, or traffic prior to the reboot.

                處理對客戶端的依賴的眾所周知的方法是休眠和重試.然而,這種方法似乎并不完全干凈或可靠,尤其是當客戶在技術和所有權方面存在差異并且這種競爭條件很少出現時.

                The well known approach to dealing with the dependency on the client is sleeping and retrying. However, this approach does not seem exactly clean or reliable, especially when the clients are diverse in terms of technology and ownership and when this race condition appears only very rarely.

                是否有更好的方法來同步客戶端與服務器啟動,最好是通過將 SQL Server 服務保持在正在啟動"狀態直到所有數據庫都被打開或標記為可疑?

                Is there any better way to synchronize the clients with the server start-up, ideally through keeping the SQL Server service in the "Starting" state until all databases have been either opened or marked suspect?

                推薦答案

                創建一個 Windows 服務,該服務嘗試訪問數據庫,除非成功建立可靠的連接,否則該服務不會報告自己已啟動.基本上該服務會返回一個錯誤,服務管理器會嘗試根據服務設置運行它.

                Create a windows service that tries to access the database which does not report itself as having started unless successful in establishing a reliable connection. Basically that service would return an error and the service manager would try to run it according to the service settings.

                現在,您可以依賴其他服務中的新服務來保證數據庫響應.

                And now you can depend on that new service in your other services that would guarantee that the database is responsive.

                相關問題

                • 在 C# 中,確定數據庫是否已啟動并正在運行的最佳方法是什么?

                更新

                此外,要了解數據庫是否已啟動并正在運行,更簡潔的方法是檢查以下值:

                Also, for a much cleaner way to know if the database is up and running is to check the following value:

                SELECT state_desc
                FROM sys.databases
                WHERE name = 'YourDatabase'
                

                如果除了ONLINE"之外什么都不說,那么數據庫還沒有準備好.(如果它存在的話)http://msdn.microsoft.com/en-us/library/ms190442.aspx

                If it says anything but 'ONLINE', then the database is not yet ready. (if it exists at all) http://msdn.microsoft.com/en-us/library/ms190442.aspx

                這篇關于數據庫客戶端:如何在 SQL Server 重啟后等待數據庫激活?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 移動到文件存儲)

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

                    • <tfoot id='xF7Vk'></tfoot>

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

                      1. <legend id='xF7Vk'><style id='xF7Vk'><dir id='xF7Vk'><q id='xF7Vk'></q></dir></style></legend>

                        • 主站蜘蛛池模板: 精品国产久| 91精品国产乱码麻豆白嫩 | 久草免费福利 | 久久精品国产久精国产 | 久久国产精品-国产精品 | 一区二区三区在线免费观看 | 日韩一级 | 在线观看中文字幕av | 天天干天天色 | 美女天天操| 日韩精品一区二区三区 | 日韩av成人在线 | 欧美激情一区二区三区 | 国产午夜精品一区二区三区 | 欧美一区二区三区在线观看 | 一区二区三区亚洲精品国 | 日本特黄a级高清免费大片 特黄色一级毛片 | 国产精品久久久久久久久久妞妞 | 亚洲在线一区二区 | 涩涩视频在线观看 | 国产精品视频在线播放 | 日日干日日操 | 干干干操操操 | 99视频在线 | 久久99精品久久久久久国产越南 | 亚洲成在线观看 | 在线观看中文字幕亚洲 | 成人午夜毛片 | 欧美日韩一区二区在线观看 | 欧美一区二区网站 | 亚洲精品一区二区在线 | 国产91丝袜在线播放 | 亚州成人 | 黄网站在线播放 | 自拍在线 | 99久久婷婷国产亚洲终合精品 | 韩日一区二区 | 99精品久久| 成人性生交a做片 | 精品国产乱码久久久久久图片 | 超碰8 |