As an example in executing Powershell scripts inside SQL Server or T-SQL stored procedures, I am getting the current data and time using Get-Date CMD code.

 

Share This Via: