{"id":105,"date":"2025-05-27T20:34:12","date_gmt":"2025-05-27T12:34:12","guid":{"rendered":"https:\/\/www.atao.idv.tw\/wordpress\/?p=105"},"modified":"2025-05-28T09:52:02","modified_gmt":"2025-05-28T01:52:02","slug":"sql-server-exit-code-2061893606","status":"publish","type":"post","link":"https:\/\/www.atao.idv.tw\/wordpress\/2025\/05\/27\/sql-server-exit-code-2061893606\/","title":{"rendered":"SQL Server Exit code: -2061893606"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u932f\u8aa4\u63cf\u8ff0<\/h2>\n\n\n\n<p>\u5728 Windows 11 \u5b89\u88dd SQL Server 2022 Express Edition \u6642\uff0c\u5b89\u88dd\u5230\u6700\u5f8c\u5feb\u7d50\u675f\u6642\uff0c\u51fa\u73fe\u5982\u4e0b\u7684\u932f\u8aa4\u8a0a\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">\u7121\u6cd5\u5b89\u88dd SQL Server (setup.exe)\u3002\nExit code (Decimal): -2061893606\nError description: \u7b49\u5019 Database Engine \u5fa9\u539f\u63a7\u5236\u4ee3\u78bc\u5931\u6557\u3002\u8acb\u67e5\u770b SQL Server \u932f\u8aa4\u8a18\u9304\u6a94\uff0c\u4ee5\u4e86\u89e3\u53ef\u80fd\u7684\u539f\u56e0\u3002<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u767c\u751f\u539f\u56e0<\/h2>\n\n\n\n<p>\u672c\u6848\u4f8b\u767c\u751f\u7684\u539f\u56e0\u5728\u65bc SQL Server \u5b89\u88dd\u6240\u5728\u7684\u78c1\u789f\u78c1\u5340\u5927\u5c0f\u8d85\u904e4KB\uff0c\u5c0e\u81f4\u7121\u6cd5\u5b89\u88dd\u3002\u6aa2\u67e5\u65b9\u5f0f\u4ee5\u7cfb\u7d71\u7ba1\u7406\u54e1\u8eab\u5206\u57f7\u884c\u300c\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u300d\uff0c\u4e26\u57f7\u884c\u4e0b\u5217\u6307\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">fsutil fsinfo sectorinfo c:<\/code><\/pre>\n\n\n\n<p>\u57f7\u884c\u6307\u4ee4\u5f8c\u53ef\u5f97\u985e\u4f3c\u4e0b\u5217\u7684\u7d50\u679c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">LogicalBytesPerSector :                   512\nPhysicalBytesPerSectorForAtomicity :      65536\nPhysicalBytesPerSectorForPerformance :    65536\nFileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096\n\u88dd\u7f6e\u5c0d\u9f4a :                          \u5df2\u5c0d\u9f4a (0x000)\n\u88dd\u7f6e\u4e0a\u7684\u78c1\u789f\u5206\u5272\u5c0d\u9f4a :               \u5df2\u5c0d\u9f4a (0x000)<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d\u300cPhysicalBytesPerSectorForAtomicity\u300d\u53ca\u300cPhysicalBytesPerSectorForPerformance\u300d\u90fd\u662f 65536\uff0c\u4ee3\u8868\u6bcf\u500b\u78c1\u5340\u90fd64KB\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u6c7a\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u5148\u5230\u63a7\u5236\u53f0\u89e3\u9664 Microsoft SQL Server\u7684\u5b89\u88dd\uff0c\u4e26\u4e14\u4ee5\u7cfb\u7d71\u7ba1\u7406\u54e1\u7684\u6b0a\u9650\u522a\u9664 C:\\Program Files\\Microsoft SQL Server \u53ca C:\\Program Files (32)\\Microsoft SQL Server \u7684\u8cc7\u6599\u593e<\/p>\n\n\n\n<p>\u4ee5\u7cfb\u7d71\u7ba1\u7406\u54e1\u8eab\u5206\u57f7\u884c\u300cWindows PowerShell\u300d\uff0c\u4e26\u57f7\u884c\u4e0b\u5217\u6307\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">New-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Services\\stornvme\\Parameters\\Device\" -Name \"ForcedPhysicalSectorSizeInBytes\" -PropertyType MultiString -Force -Value \"* 4096\"<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u6307\u4ee4\u6703\u5efa\u7acb\u5f37\u5236\u66f4\u6539\u78c1\u5340\u70ba 4KB \u7684\u6a5f\u78bc\u3002<br>\u91cd\u65b0\u958b\u6a5f\u5f8c\uff0c\u518d\u6b21\u4ee5\u7cfb\u7d71\u7ba1\u7406\u54e1\u8eab\u5206\u57f7\u884c\u300c\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u300d\uff0c\u4e26\u57f7\u884c\u4e0b\u5217\u6307\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">fsutil fsinfo sectorinfo c:<\/code><\/pre>\n\n\n\n<p>\u6b64\u6642\u53ef\u4ee5\u770b\u898b\u5982\u4e0b\u7684\u57f7\u884c\u7d50\u679c\uff0c\u5176\u4e2d\u300cPhysicalBytesPerSectorForAtomicity\u300d\u53ca\u300cPhysicalBytesPerSectorForPerformance\u300d\u90fd\u6539\u70ba 4096\uff0c\u4ee3\u8868\u6bcf\u500b\u78c1\u5340\u90fd\u300c\u6a21\u64ec\u300d\u6210 4KB\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">LogicalBytesPerSector :                   512\nPhysicalBytesPerSectorForAtomicity :      4096\nPhysicalBytesPerSectorForPerformance :    4096\nFileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096\n\u88dd\u7f6e\u5c0d\u9f4a :                          \u5df2\u5c0d\u9f4a (0x000)\n\u88dd\u7f6e\u4e0a\u7684\u78c1\u789f\u5206\u5272\u5c0d\u9f4a :               \u5df2\u5c0d\u9f4a (0x000)<\/code><\/pre>\n\n\n\n<p>\u63a5\u8457\u91cd\u65b0\u5b89\u88dd Microsoft SQL Server 2022 Express\uff0c\u4fbf\u53ef\u4ee5\u6210\u529f\u5b89\u88dd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u932f\u8aa4\u63cf\u8ff0 \u5728 Windows 11 \u5b89\u88dd SQL Server 2022 Express Edition \u6642\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[16],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-system","tag-sql"],"_links":{"self":[{"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":3,"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/posts\/105\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.atao.idv.tw\/wordpress\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}