-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlSetup: Cumulative Update #375
Comments
@bodunjo here is another way to do it.
|
@Zuldan I tried this but still facing the same issues as shown below. WARNING: [Server01]: [] The TEST operation will be carried against a pending configuration since the latest configuration has not converged yet. |
For SQL patches the ProductID should set to an empty string and make sure you use the exact name of the patch. EG 'Service Pack 1 for SQL Server 2016 (KB3182545) (64-bit)'. |
@Zuldan, how about the installation of the cumulative updates?
Also, can I run the the updates/ patches on all the instances in one go, rather than specifying an individual instances?
…Sent from my iPhone
On 17 Feb 2017, at 17:02, Zuldan <[email protected]<mailto:[email protected]>> wrote:
For SQL patches the ProductID should set to an empty string and make sure you use the exact name of the patch. EG 'Service Pack 1 for SQL Server 2016 (KB3182545) (64-bit)'.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#375 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ASRVCvlNBYUguSyD4M0dNkxCI1m6YVTFks5rddJWgaJpZM4L7N-g>.
|
You should also be able to install CU during the installation with xSQLServerSetup. I install CU1 for SQL Server 2016 this way. I create a folder 'Updates' in the root of the media folder and put the .exe of the CU in the 'Updates' folder (in my case SQLServer2016-KB3164674-x64.exe). The Updates folder could be anywhere as long as it is accessible by the setup account, I guess, but have not tried that.
|
@johju, I never thought about that. Will give it a try. May I ask, how you Install your SSMS for SQL 2016 installation and what features are supported? I'm using version xsqlserver 5.0 but not sure it it supports 2016. I tend to install the features and then install the SSMS separately. |
SSMS is not included in SQL 2016. So you need to install it separately from https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms. |
@johlju i tried that using the below and it failed with the following error message:
I used to set the UpdateSource = "MU" and this used to work. |
"MU" means Microsoft Update, which is the default (by setup.exe) when UpdateEnable = $true. Only one backslash before the server name in this output you submitted. Just want to verify that you missed one when you removed sensitive information?
Could you please look in the SQL Server ERROR LOG to see what went wrong? Also the CU_Updates only contain the CU you want to apply, no other CU's? If so, could you try with only the SQL 2016 CU in the folder (if it is SQL2016 you are trying to install). I have never tried with a UNC path in the UpdateSource. But there is no mention that is does not support UNC path in this article https://msdn.microsoft.com/en-us/library/dd638066.aspx. And in this article it does say it supports an UNC share
|
can u please provide me final code which you have to install updates |
@shreyaschavda Depends on what source you want updates from. And what kind of updates you ar looking to install. This should get updates from the folder Updates from the root of the installation media.
This should get updates from Microsoft Update. This probably won't install CU's.
More information here. |
Here is a silent PS script I use for SSMS: Type: Enter-PSSession –ComputerName Type: Cd \ to directory with “SSMS.exe” (D:\SQL2016\17) Type: .\SSMS-Setup-ENU.exe /q /IAcceptSQLServerLicenseTerms /Action=Install |
Closing this one as it seems this have been answered and resolved. If that is not the case then please reopen or ask this to be reopened. |
DSC resource MSFT_PackageResource failed to execute Set-TargetResource functionality with error Is there a way to make ProductID not required as even after the install the DSC config status remains as failed, when we leave the product ID blank. |
@cnilak That is a resource that is not part of this resource module. Please submit an issue to xPSDesiredStateConfiguration repository. |
I'm trying to install the SQL server cummulative update. It doesn't seem to do anything and it didn't fail either.
Although, if i run just the powershell script in the set script, it runs ok but just doesn't work well with the set script
Is there anything i'm doing wrong here? Can someone point me towards any resource or a better way of doing theis.
NB. I also used the Package resource, but that won't work if the product id is not known.
Does anyone know how to find the product id of the CU updates o/patches in general.
Configuration UpdateWindowsWithPath
{
Import-DSCResource -ModuleName xWindowsUpdate
<#
xHotfix HotfixInstall
{
Ensure = "Present"
Path = "\Sharepath\SQL Team\SQLInstalls\SQLServer2014SP2-KB3171021-x64-ENU.exe"
Id = "KB3171021"
}
#>
}
in another file
}
cd C:\Temp
UpdateWindowsWithPath -outputpath C:\Temp\UpdateWindowsWithPath
Start-DscConfiguration -Path C:\Temp\UpdateWindowsWithPath -Wait -Force -Verbose
The text was updated successfully, but these errors were encountered: