簡體   English   中英

修補SQL Server LocalDB

[英]Patching SQL Server LocalDB

我已安裝SQL Server 2017 LocalDb(v14.0.1000.169)。 我想以無人值守的方式使用最新的CU修補此安裝。

但是,當我從SQLServer2017-KB4508218-x64運行setup.exe時,它說我沒有安裝適當的版本。

C:\test\extracted>setup.exe /action=patch /allinstances /quiet /IAcceptSQLServerLicenseTerms
Microsoft (R) SQL Server 2017 14.00.3223.03
Copyright (c) 2017 Microsoft.  All rights reserved.

No features were updated during the setup execution. The requested features may not be installed or features are already at a higher patch level. Please review the summary.txt logs for further details.
The version of SQL Server instance Shared Component does not match the version expected by the SQL Server update. The installed SQL Server product version is 13.1.4414.46, and the expected SQL Server version is 14.0.1000.169.

但是我肯定在那個版本上安裝了localdb:

C:\test\extracted>sqllocaldb versions 
Microsoft SQL Server 2017 (14.0.1000.169)

我在這里做錯了什么? 還有另一種更新LocalDB的方法嗎? 由於存在此版本的LocalDB的已知問題,因此需要這樣做。

交互式運行安裝程序無濟於事-給出相同的消息。

看來,如果僅使用sqllocaldb.msi安裝localdb,則CU安裝程序將永遠無法修補您的localdb實例。 這似乎是一個長期存在的錯誤:

https://sqlblog.org/2012/09/06/sqllocaldb-vs-cumulative-updates

由於Microsoft沒有提供RTM版本以外的更新sqllocaldb.msi,因此您必須使用Express版完整安裝程序 ,然后使用CU安裝程序應用CU。

這成功檢測到localdb(以及被強制安裝的Express實例)並修補了這兩者。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM