pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  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="0ooswoq" 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="ooug0ys" 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="ywuc2eg" 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>

                        • 主站蜘蛛池模板: 便携式高压氧舱-微压氧舱-核生化洗消系统-公众洗消站-洗消帐篷-北京利盟救援 | 电动高压冲洗车_价格-江苏速利达机车有限公司 | 浙江上沪阀门有限公司 | 河南膏药贴牌-膏药代加工-膏药oem厂家-洛阳今世康医药科技有限公司 | 818手游网_提供当下热门APP手游_最新手机游戏下载 | 气动隔膜泵厂家-温州永嘉定远泵阀有限公司 | 珠海白蚁防治_珠海灭鼠_珠海杀虫灭鼠_珠海灭蟑螂_珠海酒店消杀_珠海工厂杀虫灭鼠_立净虫控防治服务有限公司 | 苏州防水公司_厂房屋面外墙防水_地下室卫生间防水堵漏-苏州伊诺尔防水工程有限公司 | 深圳市宏康仪器科技有限公司-模拟高空低压试验箱-高温防爆试验箱-温控短路试验箱【官网】 | 陶氏道康宁消泡剂_瓦克消泡剂_蓝星_海明斯德谦_广百进口消泡剂 | 【星耀裂变】_企微SCRM_任务宝_视频号分销裂变_企业微信裂变增长_私域流量_裂变营销 | 光泽度计_测量显微镜_苏州压力仪_苏州扭力板手维修-苏州日升精密仪器有限公司 | 沈阳庭院景观设计_私家花园_别墅庭院设计_阳台楼顶花园设计施工公司-【沈阳现代时园艺景观工程有限公司】 | 沥青车辙成型机-车托式混凝土取芯机-混凝土塑料试模|鑫高仪器 | 北京印刷厂_北京印刷_北京印刷公司_北京印刷厂家_北京东爵盛世印刷有限公司 | 山东聚盛新型材料有限公司-纳米防腐隔热彩铝板和纳米防腐隔热板以及钛锡板、PVDF氟膜板供应商 | 德国BOSCH电磁阀-德国HERION电磁阀-JOUCOMATIC电磁阀|乾拓百科 | 骨密度仪-骨密度测定仪-超声骨密度仪-骨龄测定仪-天津开发区圣鸿医疗器械有限公司 | 线粒体膜电位荧光探针-细胞膜-标记二抗-上海复申生物科技有限公司 | 共享雨伞_共享童车_共享轮椅_共享陪护床-共享产品的领先者_有伞科技 | 高空重型升降平台_高空液压举升平台_高空作业平台_移动式升降机-河南华鹰机械设备有限公司 | 湖南自考_湖南自学考试网 | 有机肥设备生产制造厂家,BB掺混肥搅拌机、复合肥设备生产线,有机肥料全部加工设备多少钱,对辊挤压造粒机,有机肥造粒设备 -- 郑州程翔重工机械有限公司 | 全自动端子机|刺破式端子压接机|全自动双头沾锡机|全自动插胶壳端子机-东莞市傅氏兄弟机械设备有限公司 | 派财经_聚焦数字经济内容服务平台| PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 广东健伦体育发展有限公司-体育工程配套及销售运动器材的体育用品服务商 | 铸钢件厂家-铸钢齿轮-减速机厂家-淄博凯振机械有限公司 | 东莞螺丝|东莞螺丝厂|东莞不锈钢螺丝|东莞组合螺丝|东莞精密螺丝厂家-东莞利浩五金专业紧固件厂家 | 电力测功机,电涡流测功机,磁粉制动器,南通远辰曳引机测试台 | 免联考国际MBA_在职MBA报考条件/科目/排名-MBA信息网 | 气象监测系统_气象传感器_微型气象仪_气象环境监测仪-山东风途物联网 | 纯水电导率测定仪-万用气体检测仪-低钠测定仪-米沃奇科技(北京)有限公司www.milwaukeeinst.cn 锂辉石检测仪器,水泥成分快速分析仪-湘潭宇科分析仪器有限公司 手术室净化装修-手术室净化工程公司-华锐手术室净化厂家 | 杰恒蠕动泵-蠕动泵专业厂家-19年专注蠕动泵 | 螺杆泵_中成泵业 | 搜活动房网—活动房_集装箱活动房_集成房屋_活动房屋 | 上海单片机培训|重庆曙海培训分支机构—CortexM3+uC/OS培训班,北京linux培训,Windows驱动开发培训|上海IC版图设计,西安linux培训,北京汽车电子EMC培训,ARM培训,MTK培训,Android培训 | 金环宇|金环宇电线|金环宇电缆|金环宇电线电缆|深圳市金环宇电线电缆有限公司|金环宇电缆集团 | 大倾角皮带机-皮带输送机-螺旋输送机-矿用皮带输送机价格厂家-河南坤威机械 | 高压直流电源_特种变压器_变压器铁芯-希恩变压器定制厂家 | 卫生纸复卷机|抽纸机|卫生纸加工设备|做卫生纸机器|小型卫生纸加工需要什么设备|卫生纸机器设备多少钱一台|许昌恒源纸品机械有限公司 |