Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# Executes a Stored Procedure from Powershell and returns the first output DataTable | |
function Exec-Sproc{ | |
param($Conn, $Sproc, $Parameters=@{}) | |
$SqlCmd = New-Object System.Data.SqlClient.SqlCommand | |
$SqlCmd.CommandType = [System.Data.CommandType]::StoredProcedure | |
$SqlCmd.Connection = $Conn | |
$SqlCmd.CommandText = $Sproc | |
foreach($p in $Parameters.Keys){ | |
[Void] $SqlCmd.Parameters.AddWithValue("@$p",$Parameters[$p]) |