Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Advertise
Write for us
Chad Miller
SQLPSX Release 1.6
By
cmille19
in
Chad Miller
|
06-28-2009 4:49 PM
|
Categories:
Rating: (not yet rated)
|
Discuss
|
235 Reads
|
31
Reads in Last 30 Days
|
no comments
I completed
Release 1.6 of SQLPSX
which adds support for SQL Authentication and addresses several issues. SQLPSX consists of 106 functions, 2 cmdlets and 12 scripts for working with SMO, Agent, RMO, SSIS and SQL script files.
Here's an example of using SQL Authentication:
$server
=
Get-SqlServer
'Z002\SQL2K8'
'sa'
'mypassword'
Because Get-SqlServer, Get-AgentJobServer, and Get-ReplServer support either Windows or SQL Authentication you can pass a server object to the additional functions. Here's an example of getting databases from the server variable creating above:
Get-SqlDatabase
$server
| Select name
Many of the functions support shortcuts when using Windows authentication. Because Windows authentication is used we do not have to first get a reference to a server object. manually Here's the same example getting databases using Windows authentication:
Get-SqlDatabase
'Z002\SQL2K8'
Other than the addition of SQL authentication support, SQLPSX 1.6 is largely a maintenance release. I've replaced calls to WMIC with Get-WmiObject and addressed issues documented in the
Issue Tracker
. I've also incorporated the
error handling technique Allen White provided
into several functions in order to provide better error reporting. I had hoped to have a provider for SSIS completed, however I ran into a few issues with
weak support of functionality in the SSIS API
. If the SQL product team doesn't include an SSIS provider in SQL Server 2008 R2, I'll look at creating one then.
With Release 1.6 complete I'm planning on the next release, 2.0, to re-implement the V1 functions as advanced functions in Powershell V2.
Comments
There are no comments on this post
Leave a Comment
Only members of SQLServerCentral may leave comments.
Register now
for your free account or
Sign-In
if you are already a member.
This Blog
Blog Homepage
Author's Profile
Subscribe (RSS)
Subscribe (ATOM)
Subscribe (RSS w/Comments)
Recent Posts
I’ve Moved and So Should You
SQLIse A Powershell Based SQL Server Query Tool
Querying Oracle from Powershell Part 2
Querying Oracle from Powershell Part 1
Suncoast Technology Forum Tech Fest Event 2010
This Blogger's Tags
F#
Oracle
PowerShell
SMO
Archive
March 2010
(4)
February 2010
(4)
January 2010
(4)
December 2009
(1)
November 2009
(2)
October 2009
(5)
September 2009
(4)
August 2009
(6)
July 2009
(6)
June 2009
(6)
September 2008
(1)
Get Your Own Blog
If you would like to blog on SQLServerCentral.com then send an email to
webmaster@sqlservercentral.com
.
My Profile
All Blogs
All Bloggers on SQL Server Central
Top Bloggers In The Past 30 Days
Name
Posts
Replies
Steve Jones
29
57
Glenn Berry
19
30
Andy Warren
27
5
Jason Brimhall
9
46
Brad M. McGehee
18
11
Jack Corbett
10
17
Gethyn Ellis
13
5
Viswanathan Durairaj
14
0
K. Brian Kelley
11
4
Dukagjin Maloku
6
15
Featured Blogs
Glenn Berry's SQL Server Performance
the coming upgrade tidal wave
intel xeon 56xx series westmere-ep review
sql server 2008 sp1 cu7 is released
Subscribe to All Blogs
RSS Syndication
Opml
Copyright © 2002-2010 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use