Skip to content

Commit bc7ef00

Browse files
author
Azure Pipelines Bot
committed
[Windows / SQL Server EXTRAS] baselines
1 parent fd29a82 commit bc7ef00

File tree

4 files changed

+304
-0
lines changed

4 files changed

+304
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
BeforeExecute
2+
-- SqlServer.Contained.MS SqlServer.2019
3+
4+
SELECT
5+
[p].[object_id],
6+
OBJECT_SCHEMA_NAME([p].[object_id]),
7+
OBJECT_NAME([p].[object_id]),
8+
SUM(Coalesce([p].[rows], 0))
9+
FROM
10+
[sys].[partitions] [p]
11+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
12+
WHERE
13+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
14+
GROUP BY
15+
[p].[object_id]
16+
ORDER BY
17+
[p].[object_id]
18+
19+
BeforeExecute
20+
BeginTransaction
21+
BeforeExecute
22+
-- SqlServer.Contained.MS SqlServer.2019
23+
DECLARE @ParentID Int -- Int32
24+
SET @ParentID = -345
25+
DECLARE @Value1 Int -- Int32
26+
SET @Value1 = NULL
27+
28+
INSERT INTO [Parent]
29+
(
30+
[ParentID],
31+
[Value1]
32+
)
33+
VALUES
34+
(
35+
@ParentID,
36+
@Value1
37+
)
38+
39+
BeforeExecute
40+
-- SqlServer.Contained.MS SqlServer.2019
41+
42+
SELECT
43+
[p].[object_id],
44+
OBJECT_SCHEMA_NAME([p].[object_id]),
45+
OBJECT_NAME([p].[object_id]),
46+
SUM(Coalesce([p].[rows], 0))
47+
FROM
48+
[sys].[partitions] [p]
49+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
50+
WHERE
51+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
52+
GROUP BY
53+
[p].[object_id]
54+
ORDER BY
55+
[p].[object_id]
56+
57+
BeforeExecute
58+
RollbackTransaction
59+
BeforeExecute
60+
-- SqlServer.Contained.MS SqlServer.2019
61+
62+
SELECT
63+
[p].[object_id],
64+
OBJECT_SCHEMA_NAME([p].[object_id]),
65+
OBJECT_NAME([p].[object_id]),
66+
SUM(Coalesce([p].[rows], 0))
67+
FROM
68+
[sys].[partitions] [p]
69+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
70+
WHERE
71+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
72+
GROUP BY
73+
[p].[object_id]
74+
ORDER BY
75+
[p].[object_id]
76+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
BeforeExecute
2+
-- SqlServer.Contained SqlServer.2019
3+
4+
SELECT
5+
[p].[object_id],
6+
OBJECT_SCHEMA_NAME([p].[object_id]),
7+
OBJECT_NAME([p].[object_id]),
8+
SUM(Coalesce([p].[rows], 0))
9+
FROM
10+
[sys].[partitions] [p]
11+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
12+
WHERE
13+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
14+
GROUP BY
15+
[p].[object_id]
16+
ORDER BY
17+
[p].[object_id]
18+
19+
BeforeExecute
20+
BeginTransaction
21+
BeforeExecute
22+
-- SqlServer.Contained SqlServer.2019
23+
DECLARE @ParentID Int -- Int32
24+
SET @ParentID = -345
25+
DECLARE @Value1 Int -- Int32
26+
SET @Value1 = NULL
27+
28+
INSERT INTO [Parent]
29+
(
30+
[ParentID],
31+
[Value1]
32+
)
33+
VALUES
34+
(
35+
@ParentID,
36+
@Value1
37+
)
38+
39+
BeforeExecute
40+
-- SqlServer.Contained SqlServer.2019
41+
42+
SELECT
43+
[p].[object_id],
44+
OBJECT_SCHEMA_NAME([p].[object_id]),
45+
OBJECT_NAME([p].[object_id]),
46+
SUM(Coalesce([p].[rows], 0))
47+
FROM
48+
[sys].[partitions] [p]
49+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
50+
WHERE
51+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
52+
GROUP BY
53+
[p].[object_id]
54+
ORDER BY
55+
[p].[object_id]
56+
57+
BeforeExecute
58+
RollbackTransaction
59+
BeforeExecute
60+
-- SqlServer.Contained SqlServer.2019
61+
62+
SELECT
63+
[p].[object_id],
64+
OBJECT_SCHEMA_NAME([p].[object_id]),
65+
OBJECT_NAME([p].[object_id]),
66+
SUM(Coalesce([p].[rows], 0))
67+
FROM
68+
[sys].[partitions] [p]
69+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
70+
WHERE
71+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
72+
GROUP BY
73+
[p].[object_id]
74+
ORDER BY
75+
[p].[object_id]
76+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
BeforeExecute
2+
-- SqlServer.SA.MS SqlServer.2019
3+
4+
SELECT
5+
[p].[object_id],
6+
OBJECT_SCHEMA_NAME([p].[object_id]),
7+
OBJECT_NAME([p].[object_id]),
8+
SUM(Coalesce([p].[rows], 0))
9+
FROM
10+
[sys].[partitions] [p]
11+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
12+
WHERE
13+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
14+
GROUP BY
15+
[p].[object_id]
16+
ORDER BY
17+
[p].[object_id]
18+
19+
BeforeExecute
20+
BeginTransaction
21+
BeforeExecute
22+
-- SqlServer.SA.MS SqlServer.2019
23+
DECLARE @ParentID Int -- Int32
24+
SET @ParentID = -345
25+
DECLARE @Value1 Int -- Int32
26+
SET @Value1 = NULL
27+
28+
INSERT INTO [Parent]
29+
(
30+
[ParentID],
31+
[Value1]
32+
)
33+
VALUES
34+
(
35+
@ParentID,
36+
@Value1
37+
)
38+
39+
BeforeExecute
40+
-- SqlServer.SA.MS SqlServer.2019
41+
42+
SELECT
43+
[p].[object_id],
44+
OBJECT_SCHEMA_NAME([p].[object_id]),
45+
OBJECT_NAME([p].[object_id]),
46+
SUM(Coalesce([p].[rows], 0))
47+
FROM
48+
[sys].[partitions] [p]
49+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
50+
WHERE
51+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
52+
GROUP BY
53+
[p].[object_id]
54+
ORDER BY
55+
[p].[object_id]
56+
57+
BeforeExecute
58+
RollbackTransaction
59+
BeforeExecute
60+
-- SqlServer.SA.MS SqlServer.2019
61+
62+
SELECT
63+
[p].[object_id],
64+
OBJECT_SCHEMA_NAME([p].[object_id]),
65+
OBJECT_NAME([p].[object_id]),
66+
SUM(Coalesce([p].[rows], 0))
67+
FROM
68+
[sys].[partitions] [p]
69+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
70+
WHERE
71+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
72+
GROUP BY
73+
[p].[object_id]
74+
ORDER BY
75+
[p].[object_id]
76+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
BeforeExecute
2+
-- SqlServer.SA SqlServer.2019
3+
4+
SELECT
5+
[p].[object_id],
6+
OBJECT_SCHEMA_NAME([p].[object_id]),
7+
OBJECT_NAME([p].[object_id]),
8+
SUM(Coalesce([p].[rows], 0))
9+
FROM
10+
[sys].[partitions] [p]
11+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
12+
WHERE
13+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
14+
GROUP BY
15+
[p].[object_id]
16+
ORDER BY
17+
[p].[object_id]
18+
19+
BeforeExecute
20+
BeginTransaction
21+
BeforeExecute
22+
-- SqlServer.SA SqlServer.2019
23+
DECLARE @ParentID Int -- Int32
24+
SET @ParentID = -345
25+
DECLARE @Value1 Int -- Int32
26+
SET @Value1 = NULL
27+
28+
INSERT INTO [Parent]
29+
(
30+
[ParentID],
31+
[Value1]
32+
)
33+
VALUES
34+
(
35+
@ParentID,
36+
@Value1
37+
)
38+
39+
BeforeExecute
40+
-- SqlServer.SA SqlServer.2019
41+
42+
SELECT
43+
[p].[object_id],
44+
OBJECT_SCHEMA_NAME([p].[object_id]),
45+
OBJECT_NAME([p].[object_id]),
46+
SUM(Coalesce([p].[rows], 0))
47+
FROM
48+
[sys].[partitions] [p]
49+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
50+
WHERE
51+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
52+
GROUP BY
53+
[p].[object_id]
54+
ORDER BY
55+
[p].[object_id]
56+
57+
BeforeExecute
58+
RollbackTransaction
59+
BeforeExecute
60+
-- SqlServer.SA SqlServer.2019
61+
62+
SELECT
63+
[p].[object_id],
64+
OBJECT_SCHEMA_NAME([p].[object_id]),
65+
OBJECT_NAME([p].[object_id]),
66+
SUM(Coalesce([p].[rows], 0))
67+
FROM
68+
[sys].[partitions] [p]
69+
INNER JOIN [sys].[objects] [a_Object] ON [p].[object_id] = [a_Object].[object_id]
70+
WHERE
71+
[p].[index_id] IN (0, 1) AND [a_Object].[type] = N'U'
72+
GROUP BY
73+
[p].[object_id]
74+
ORDER BY
75+
[p].[object_id]
76+

0 commit comments

Comments
 (0)