set-sqldata

Developer
Feb 5, 2013 at 5:46 AM
Hi^^

I'm not sure if this had been fixed or not.

But in the Set-SqlData

[Parameter(Position=1, Mandatory=$true)] [string] $dbname,
it should be
[Parameter(Position=1, Mandatory=$true)] $dbname,

Maybe I'm wrong... not sure^^a



Best regards
Anibal
Coordinator
Feb 5, 2013 at 1:38 PM
You're correct, [string] should be omitted since the code inspects the parameter type to allow passing a database object as well as a database string.<br>
<br>
On Tuesday, February 5, 2013, ingted wrote:<br>
<blockquote style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex"> <div> <p>From: ingted</p> <div>Hi^^ I'm not sure if this had been fixed or not. But in the Set-SqlData [Parameter(Position=1, Mandatory=$true)] [string] $dbname, it should be [Parameter(Position=1, Mandatory=$true)] $dbname, Maybe I'm wrong... not sure^^a Best regards Anibal</div> <div> <p>Read the <a href="http://sqlpsx.codeplex.com/discussions/431979#post996507" target="_blank"> full discussion online</a>.</p> <p>To add a post to this discussion, reply to this email (<a href="" target="_blank">SQLPSX@discussions.codeplex.com</a>)</p> <p>To start a new discussion for this project, email <a href="" target="_blank">SQLPSX@discussions.codeplex.com</a></p> <p>You are receiving this email because you subscribed to this discussion on CodePlex. You can <a href="https://sqlpsx.codeplex.com/subscriptions/thread/project/edit" target="_blank"> unsubscribe or change your settings</a> on codePlex.com.</p> <p>Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at <a href="http://codeplex.com" target="_blank">codeplex.com</a></p> </div> </div> </blockquote> <br>
<br>
-- <br>
<a href="http://powershellstation.com">http://powershellstation.com>