This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setlocal | |
| set "location=d:\" | |
| for /F "delims=" %%a in ('dir /s /ad /b "%location%"') do ( | |
| echo md %%a >> createDirectorys.bat | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TAKEOWN /F "<foldername>" /R /D N /A | |
| Remove folder read-only attribute | |
| ATTRIB -R /D /S "<Foldername>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --http://www.sqlskills.com/blogs/paul/how-to-examine-io-subsystem-latencies-from-within-sql-server/ | |
| SELECT | |
| [ReadLatency] = | |
| CASE WHEN [num_of_reads] = 0 | |
| THEN 0 ELSE ([io_stall_read_ms] / [num_of_reads]) END, | |
| [WriteLatency] = | |
| CASE WHEN [num_of_writes] = 0 | |
| THEN 0 ELSE ([io_stall_write_ms] / [num_of_writes]) END, | |
| [Latency] = | |
| CASE WHEN ([num_of_reads] = 0 AND [num_of_writes] = 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare @hyperthreadingRatio bit | |
| declare @logicalCPUs int | |
| declare @HTEnabled int | |
| declare @physicalCPU int | |
| declare @SOCKET int | |
| declare @logicalCPUPerNuma int | |
| declare @NoOfNUMA int | |
| select @logicalCPUs = cpu_count -- [Logical CPU Count] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <rule name="Force Https" stopProcessing="true"> | |
| <match url="health.htm" negate="true" /> | |
| <conditions> | |
| <add input="{HTTP_X_FORWARDED_PROTO}" pattern="https" negate="true" /> | |
| </conditions> | |
| <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" /> | |
| </rule> |
OlderNewer