Downloads:

23,313

Downloads of v 12.0.2000.801:

2,397

Last Update:

7/5/2019

Package Maintainer(s):

Software Author(s):

  • Microsoft Corporation

Tags:

microsoft-sql-server-2014-management-objects SQL SQL2014 SMO .NET XML CLR

Microsoft SQL Server 2014 Management Objects

12.0.2000.801 | Updated: 7/5/2019

Downloads:

23,313

Downloads of v 12.0.2000.801:

2,397

Maintainer(s):

Software Author(s):

  • Microsoft Corporation

Microsoft SQL Server 2014 Management Objects 12.0.2000.801

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Microsoft SQL Server 2014 Management Objects, run the following command from the command line or from PowerShell:

>

To upgrade Microsoft SQL Server 2014 Management Objects, run the following command from the command line or from PowerShell:

>

To uninstall Microsoft SQL Server 2014 Management Objects, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade sql2014.smo -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade sql2014.smo -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure sql2014.smo installed
  win_chocolatey:
    name: sql2014.smo
    state: present
    version: 12.0.2000.801
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'sql2014.smo' do
  action    :install
  version  '12.0.2000.801'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: sql2014.smo,
    Version: 12.0.2000.801,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller sql2014.smo
{
   Name     = 'sql2014.smo'
   Ensure   = 'Present'
   Version  = '12.0.2000.801'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'sql2014.smo':
  provider => 'chocolatey',
  ensure   => '12.0.2000.801',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install sql2014.smo version="12.0.2000.801" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator Pauby on 7/9/2019.

Description

The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, and SQL Server 2014.


tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir     = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

#Based on Msi
$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  softwareName  = 'Microsoft SQL Server 2014 Management Objects*'
  fileType      = 'msi'
  silentArgs    = "/qn /norestart /l*v `"$env:TEMP\$env:ChocolateyPackageName.$env:ChocolateyPackageVersion.log`""
  validExitCodes= @(0,1641,3010)
  url           = "http://download.microsoft.com/download/1/3/0/13089488-91FC-4E22-AD68-5BE58BD5C014/ENU/x86/SharedManagementObjects.msi"
  checksum      = 'A44DE01F0554962C2D9E80C947FF3918FADD2E5F4B9C5D1AFA523D6E84A37332'
  checksumType  = 'sha256'
  url64bit      = "http://download.microsoft.com/download/1/3/0/13089488-91FC-4E22-AD68-5BE58BD5C014/ENU/x64/SharedManagementObjects.msi"
  checksum64    = 'A44DE01F0554962C2D9E80C947FF3918FADD2E5F4B9C5D1AFA523D6E84A37332'
  checksumType64= 'sha256'
  destination   = $toolsDir
}

Install-ChocolateyPackage @packageArgs

  # install both x86 and x64 editions of SMO since x64 supports both
  # to install both variants of powershell, both variants of SMO must be present
  $IsSytem32Bit = (($Env:PROCESSOR_ARCHITECTURE -eq 'x86') -and `
    ($null -eq $Env:PROCESSOR_ARCHITEW6432))

  if (!$IsSytem32Bit)
  {
    $packageArgs.url64bit = $packageArgs.url
    $packageArgs.checksum64 = $packageArgs.checksum
    $packageArgs.checksumType64 = $packageArgs.checksumType
    Install-ChocolateyPackage @packageArgs
  }
tools\chocolateyUninstall.ps1
# HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
$msiId = '{2774595F-BC2A-4B12-A25B-0C37A37049B0}'
$msiId64 = '{1F9EB3B6-AED7-4AA7-B8F1-8E314B74B2A5}'

$package = 'SQL2014.SMO'

Uninstall-ChocolateyPackage $package 'MSI' -SilentArgs "$msiId /qb" -validExitCodes @(0)
if ([IntPtr]::Size -eq 8) { Uninstall-ChocolateyPackage $package 'MSI' -SilentArgs "$msiId64 /qb" -validExitCodes @(0) }

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Microsoft SQL Server 2014 Management Objects 12.0.2000.8 20916 Monday, September 15, 2014 Unknown
Discussion for the Microsoft SQL Server 2014 Management Objects Package

Ground Rules:

  • This discussion is only about Microsoft SQL Server 2014 Management Objects and the Microsoft SQL Server 2014 Management Objects package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Microsoft SQL Server 2014 Management Objects, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus