A Pen by Artur Mustafin on CodePen.
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
| Open PowerShell and type: | |
| Standard Edition: | |
| DISM /online /Set-edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula | |
| DataCenter Edition: | |
| DISM /online /Set-edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula |
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
| public class BufferSegment : IDisposable | |
| { | |
| public BufferSegment(int size) => Buffer = ArrayPool<byte>.Shared.Rent(size); | |
| public byte[] Buffer { get; } | |
| public int ReadBytes { get; set; } | |
| public int WrittenBytes { get; set; } |
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
| SELECT | |
| t.NAME AS TableName, | |
| s.Name AS SchemaName, | |
| p.rows AS RowCounts, | |
| SUM(a.total_pages) * 8 AS TotalSpaceKB, | |
| CAST(ROUND(((SUM(a.total_pages) * 8) / 1024.00), 2) AS NUMERIC(36, 2)) AS TotalSpaceMB, | |
| SUM(a.used_pages) * 8 AS UsedSpaceKB, | |
| CAST(ROUND(((SUM(a.used_pages) * 8) / 1024.00), 2) AS NUMERIC(36, 2)) AS UsedSpaceMB, | |
| (SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB, | |
| CAST(ROUND(((SUM(a.total_pages) - SUM(a.used_pages)) * 8) / 1024.00, 2) AS NUMERIC(36, 2)) AS UnusedSpaceMB |
A Pen by Artur Mustafin on CodePen.
A Pen by Artur Mustafin on CodePen.
A Pen by Artur Mustafin on CodePen.
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| @import url('https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap'); | |
| * { |
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
| Visual Studio 2019 Enterprise | |
| BF8Y8-GN2QH-T84XB-QVY3B-RC4DF | |
| Visual Studio 2019 Professional | |
| NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y |