Hi guys,
I know SQL Server 2008 has exposed some features to PowerShell as snapins. Now I want to know whether I can use PowerShell with SQL Server 2005? I guess the answer is NO, right? Thanks.
Hi guys,
I know SQL Server 2008 has exposed some features to PowerShell as snapins. Now I want to know whether I can use PowerShell with SQL Server 2005? I guess the answer is NO, right? Thanks.
Yes -- You can use PowerShell with SQL Server 2005. The SQL Server 2008 minishell, sqlps.exe, which ships with SQL Server 2008 works against 2005 and even 2000 servers.
To get sqlps you'll need to either install SQL Server 2008 Management Studio or sqlps is available as a separate download as part of the SQL Server 2008 Feature Pack
In addition you can write PowerShell code directly using SQL Server Management Objects (SMO). SMO is the underlying classes used in SSMS and sqlps and was first introduced in SQL Server 2005. Like sqlps, SMO will work against SQL Server 2000.
The CodePlex project I coordinate, SQL Server PowerShell Extensions, provides over 130 functions and uses SMO and PowerShell that work with 2000 through 2008 R2 versions of SQL Server.