久久久久久久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. 數(shù)據(jù)庫客戶端:如何在 SQL Server 重啟后等待數(shù)據(jù)庫

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

            <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'>

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

                問題描述

                限時(shí)送ChatGPT賬號(hào)..

                服務(wù)依賴不足以保證數(shù)據(jù)庫客戶端在系統(tǒng)重啟后會(huì)發(fā)現(xiàn)他們的 SQL Server 啟動(dòng)并運(yùn)行.他們可能能夠創(chuàng)建到 master 數(shù)據(jù)庫的連接,但特定的數(shù)據(jù)庫可能仍在打開過程中(在恢復(fù)模式下),并且在最初的一段時(shí)間內(nèi)將拒絕連接.

                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.

                延遲的確切持續(xù)時(shí)間變化很大,取決于系統(tǒng)上的數(shù)據(jù)庫數(shù)量、恢復(fù)模式、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.

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

                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.

                是否有更好的方法來同步客戶端與服務(wù)器啟動(dòng),最好是通過將 SQL Server 服務(wù)保持在正在啟動(dòng)"狀態(tài)直到所有數(shù)據(jù)庫都被打開或標(biāo)記為可疑?

                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?

                推薦答案

                創(chuàng)建一個(gè) Windows 服務(wù),該服務(wù)嘗試訪問數(shù)據(jù)庫,除非成功建立可靠的連接,否則該服務(wù)不會(huì)報(bào)告自己已啟動(dòng).基本上該服務(wù)會(huì)返回一個(gè)錯(cuò)誤,服務(wù)管理器會(huì)嘗試根據(jù)服務(wù)設(shè)置運(yùn)行它.

                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.

                現(xiàn)在,您可以依賴其他服務(wù)中的新服務(wù)來保證數(shù)據(jù)庫響應(yīng).

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

                相關(guān)問題

                • 在 C# 中,確定數(shù)據(jù)庫是否已啟動(dòng)并正在運(yùn)行的最佳方法是什么?

                更新

                此外,要了解數(shù)據(jù)庫是否已啟動(dòng)并正在運(yùn)行,更簡潔的方法是檢查以下值:

                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"之外什么都不說,那么數(shù)據(jù)庫還沒有準(zhǔn)備好.(如果它存在的話)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

                這篇關(guān)于數(shù)據(jù)庫客戶端:如何在 SQL Server 重啟后等待數(shù)據(jù)庫激活?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫列表和 SQL Server 實(shí)例使用的空間嗎?) - IT屋-程序員軟件開發(fā)
                How to create a login to a SQL Server instance?(如何創(chuàng)建對(duì) SQL Server 實(shí)例的登錄?)
                How to know the version and edition of SQL Server through registry search(如何通過注冊(cè)表搜索知道SQL Server的版本和版本)
                Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會(huì)出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯(cuò)誤?使用 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 應(yīng)用程序設(shè)計(jì)——將文檔從 SQL Server 移動(dòng)到文件存儲(chǔ))

                  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>

                        • 主站蜘蛛池模板: 日本久草 | 精品中文在线 | 日韩毛片在线免费观看 | 最近中文字幕第一页 | 亚洲欧洲一区 | 伊人网在线播放 | m豆传媒在线链接观看 | 国产精选一区 | 国产在线精品一区 | 国产99热精品 | 久久久精品一区 | 色毛片| 国产成人精品一区二 | 亚洲综合色视频在线观看 | 午夜影院在线观看 | 国产精品久久久久久久久图文区 | 一级在线毛片 | 久久免费精品视频 | 久久免费观看一级毛片 | 国产成在线观看免费视频 | 成人深夜福利在线观看 | 国产日韩91 | 国产福利免费视频 | 日韩精品成人av | 日韩中文字幕一区 | 久久青视频 | 免费看的av | 国产精品国产三级国产aⅴ中文 | 亚洲精品一区二区三区蜜桃久 | 亚洲天堂日韩精品 | 日韩欧美在线一区 | 国产99久久 | 欧美视频成人 | 久久一 | 国产精品免费福利 | 网站国产 | 亚洲成人一二三 | 欧美激情在线精品一区二区三区 | 欧美精产国品一二三区 | 久久久久久久国产 | 日本三级电影免费观看 |