Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

using PowerShell Functions in t-SQL scripts

$
0
0

experts,

Can I use a power shell function that gets file size given file path by cross applying it to a table in SQL Server that holds file path of files?

fileID    filepath
1         L:\DemoWebPages\About.cshtml.txt
2         L:\DemoWebPages\default.cshtml.txt.txt
3         L:\DemoWebPages\Layout.cshtml.txt
4         L:\DemoWebPages\Site.css.txt

if the above if the table in SQL Server, can I cross apply a power shell function that gets the file size when file path is passed from the table above?

Help Much Appreciated!


ebro


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>