windows:powershell:insertdbfilestats
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| windows:powershell:insertdbfilestats [2013/10/15 03:13] – external edit 127.0.0.1 | windows:powershell:insertdbfilestats [2018/05/15 03:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| function storeDbFileInfo($sql) | function storeDbFileInfo($sql) | ||
| { | { | ||
| - | $serverResults = Invoke-Sqlcmd -ServerInstance " | + | $serverResults = Invoke-Sqlcmd -ServerInstance " |
| $serverResults | forEach { | $serverResults | forEach { | ||
| $InstanceName, | $InstanceName, | ||
| Line 61: | Line 61: | ||
| $FileLogicalName, | $FileLogicalName, | ||
| $sql = "EXEC Windows.DbFileStats_Insert $InstanceID, | $sql = "EXEC Windows.DbFileStats_Insert $InstanceID, | ||
| - | Invoke-Sqlcmd -Query $sql -ServerInstance " | + | Invoke-Sqlcmd -Query $sql -ServerInstance " |
| } } } } } | } } } } } | ||
windows/powershell/insertdbfilestats.1381806784.txt.gz · Last modified: (external edit)
