Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/PlanViewer.Core/Services/SchemaQueryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public sealed class ColumnInfo
public static class SchemaQueryService
{
private const string IndexQuery = @"
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT
i.name AS index_name,
i.type_desc AS index_type,
Expand Down Expand Up @@ -108,6 +109,7 @@ AND i.type > 0
ORDER BY i.index_id;";

private const string ColumnQuery = @"
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT
c.column_id AS ordinal_position,
c.name AS column_name,
Expand Down Expand Up @@ -139,6 +141,7 @@ FROM sys.columns AS c
ORDER BY c.column_id;";

private const string ObjectDefinitionQuery = @"
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT OBJECT_DEFINITION(OBJECT_ID(@objectName));";

public static async Task<IReadOnlyList<IndexInfo>> FetchIndexesAsync(
Expand Down
Loading