开发者

Can I use PowerShell with SQL Server 2005?

I know SQL Server 2008 has exposed some featu开发者_运维知识库res 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜