Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
General PowerShell
Getting StoredProcedure values
Last Post 07 Sep 2010 10:58 PM by
sachi
. 0 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
sachi
New Member
Posts:2
07 Sep 2010 10:58 PM
I am trying to pipe the output in powershell .Write-host $host | out-file output.txt? This is not working. where as if i just type in as $host | out-file output.txt this seems to work. Also while working with SQL , i gave the command as $server.databases | get-member. I was able to see the property Storedprocedures for the databases , but when i am trying to give it as $server.databases.Storedprocedure i am not getting any output The same i tried to do as below: foreach($db in $server.databases) { write-host $db.Storedprocedure } This time it worked.What is the difference? Also can u please explain the following Statements $cryptoServiceProvider = [System.Security.Cryptography.MD5CryptoServiceProvider] $hashAlgorithm = new-object $cryptoServiceProvider
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
General PowerShell
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2