From 0e88769424f137f453692961fa68bb839e47f0f7 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Sat, 13 Oct 2012 08:44:56 -0400 Subject: [PATCH] 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 +}