Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

how to insert powershell values into sql server table Expand / Collapse
Author
Message
Posted Thursday, September 19, 2013 4:44 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Saturday, June 7, 2014 1:03 PM
Points: 47, Visits: 157
Hi,

I am looking to find way to hold values in my sql table. actually i have powershell script it is returning some values, but i want to save those values into my table.can anyone have any idea on it. please help me out.

Thanks
Post #1496303
Posted Thursday, September 19, 2013 10:10 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 11:19 PM
Points: 36,724, Visits: 31,173
I saw a script on the "Scripting Guy" series of posts but I didn't save the URL because it seemed a little complicated to me to do such a simple thing (I call the PowerShell using xp_CmdShell and parse the output from that). You might want to check there.



--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1496695
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse