From 6cdabf1e2d8eefa0d148a11b2c318cfb5e0ad850 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Sat, 13 Oct 2012 07:59:28 -0400 Subject: [PATCH 1/4] SQL 2008 Feature Pack, April 2009 --- SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec | 10 +++++----- SQL2008.ClrTypes/tools/chocolateyInstall.ps1 | 4 ++-- SQL2008.NativeClient/SQL2008.NativeClient.nuspec | 8 +++++--- SQL2008.NativeClient/tools/chocolateyInstall.ps1 | 4 ++-- SQL2008.SMO/SQL2008.SMO.nuspec | 8 ++++---- SQL2008.SMO/tools/chocolateyInstall.ps1 | 4 ++-- 6 files changed, 20 insertions(+), 18 deletions(-) diff --git a/SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec b/SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec index 307c098..661bc08 100644 --- a/SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec +++ b/SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec @@ -2,15 +2,15 @@ SQL2008.ClrTypes - Microsoft SQL Server System CLR Types - 10.00.1600.23 + Microsoft SQL Server 2008 System CLR Types + 10.00.2531.00 Microsoft Ethan Brown - Note: This is really 10.00.1600.22, but had to be version bumped to fix an issue in the package installer. + Microsoft SQL Server 2008 Feature Pack, April 2009 - The SQL Server System CLR Types package contains the components implementing the new geometry, geography, and hierarchyid types in SQL Server 2008. This component can be installed separately from the server to allow client applications to use these types outside of the server. + The SQL Server System CLR Types package contains the components implementing the new geometry, geography, and hierarchyid types in SQL Server 2008. This component can be installed separately from the server to allow client applications to use these types outside of the server. The SQL Server System CLR Types package contains the components implementing the new geometry, geography, and hierarchyid types in SQL Server 2008. This component can be installed separately from the server to allow client applications to use these types outside of the server. - http://www.microsoft.com/en-us/download/details.aspx?id=16177 + http://www.microsoft.com/en-us/download/details.aspx?id=3522 SQL SQL2008 .NET CLR + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/SQL2008.SMO/SQL2008.png + + + + + + + + + + diff --git a/SQL2008.Powershell/tools/chocolateyInstall.ps1 b/SQL2008.Powershell/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..8d382da --- /dev/null +++ b/SQL2008.Powershell/tools/chocolateyInstall.ps1 @@ -0,0 +1,27 @@ +$package = 'SQL2008.Powershell' + +try { + $params = @{ + packageName = $package; + fileType = 'msi'; + silentArgs = '/quiet'; + url = 'http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F117190/PowerShellTools.msi'; + url64bit = 'http://download.microsoft.com/download/A/D/0/AD021EF1-9CBC-4D11-AB51-6A65019D4706/PowerShellTools.msi'; + } + + Install-ChocolateyPackage @params + + # install both x86 and x64 editions since x64 PS supports both + $IsSytem32Bit = (($Env:PROCESSOR_ARCHITECTURE -eq 'x86') -and ` + ($Env:PROCESSOR_ARCHITEW6432 -eq $null)) + if (!$IsSytem32Bit) + { + $params.url64bit = $params.url + Install-ChocolateyPackage @params + } + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +} From 0e88769424f137f453692961fa68bb839e47f0f7 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Sat, 13 Oct 2012 08:44:56 -0400 Subject: [PATCH 3/4] SQL 2008 Command Line Utilities 10.00.2531.00 --- SQL2008.CmdLine/SQL2008.CmdLine.nuspec | 33 +++++++++++++++++++++ SQL2008.CmdLine/tools/chocolateyInstall.ps1 | 27 +++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 SQL2008.CmdLine/SQL2008.CmdLine.nuspec create mode 100644 SQL2008.CmdLine/tools/chocolateyInstall.ps1 diff --git a/SQL2008.CmdLine/SQL2008.CmdLine.nuspec b/SQL2008.CmdLine/SQL2008.CmdLine.nuspec new file mode 100644 index 0000000..a598ec7 --- /dev/null +++ b/SQL2008.CmdLine/SQL2008.CmdLine.nuspec @@ -0,0 +1,33 @@ + + + + SQL2008.CmdLine + Microsoft SQL Server 2008 Command Line Utilities + 10.00.2531.00 + Microsoft + Ethan Brown + Microsoft SQL Server 2008 Feature Pack, April 2009 + + The SQLCMD utility allows users to connect to, send Transact-SQL batches from, and output rowset information from SQL Server 7.0, SQL Server 2000, SQL Server 2005, and SQL Server 2008 instances. The bcp utility bulk copies data between an instance of Microsoft SQL Server 2008 and a data file in a user-specified format. The bcp utility can be used to import large numbers of new rows into SQL Server tables or to export data out of tables into data files. + Microsoft SQL Server 2008 Feature Pack, April 2009 + + The SQLCMD utility allows users to connect to, send Transact-SQL batches from, and output rowset information from SQL Server 7.0, SQL Server 2000, SQL Server 2005, and SQL Server 2008 instances. The bcp utility bulk copies data between an instance of Microsoft SQL Server 2008 and a data file in a user-specified format. The bcp utility can be used to import large numbers of new rows into SQL Server tables or to export data out of tables into data files. + + Also installs SQL Native Client. + + http://www.microsoft.com/en-us/download/details.aspx?id=3522 + SQL SQL2008 cmdline bcp SQLCMD + + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/SQL2008.SMO/SQL2008.png + + + + + + + + + diff --git a/SQL2008.CmdLine/tools/chocolateyInstall.ps1 b/SQL2008.CmdLine/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..7975db6 --- /dev/null +++ b/SQL2008.CmdLine/tools/chocolateyInstall.ps1 @@ -0,0 +1,27 @@ +$package = 'SQL2008.CmdLine' + +try { + $params = @{ + packageName = $package; + fileType = 'msi'; + silentArgs = '/quiet'; + url = 'http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F117190/SqlCmdLnUtils.msi'; + url64bit = 'http://download.microsoft.com/download/A/D/0/AD021EF1-9CBC-4D11-AB51-6A65019D4706/SqlCmdLnUtils.msi'; + } + + Install-ChocolateyPackage @params + + # install both x86 and x64 editions since x64 supports both + $IsSytem32Bit = (($Env:PROCESSOR_ARCHITECTURE -eq 'x86') -and ` + ($Env:PROCESSOR_ARCHITEW6432 -eq $null)) + if (!$IsSytem32Bit) + { + $params.url64bit = $params.url + Install-ChocolateyPackage @params + } + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +} From 80fb102d92c48b1d8ebaeadf2ad65770f7664f2e Mon Sep 17 00:00:00 2001 From: Iristyle Date: Sat, 13 Oct 2012 13:00:17 -0400 Subject: [PATCH 4/4] Install both SMO x86 and x64 on x64 OSes SQL Powershell utils, which run on x86 and x64, require that the matching SMO be installed :( --- SQL2008.SMO/SQL2008.SMO.nuspec | 6 ++++-- SQL2008.SMO/tools/chocolateyInstall.ps1 | 10 ++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/SQL2008.SMO/SQL2008.SMO.nuspec b/SQL2008.SMO/SQL2008.SMO.nuspec index 8d9114b..9fe77f6 100644 --- a/SQL2008.SMO/SQL2008.SMO.nuspec +++ b/SQL2008.SMO/SQL2008.SMO.nuspec @@ -3,10 +3,12 @@ SQL2008.SMO Microsoft SQL Server 2008 Management Objects - 10.00.2531.00 + 10.00.2531.01 Microsoft Ethan Brown - Microsoft SQL Server 2008 Feature Pack, April 2009 + Microsoft SQL Server 2008 Feature Pack, April 2009 - 10.00.2531.00 + + Note that this is 10.00.2531.00, but had to be updated to 10.00.2531.01 to ensure that the dependent Powershell package would install correctly. 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. 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 and SQL Server 2008. diff --git a/SQL2008.SMO/tools/chocolateyInstall.ps1 b/SQL2008.SMO/tools/chocolateyInstall.ps1 index 3c0bcff..99581f3 100644 --- a/SQL2008.SMO/tools/chocolateyInstall.ps1 +++ b/SQL2008.SMO/tools/chocolateyInstall.ps1 @@ -11,6 +11,16 @@ try { Install-ChocolateyPackage @params + # 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 ` + ($Env:PROCESSOR_ARCHITEW6432 -eq $null)) + if (!$IsSytem32Bit) + { + $params.url64bit = $params.url + Install-ChocolateyPackage @params + } + Write-ChocolateySuccess $package } catch { Write-ChocolateyFailure $package "$($_.Exception.Message)"