Welcome to EMC Consulting Blogs Sign in | Join | Help

SSIS Junkie

Once upon a time this blog was a hive of activity. Now however its pretty lifeless as you can probably tell so if are pining for more of the same you can find me over at http://sqlblog.com/blogs/jamie_thomson. I look forward to seeing you there!

SDS Shell v0.2 : SQL Data Services

A month ago to the day I wrote Announcing SDS Shell – Managing SDS from Powershell where I first talked of SDS Shell, a Powershell Snapin for interacting with SQL Data Services (SDS). Since then the SDS REST head has moved to a new root at https://data.database.windows.net/ so I have updated the code accordingly and done some clean-up refactoring too.

Here’s the info you need:

  • Project root - http://www.codeplex.com/sdssh
  • Latest Release (v0.2) - http://www.codeplex.com/sdssh/Release/ProjectReleases.aspx?ReleaseId=19914

Once you have installed the suite you should be able to open Powershell and issue the command:

  • Get-PSSnapin –registered

where you should see the SnapIn listed. Then issue the following to load the snapin into your Powershell session in order that you can use it:

  • Add-PSSnapin sds-sh

Just for recap, here’s a rundown of the CmdLets that are installed with this Snapin:

Cmdlet Parameters Description Example
Get-SdsAuthorities Username | Password | Query (Optional) Returns a list of all your authorities. If <Query> is supplied then the list of containers will be filtered according to the query.* Get-SdsAuthorities username password "from e in entities where e.Id == `"auth-name`" select e"
Get-SdsContainers Username | Password | AuthorityName | Query (Optional) Returns a list of all the containers in <AuthorityName>. If <Query> is supplied then the list of containers will be filtered according to the query.*  
Get-SdsEntities Username | Password | AuthorityName | ContainerName |Query (Optional) Returns a list of all the entities in <ContainerName> in <AuthorityName>. Any properties of the entity other than "Kind", "Id" & "Version" will be returned as an XML property bag. If <Query> is supplied then the list of entities will be filtered according to the query.*  
Add-SdsAuthority Username | Password | AuthorityName Creates an authority called <AuthorityName>  
Add-SdsContainer Username | Password | AuthorityName | ContainerName Creates a container called <ContainerName> in <AuthorityName>  
Remove-SdsContainer Username | Password | AuthorityName | ContainerName Removes a container called <ContainerName> from an authority called <AuthorityName>  

-Jamie

 

UPDATE 2008-12-01: There were a few bugs in v2.0 (the perils of doing development when you should be asleep in bed) which are hopefully fixed in a later release that I’ve just committed, v0.2.1.

Get it from http://www.codeplex.com/sdssh/Release/ProjectReleases.aspx?ReleaseId=20057

Published 27 November 2008 23:36 by jamie.thomson
New Comments to this post are disabled

This Blog

Syndication

Powered by Community Server (Personal Edition), by Telligent Systems