YZlat
asked on
Connecting to SQL Server from Powershell to retrieve data
I need a powershell function that takes one parameter, connects to SQL Server database and retrieves data based on input parameter
SELECT Field1 FROm Table1 WHERE Field2=@parameter
SELECT Field1 FROm Table1 WHERE Field2=@parameter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Is there a way to put it all into a function and then call that function from my script?