Skip to content

Conversation

@sid351
Copy link

@sid351 sid351 commented Feb 4, 2016

Hi there,

I came across your blog from awhile ago when I was looking to run a SQL query using PowerShell.

I needed to make a couple of changes to it to work in my environment, and as such thought it would be useful to parametrise it. With it being useful in the future I took some time to split out the different functions and make it so I could reuse it again in the future with only a small amount of effort.

As you made your code available on GitHub and it helped me out, I figured I'd update the source with my changes.

I hope it helps.

Owen

Stores the SQL session in the $SqlSession variable for use later.
#>

$format = @{Expression={$_.Id};Label="User Id";width=10},@{Expression={$_.Name};Label="Identified Swede"; width=30}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting the table view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants