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, | |
SUM(ps.row_count) AS [RowCount], | |
SUM(ps.used_page_count) * 8 AS [UsedSpaceKB], | |
SUM(ps.reserved_page_count) * 8 AS [ReservedSpaceKB] | |
FROM sys.dm_db_partition_stats AS ps | |
JOIN sys.tables AS t ON ps.object_id = t.object_id | |
GROUP BY t.name | |
ORDER BY [UsedSpaceKB] DESC; |
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, | |
SUM(ps.row_count) AS [RowCount], | |
SUM(ps.used_page_count) * 8 AS [UsedSpaceKB], | |
SUM(ps.reserved_page_count) * 8 AS [ReservedSpaceKB] | |
FROM sys.dm_db_partition_stats AS ps | |
JOIN sys.tables AS t ON ps.object_id = t.object_id | |
WHERE t.name = N'MyTable' | |
GROUP BY t.name; |
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
DBCC UPDATEUSAGE (0) WITH COUNT_ROWS; | |
EXEC sp_spaceused N'dbo.MyTable'; |
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
EXEC sp_spaceused N'dbo.MyTable'; |
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
<Project> | |
<PropertyGroup> | |
<Dog>$(Configuration)</Dog> | |
</PropertyGroup> | |
</Project> |
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
<Project> | |
<Target Name="ShowTfmForRestore" BeforeTargets="Restore"> | |
<Message Importance="High" Text="TFM: $(TargetFramework)" /> | |
<Message Importance="High" Text="TFMs: $(TargetFrameworks)" /> | |
<Message Importance="High" Text="ImportDirectoryBuildProps=$(ImportDirectoryBuildProps)" /> | |
<Message Importance="High" Text="Project: $(MSBuildProjectFullPath)" /> | |
</Target> | |
</Project> |
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
<Message | |
Text="Metadata list: @(AssemblyMetadata->'%(Identity)=%(Value)', ', ')" /> |
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
<Message Text="Metadata list for %(AssemblyMetadata.Identity): Value=%(AssemblyMetadata.Value) OtherMeta=%(AssemblyMetadata.OtherMeta)" /> |
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
<Project> | |
<PropertyGroup> | |
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath> | |
<AppendRuntimeIdentifierToOutputPath>true</AppendRuntimeIdentifierToOutputPath> | |
<OutputType>Exe</OutputType> | |
<TargetFrameworks>net8.0-windows</TargetFrameworks> | |
<PlatformTarget>x64</PlatformTarget> | |
<DebugType>Embedded</DebugType> | |
<LangVersion>Latest</LangVersion> | |
<UseArtifactsOutput>true</UseArtifactsOutput> |
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
auto a = authors, e = expected; | |
std::sort(a.begin(), a.end(), /* comparator */); | |
std::sort(e.begin(), e.end(), /* comparator */); | |
EXPECT_EQ(a, e); |
NewerOlder