Skip to content

Commit c317dbb

Browse files
authored
Add files via upload
1 parent 24c57fa commit c317dbb

File tree

58 files changed

+7003
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+7003
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
IF OBJECT_ID('t1', 'U') IS NOT NULL
2+
DROP TABLE t1;
3+
GO
4+
5+
CREATE TABLE t1 (
6+
col1 INTEGER IDENTITY(1,1),
7+
col2 VARCHAR(10),
8+
col3 CHAR(10),
9+
col4 NCHAR(10),
10+
col5 TINYINT,
11+
col6 BIGINT
12+
);
13+
GO
14+
15+
INSERT INTO t1 (col2, col3, col4, col5, col6)
16+
SELECT 'val1', 'val1', 'val1', 0, 0
17+
UNION ALL
18+
SELECT 'val2', 'val2', 'val2', 255, 255;
19+
20+
SELECT *
21+
FROM t1;
22+
23+
DBCC CHECKIDENT('t1', 'NORESEED');
24+
25+
-- Restart SQL Server
26+
27+
DBCC CHECKIDENT('t1', 'NORESEED');
28+
29+
INSERT INTO t1 (col2, col3, col4, col5, col6)
30+
VALUES ('val3', 'val3', 'val3', 10, 10),
31+
('val4', 'val4', 'val4', 100, 100);
32+
33+
SELECT *,
34+
LEN(col1) AS integer_len,
35+
LEN(col2) AS varchar_len,
36+
LEN(col3) AS char_len,
37+
LEN(col4) AS nchar_len,
38+
LEN(col5) AS tinyint_len,
39+
LEN(col6) AS bigint_len,
40+
DATALENGTH(col1) AS integer_datalength,
41+
DATALENGTH(col2) AS varchar_datalength,
42+
DATALENGTH(col3) AS char_datalength,
43+
DATALENGTH(col4) AS nchar_datalength,
44+
DATALENGTH(col5) AS tinyint_datalength,
45+
DATALENGTH(col6) AS bigint_datalength
46+
FROM t1;
47+
48+
-- DBCC CHECKIDENT('t1', 'RESEED', 5);
49+
50+
IF EXISTS (SELECT 1 FROM sys.all_objects sao WHERE sao.name = 't1' AND sao.type = 'U')
51+
DROP TABLE t1
52+
ELSE PRINT 'Table t1 not exist!';
53+
GO
54+
55+
BEGIN TRY
56+
SELECT --/*
57+
CAST(-1 AS tinyint),
58+
1/0
59+
--*/ * FROM t1;
60+
END TRY
61+
BEGIN CATCH
62+
SELECT ERROR_NUMBER() AS ERROR_NUMBER,
63+
ERROR_SEVERITY() AS ERROR_SEVERITY,
64+
ERROR_STATE() AS ERROR_STATE,
65+
ERROR_PROCEDURE() AS ERROR_PROCEDURE,
66+
ERROR_MESSAGE() AS ERROR_MESSAGE,
67+
ERROR_LINE() AS ERROR_LINE;
68+
END CATCH;

Errors/PDB/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SQL Server Debugging
2+
3+
- [Obtaining symbol files (.PDB) for SQL Server Releases](https://github.com/arvindshmicrosoft/SQLCallStackResolver/wiki/Scripts-to-download-symbols-for-SQL-Server-2019)
4+
- [What is the SOS_WORK_DISPATCHER Wait Type?](https://orderbyselectnull.com/2018/09/27/what-is-the-sos_work_dispatcher-wait-type/)
5+
- [An XEvent a Day (24 of 31) – What is the callstack?](https://www.sqlskills.com/blogs/jonathan/an-xevent-a-day-24-of-31-what-is-the-callstack/)
6+
7+
This section contains PowerShell scripts which automate the download and extraction of `.PDB` files corresponding to major releases of SQL Server.
8+
9+
For running any of these scripts, please note the following:
10+
- You must run them within PowerShell, preferably within Windows
11+
- You must have Internet access from the machine running the PowerShell script
12+
- You might want to replace the $outputFolder placeholder with a different folder path (for example, `N:\sqlsymbols\SQL2016SP1`)
13+
- The script will automatically create the folder where the downloaded PDB files are stored.
14+
15+
Please click on one of the links below depending on the major version of SQL Server that you are looking at:
16+
- [SQL Server 2019](SQL-Server-2019.md)
17+
- [SQL Server 2017](SQL-Server-2017.md)
18+
- [SQL Server 2016](SQL-Server-2016.md)
19+
- [SQL Server 2014](SQL-Server-2014.md)
20+
- [SQL Server 2012](SQL-Server-2012.md)
21+
- [SQL Server 2008 R2](SQL-Server-2008-R2.md)
22+
- [SQL Server 2008](SQL-Server-2008.md)

Errors/PDB/SQL-Server-2008-R2.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# SQL Server 2008 R2 SP3 Security update January 6, 2018 - 10.50.6560.0 - x64 (4057113)
2+
``` powershell
3+
# SQL Server 2008 R2 SP3 Security update January 6, 2018 - 10.50.6560.0 - x64 (4057113)
4+
$outputFolder = 'c:\sqlsyms\10.50.6560.0\x64' # <<change this output folder if needed>>'
5+
mkdir -f $outputFolder
6+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/b981ac9f18d144989cdc934947f492811/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6560.00 ((KJ_SP3_QFE-OD).171228-1456 )
7+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/9e7a839d91dd474a8631dfef6abca4501/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6560.00 ((KJ_SP3_QFE-OD).171228-1456 )
8+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/cc4bfc0743fc46b392fa0fdb7c7826452/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6560.00 ((KJ_SP3_QFE-OD).171228-1456 )
9+
```
10+
11+
# SQL Server 2008 R2 SP3 Security update January 6, 2018 - 10.50.6560.0 - x86 (4057113)
12+
``` powershell
13+
# SQL Server 2008 R2 SP3 Security update January 6, 2018 - 10.50.6560.0 - x86 (4057113)
14+
$outputFolder = 'c:\sqlsyms\10.50.6560.0\x86' # <<change this output folder if needed>>'
15+
mkdir -f $outputFolder
16+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/ef09e694a6c54677a0e350aa61328a851/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6560.00 ((KJ_SP3_QFE-OD).171228-1537 )
17+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/a0dd581a069a4f46892922b421e679d41/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6560.00 ((KJ_SP3_QFE-OD).171228-1537 )
18+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/31933e3ce06745e1a57659e51088a0082/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6560.00 ((KJ_SP3_QFE-OD).171228-1537 )
19+
```
20+
21+
# SQL Server 2008 R2 SP3 Hotfix KB 3146034 - 10.50.6542.0 - x64 (3146034)
22+
``` powershell
23+
# SQL Server 2008 R2 SP3 Hotfix KB 3146034 - 10.50.6542.0 - x64 (3146034)
24+
$outputFolder = 'c:\sqlsyms\10.50.6542.0\x64' # <<change this output folder if needed>>'
25+
mkdir -f $outputFolder
26+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/4f088282518843b79e0478994de908221/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6542.00 ((KJ_SP3_QFE-OD).160222-1803 )
27+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/ded28d8ceae641748aec32fb45cb2b451/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6542.00 ((KJ_SP3_QFE-OD).160222-1803 )
28+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/1efb80e5273747c397f6185ab6670c9d2/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6542.00 ((KJ_SP3_QFE-OD).160222-1803 )
29+
```
30+
31+
# SQL Server 2008 R2 SP3 Hotfix KB 3146034 - 10.50.6542.0 - x86 (3146034)
32+
``` powershell
33+
# SQL Server 2008 R2 SP3 Hotfix KB 3146034 - 10.50.6542.0 - x86 (3146034)
34+
$outputFolder = 'c:\sqlsyms\10.50.6542.0\x86' # <<change this output folder if needed>>'
35+
mkdir -f $outputFolder
36+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/989ad268055f459aa1fd4d1eea34c6ae1/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6542.00 ((KJ_SP3_QFE-OD).160222-1804 )
37+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/569d9d76538b4106a8c414bf7dcdbe511/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6542.00 ((KJ_SP3_QFE-OD).160222-1804 )
38+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/33f28fb385a04fd5afdc44264428efcb2/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6542.00 ((KJ_SP3_QFE-OD).160222-1804 )
39+
```
40+
41+
# SQL Server 2008 R2 SP3 MS15-058: Security update QFE: July 14, 2015 - 10.50.6529.0 - x64 (3045314)
42+
``` powershell
43+
# SQL Server 2008 R2 SP3 MS15-058: Security update QFE: July 14, 2015 - 10.50.6529.0 - x64 (3045314)
44+
$outputFolder = 'c:\sqlsyms\10.50.6529.0\x64' # <<change this output folder if needed>>'
45+
mkdir -f $outputFolder
46+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/6fd8bc7e6da241f9acfef95aa7529e671/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6529.00 ((KJ_SP3_QFE-OD).150319-1313 )
47+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/afa19b0c44e54bef8028f5aae687c1751/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6529.00 ((KJ_SP3_QFE-OD).150319-1313 )
48+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/282885315f3e4925a0753fdd1e2eae612/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6529.00 ((KJ_SP3_QFE-OD).150319-1313 )
49+
```
50+
51+
# SQL Server 2008 R2 SP3 MS15-058: Security update QFE: July 14, 2015 - 10.50.6529.0 - x86 (3045314)
52+
``` powershell
53+
# SQL Server 2008 R2 SP3 MS15-058: Security update QFE: July 14, 2015 - 10.50.6529.0 - x86 (3045314)
54+
$outputFolder = 'c:\sqlsyms\10.50.6529.0\x86' # <<change this output folder if needed>>'
55+
mkdir -f $outputFolder
56+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/57832ff449b14214bfbb5b3976147d2c1/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6529.00 ((KJ_SP3_QFE-OD).150319-1314 )
57+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/bb45c06675b04636aeaa71423c08c0bd1/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6529.00 ((KJ_SP3_QFE-OD).150319-1314 )
58+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/37b52eaf08284c23bdfda05c7b5bd0f52/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6529.00 ((KJ_SP3_QFE-OD).150319-1314 )
59+
```
60+
61+
# SQL Server 2008 R2 SP3 Hotfix KB3033860 - 10.50.6525.0 - x64 (3033860)
62+
``` powershell
63+
# SQL Server 2008 R2 SP3 Hotfix KB3033860 - 10.50.6525.0 - x64 (3033860)
64+
$outputFolder = 'c:\sqlsyms\10.50.6525.0\x64' # <<change this output folder if needed>>'
65+
mkdir -f $outputFolder
66+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/fd1e350610034849822cdb74a90e3f4a1/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6525.00 ((KJ_SP3_QFE-OD).150123-1315 )
67+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/8e5d923c1e744b2395d0faebb7b27aed1/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6525.00 ((KJ_SP3_QFE-OD).150123-1315 )
68+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/a80a08b5910a4b7c81bca4f7ea5737cb2/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6525.00 ((KJ_SP3_QFE-OD).150123-1315 )
69+
```
70+
71+
# SQL Server 2008 R2 SP3 Hotfix KB3033860 - 10.50.6525.0 - x86 (3033860)
72+
``` powershell
73+
# SQL Server 2008 R2 SP3 Hotfix KB3033860 - 10.50.6525.0 - x86 (3033860)
74+
$outputFolder = 'c:\sqlsyms\10.50.6525.0\x86' # <<change this output folder if needed>>'
75+
mkdir -f $outputFolder
76+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/5705adbab9074c1a8aa3f8086b0b9e351/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6525.00 ((KJ_SP3_QFE-OD).150123-1339 )
77+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/24b6b9fb3e3248459032337981a515701/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6525.00 ((KJ_SP3_QFE-OD).150123-1339 )
78+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/41239188b6494cedb627d7bb0a7bd2a12/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6525.00 ((KJ_SP3_QFE-OD).150123-1339 )
79+
```
80+
81+
# SQL Server 2008 R2 SP3 SP3 - 10.50.6000.34 - x64 (2979597)
82+
``` powershell
83+
# SQL Server 2008 R2 SP3 SP3 - 10.50.6000.34 - x64 (2979597)
84+
$outputFolder = 'c:\sqlsyms\10.50.6000.34\x64' # <<change this output folder if needed>>'
85+
mkdir -f $outputFolder
86+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/bf37a41b8a974a9a90ac6aaef464011a1/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6000.034 ((KJ_SP3).140819-1214 )
87+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/21cf8932b0184570858de406b79475031/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6000.034 ((KJ_SP3).140819-1214 )
88+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/293c90c8918b4aaaa39ea16237b39eff2/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6000.034 ((KJ_SP3).140819-1214 )
89+
```
90+
91+
# SQL Server 2008 R2 SP3 SP3 - 10.50.6000.34 - x86 (2979597)
92+
``` powershell
93+
# SQL Server 2008 R2 SP3 SP3 - 10.50.6000.34 - x86 (2979597)
94+
$outputFolder = 'c:\sqlsyms\10.50.6000.34\x86' # <<change this output folder if needed>>'
95+
mkdir -f $outputFolder
96+
if (-not (Test-Path "$outputFolder\SqlAccess.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SqlAccess.pdb/2a05437dc1204cff970a2275d6335ada1/SqlAccess.pdb' -OutFile "$outputFolder\SqlAccess.pdb" } # File version 2009.0100.6000.034 ((KJ_SP3).140819-1213 )
97+
if (-not (Test-Path "$outputFolder\SQLOS.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/SQLOS.pdb/682d729f9e6e43f3a47a9c158e905e171/SQLOS.pdb' -OutFile "$outputFolder\SQLOS.pdb" } # File version 2009.0100.6000.034 ((KJ_SP3).140819-1213 )
98+
if (-not (Test-Path "$outputFolder\sqlservr.pdb")) { Invoke-WebRequest -uri 'https://msdl.microsoft.com/download/symbols/sqlservr.pdb/5b7a3d00503e4924bd365f20b6ea87642/sqlservr.pdb' -OutFile "$outputFolder\sqlservr.pdb" } # File version 2009.0100.6000.034 ((KJ_SP3).140819-1213 )
99+
```
100+

0 commit comments

Comments
 (0)