├── .gitattributes ├── 9781484250884.jpg ├── Chapter 1 ├── Carter_Listing_1-1.ps1 ├── Carter_Listing_1-2.ps1 └── Carter_Listing_1-3.ps1 ├── Chapter 10 ├── Carter_Listing_10-1.sql ├── Carter_Listing_10-10.sql ├── Carter_Listing_10-11.sql ├── Carter_Listing_10-12.sql ├── Carter_Listing_10-13.sql ├── Carter_Listing_10-14.sql ├── Carter_Listing_10-15.sql ├── Carter_Listing_10-16.sql ├── Carter_Listing_10-17.sql ├── Carter_Listing_10-18.sql ├── Carter_Listing_10-19.sql ├── Carter_Listing_10-2.sql ├── Carter_Listing_10-20.sql ├── Carter_Listing_10-21.sql ├── Carter_Listing_10-22.sql ├── Carter_Listing_10-23.sql ├── Carter_Listing_10-24.sql ├── Carter_Listing_10-25.sql ├── Carter_Listing_10-26.sql ├── Carter_Listing_10-27.sql ├── Carter_Listing_10-28.sql ├── Carter_Listing_10-29.sql ├── Carter_Listing_10-3.sql ├── Carter_Listing_10-30.sql ├── Carter_Listing_10-31.sql ├── Carter_Listing_10-32.sql ├── Carter_Listing_10-4.sql ├── Carter_Listing_10-5.sql ├── Carter_Listing_10-6.sql ├── Carter_Listing_10-7.sql ├── Carter_Listing_10-8.sql └── Carter_Listing_10-9.sql ├── Chapter 11 ├── Carter_Listing_11-1.sql ├── Carter_Listing_11-10.sql ├── Carter_Listing_11-11.sql ├── Carter_Listing_11-12.sql ├── Carter_Listing_11-13.ps1 ├── Carter_Listing_11-14.ps1 ├── Carter_Listing_11-15.ps1 ├── Carter_Listing_11-16.ps1 ├── Carter_Listing_11-17.ps1 ├── Carter_Listing_11-18.sql ├── Carter_Listing_11-19.sql ├── Carter_Listing_11-2.sql ├── Carter_Listing_11-20.ps1 ├── Carter_Listing_11-21.sql ├── Carter_Listing_11-3.sql ├── Carter_Listing_11-4.sql ├── Carter_Listing_11-5.sql ├── Carter_Listing_11-6.sql ├── Carter_Listing_11-7.sql ├── Carter_Listing_11-8.sql └── Carter_Listing_11-9.sql ├── Chapter 12 ├── Carter_Listing_12-1.sql ├── Carter_Listing_12-10.sql ├── Carter_Listing_12-11.sql ├── Carter_Listing_12-12.sql ├── Carter_Listing_12-13.sql ├── Carter_Listing_12-14.sql ├── Carter_Listing_12-15.sql ├── Carter_Listing_12-16.sql ├── Carter_Listing_12-17.sql ├── Carter_Listing_12-18.sql ├── Carter_Listing_12-19.sql ├── Carter_Listing_12-2.sql ├── Carter_Listing_12-3.sql ├── Carter_Listing_12-4.sql ├── Carter_Listing_12-5.sql ├── Carter_Listing_12-6.sql ├── Carter_Listing_12-7.sql ├── Carter_Listing_12-8.sql └── Carter_Listing_12-9.sql ├── Chapter 13 └── Carter_Listing_13-1.sql ├── Chapter 14 ├── Carter_Listing_14-1.sql ├── Carter_Listing_14-10.sql ├── Carter_Listing_14-11.sql ├── Carter_Listing_14-12.sql ├── Carter_Listing_14-13.sql ├── Carter_Listing_14-14.sql ├── Carter_Listing_14-15.sql ├── Carter_Listing_14-16.sql ├── Carter_Listing_14-17.sql ├── Carter_Listing_14-18.sql ├── Carter_Listing_14-19.sql ├── Carter_Listing_14-2.ps1 ├── Carter_Listing_14-20.sql ├── Carter_Listing_14-21.sql ├── Carter_Listing_14-22.sql ├── Carter_Listing_14-3.sql ├── Carter_Listing_14-4.sql ├── Carter_Listing_14-5.sh ├── Carter_Listing_14-6.sql ├── Carter_Listing_14-7.sh ├── Carter_Listing_14-8.sh └── Carter_Listing_14-9.sql ├── Chapter 15 ├── Carter_Listing_15-1.sql ├── Carter_Listing_15-10.sql ├── Carter_Listing_15-11.sql ├── Carter_Listing_15-2.sql ├── Carter_Listing_15-3.sql ├── Carter_Listing_15-4.sql ├── Carter_Listing_15-5.sql ├── Carter_Listing_15-6.sql ├── Carter_Listing_15-7.sql ├── Carter_Listing_15-8.sql └── Carter_Listing_15-9.sql ├── Chapter 16 ├── Carter_Listing_16-1.sql ├── Carter_Listing_16-2.sql ├── Carter_Listing_16-3.sql ├── Carter_Listing_16-4.sql ├── Carter_Listing_16-5.sql ├── Carter_Listing_16-6.sql └── Carter_Listing_16-7.sql ├── Chapter 17 ├── Carter_Listing_17-1.sql ├── Carter_Listing_17-10.sql ├── Carter_Listing_17-11.sql ├── Carter_Listing_17-12.sql ├── Carter_Listing_17-13.sql ├── Carter_Listing_17-14.sql ├── Carter_Listing_17-15.sql ├── Carter_Listing_17-16.sql ├── Carter_Listing_17-17.sql ├── Carter_Listing_17-18.sql ├── Carter_Listing_17-19.sql ├── Carter_Listing_17-2.sql ├── Carter_Listing_17-20.sql ├── Carter_Listing_17-21.sql ├── Carter_Listing_17-22.sql ├── Carter_Listing_17-23.sql ├── Carter_Listing_17-24.cmd ├── Carter_Listing_17-3.sql ├── Carter_Listing_17-4.sql ├── Carter_Listing_17-5.sql ├── Carter_Listing_17-6.sql ├── Carter_Listing_17-7.sql ├── Carter_Listing_17-8.sql └── Carter_Listing_17-9.sql ├── Chapter 18 ├── Carter_Listing_18-1.sql ├── Carter_Listing_18-10.sql ├── Carter_Listing_18-11.sql ├── Carter_Listing_18-12.sql ├── Carter_Listing_18-13.sql ├── Carter_Listing_18-14.sql ├── Carter_Listing_18-2.sql ├── Carter_Listing_18-3.sql ├── Carter_Listing_18-4.sql ├── Carter_Listing_18-5.sql ├── Carter_Listing_18-6.sql ├── Carter_Listing_18-7.sql ├── Carter_Listing_18-8.sql └── Carter_Listing_18-9.sql ├── Chapter 19 ├── Carter_Listing_19-1.sql ├── Carter_Listing_19-10.sql ├── Carter_Listing_19-11.cmd ├── Carter_Listing_19-2.sql ├── Carter_Listing_19-3.sql ├── Carter_Listing_19-4.sql ├── Carter_Listing_19-5.sql ├── Carter_Listing_19-6.sql ├── Carter_Listing_19-7.sql ├── Carter_Listing_19-8.sql └── Carter_Listing_19-9.cmd ├── Chapter 2 ├── Carter_Listing_2-1.sql ├── Carter_Listing_2-2.sql └── Carter_Listing_2-3.sql ├── Chapter 21 ├── Carter_Listing_21-1.xml ├── Carter_Listing_21-10.sql ├── Carter_Listing_21-11.cmd ├── Carter_Listing_21-12.cmd ├── Carter_Listing_21-13.cmd ├── Carter_Listing_21-2.xml ├── Carter_Listing_21-3.xml ├── Carter_Listing_21-4.xml ├── Carter_Listing_21-5.sql ├── Carter_Listing_21-6.sql ├── Carter_Listing_21-7.sql ├── Carter_Listing_21-8.sql └── Carter_Listing_21-9.sql ├── Chapter 22 ├── Carter_Listing_22-1.sql ├── Carter_Listing_22-10.sql ├── Carter_Listing_22-11.sql ├── Carter_Listing_22-12.sql ├── Carter_Listing_22-13.sql ├── Carter_Listing_22-2.ps1 ├── Carter_Listing_22-3.cmd ├── Carter_Listing_22-4.sql ├── Carter_Listing_22-5.sql ├── Carter_Listing_22-6.ps1 ├── Carter_Listing_22-7.sql ├── Carter_Listing_22-8.sql └── Carter_Listing_22-9.sql ├── Chapter 23 ├── Carter_Listing_23-1.sql ├── Carter_Listing_23-10.sql ├── Carter_Listing_23-11.ps1 ├── Carter_Listing_23-2.sql ├── Carter_Listing_23-3.sql ├── Carter_Listing_23-4.sql ├── Carter_Listing_23-5.sql ├── Carter_Listing_23-6.sql ├── Carter_Listing_23-7.sql ├── Carter_Listing_23-8.sql └── Carter_Listing_23-9.sql ├── Chapter 24 ├── Carter_Listing_24-1.sql ├── Carter_Listing_24-10.sql ├── Carter_Listing_24-2.sql ├── Carter_Listing_24-3.sql ├── Carter_Listing_24-4.sql ├── Carter_Listing_24-5.sql ├── Carter_Listing_24-6.sql ├── Carter_Listing_24-7.sql ├── Carter_Listing_24-8.sql └── Carter_Listing_24-9.sql ├── Chapter 3 ├── Carter_Listing_3-1.ps1 ├── Carter_Listing_3-10.ps1 ├── Carter_Listing_3-11.ps1 ├── Carter_Listing_3-12.ps1 ├── Carter_Listing_3-13.ps1 ├── Carter_Listing_3-14.ps1 ├── Carter_Listing_3-2.ps1 ├── Carter_Listing_3-3.ps1 ├── Carter_Listing_3-4.ps1 ├── Carter_Listing_3-5.ps1 ├── Carter_Listing_3-6.ps1 ├── Carter_Listing_3-7.ini ├── Carter_Listing_3-8.ps1 └── Carter_Listing_3-9.ini ├── Chapter 5 ├── Carter_Listing_5-1.sql ├── Carter_Listing_5-10.sql ├── Carter_Listing_5-11.sql ├── Carter_Listing_5-2.sql ├── Carter_Listing_5-3.sql ├── Carter_Listing_5-4.sql ├── Carter_Listing_5-5.sql ├── Carter_Listing_5-6.sql ├── Carter_Listing_5-7.sql ├── Carter_Listing_5-8.ps1 └── Carter_Listing_5-9.ps1 ├── Chapter 6 ├── Carter_Listing_6-1.sql ├── Carter_Listing_6-10.sql ├── Carter_Listing_6-11.sql ├── Carter_Listing_6-12.sql ├── Carter_Listing_6-13.sql ├── Carter_Listing_6-14.sql ├── Carter_Listing_6-15.sql ├── Carter_Listing_6-16.sql ├── Carter_Listing_6-17.sql ├── Carter_Listing_6-18.sql ├── Carter_Listing_6-19.sql ├── Carter_Listing_6-2.sql ├── Carter_Listing_6-20.sql ├── Carter_Listing_6-3.sql ├── Carter_Listing_6-4.sql ├── Carter_Listing_6-5.sql ├── Carter_Listing_6-6.sql ├── Carter_Listing_6-7.sql ├── Carter_Listing_6-8.sql └── Carter_Listing_6-9.sql ├── Chapter 7 ├── Carter_Listing_7-1.sql ├── Carter_Listing_7-10.sql ├── Carter_Listing_7-11.sql ├── Carter_Listing_7-12.sql ├── Carter_Listing_7-13.sql ├── Carter_Listing_7-14.sql ├── Carter_Listing_7-15.sql ├── Carter_Listing_7-16.sql ├── Carter_Listing_7-17.sql ├── Carter_Listing_7-18.sql ├── Carter_Listing_7-19.sql ├── Carter_Listing_7-2.sql ├── Carter_Listing_7-20.sql ├── Carter_Listing_7-21.sql ├── Carter_Listing_7-3.sql ├── Carter_Listing_7-4.sql ├── Carter_Listing_7-5.sql ├── Carter_Listing_7-6.sql ├── Carter_Listing_7-7.sql ├── Carter_Listing_7-8.sql └── Carter_Listing_7-9.sql ├── Chapter 8 ├── Carter_Listing_8-1.sql ├── Carter_Listing_8-10.sql ├── Carter_Listing_8-11.sql ├── Carter_Listing_8-12.sql ├── Carter_Listing_8-13.sql ├── Carter_Listing_8-14.sql ├── Carter_Listing_8-15.sql ├── Carter_Listing_8-16.sql ├── Carter_Listing_8-17.sql ├── Carter_Listing_8-18.sql ├── Carter_Listing_8-19.sql ├── Carter_Listing_8-2.sql ├── Carter_Listing_8-20.sql ├── Carter_Listing_8-21.sql ├── Carter_Listing_8-22.sql ├── Carter_Listing_8-23.sql ├── Carter_Listing_8-24.sql ├── Carter_Listing_8-25.sql ├── Carter_Listing_8-3.sql ├── Carter_Listing_8-4.sql ├── Carter_Listing_8-5.sql ├── Carter_Listing_8-6.sql ├── Carter_Listing_8-7.sql ├── Carter_Listing_8-8.sql └── Carter_Listing_8-9.sql ├── Chapter 9 ├── Carter_Listing_9-1.sql ├── Carter_Listing_9-10.sql ├── Carter_Listing_9-11.sql ├── Carter_Listing_9-12.sql ├── Carter_Listing_9-13.sql ├── Carter_Listing_9-14.sql ├── Carter_Listing_9-15.sql ├── Carter_Listing_9-2.sql ├── Carter_Listing_9-3.sql ├── Carter_Listing_9-4.sql ├── Carter_Listing_9-5.ps1 ├── Carter_Listing_9-6.sql ├── Carter_Listing_9-7.ps1 ├── Carter_Listing_9-8.sql └── Carter_Listing_9-9.sql ├── Contributing.md ├── LICENSE.txt └── README.md /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/.gitattributes -------------------------------------------------------------------------------- /9781484250884.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/9781484250884.jpg -------------------------------------------------------------------------------- /Chapter 1/Carter_Listing_1-1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 1/Carter_Listing_1-1.ps1 -------------------------------------------------------------------------------- /Chapter 1/Carter_Listing_1-2.ps1: -------------------------------------------------------------------------------- 1 | powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c -------------------------------------------------------------------------------- /Chapter 1/Carter_Listing_1-3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 1/Carter_Listing_1-3.ps1 -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-1.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-10.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-11.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-12.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-13.sql: -------------------------------------------------------------------------------- 1 | USE Chapter10 2 | GO 3 | 4 | CREATE USER ContainedUser WITH PASSWORD=N'Pa$$w0rd', DEFAULT_SCHEMA=dbo ; 5 | GO 6 | -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-14.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-15.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-15.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-16.sql: -------------------------------------------------------------------------------- 1 | ALTER DATABASE Chapter10 SET TRUSTWORTHY ON ; -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-17.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-17.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-18.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-18.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-19.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-19.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-2.sql: -------------------------------------------------------------------------------- 1 | ALTER LOGIN sa WITH NAME = PROSQLADMINSA ; -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-20.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-20.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-21.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-21.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-22.sql: -------------------------------------------------------------------------------- 1 | GRANT UNMASK TO Danielle ; 2 | -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-23.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-23.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-24.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-24.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-25.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-25.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-26.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-26.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-27.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-27.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-28.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-28.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-29.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-29.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-3.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-30.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-30.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-31.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-31.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-32.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-32.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-4.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-5.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-6.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-7.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-8.sql -------------------------------------------------------------------------------- /Chapter 10/Carter_Listing_10-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 10/Carter_Listing_10-9.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-1.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-10.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-11.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-12.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-13.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-13.ps1 -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-14.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-14.ps1 -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-15.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-15.ps1 -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-16.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-16.ps1 -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-17.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-17.ps1 -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-18.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-18.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-19.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-19.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-2.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-20.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-20.ps1 -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-21.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-21.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-3.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-4.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-5.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-6.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-7.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-8.sql -------------------------------------------------------------------------------- /Chapter 11/Carter_Listing_11-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 11/Carter_Listing_11-9.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-1.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-10.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-11.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-12.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-13.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-13.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-14.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-15.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-15.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-16.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-16.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-17.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-17.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-18.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-18.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-19.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-19.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-2.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-3.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-4.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-5.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-6.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-7.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-8.sql -------------------------------------------------------------------------------- /Chapter 12/Carter_Listing_12-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 12/Carter_Listing_12-9.sql -------------------------------------------------------------------------------- /Chapter 13/Carter_Listing_13-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 13/Carter_Listing_13-1.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-1.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-10.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-11.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-12.sql: -------------------------------------------------------------------------------- 1 | ALTER AVAILABILITY GROUP Linux_AOAG GRANT CREATE ANY DATABASE ; 2 | GO 3 | -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-13.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-13.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-14.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-15.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-15.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-16.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-16.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-17.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-17.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-18.sql: -------------------------------------------------------------------------------- 1 | ALTER AVAILABILITY GROUP App2 FAILOVER ; 2 | GO 3 | -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-19.sql: -------------------------------------------------------------------------------- 1 | ALTER AVAILABILITY GROUP App2 FORCE_FAILOVER_ALLOW_DATA_LOSS ; -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-2.ps1: -------------------------------------------------------------------------------- 1 | Enable-SqlAlwaysOn -Path SQLSERVER:\SQL\CLUSTERNODE1\PRIMARYREPLICA -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-20.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-20.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-21.sql: -------------------------------------------------------------------------------- 1 | ALTER DATABASE Chapter14App2Customers SET HADR OFF ; -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-22.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-22.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-3.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-4.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-5.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-5.sh -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-6.sql -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-7.sh: -------------------------------------------------------------------------------- 1 | Sudo chmod -R 777 /var/opt/mssql/data -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-8.sh: -------------------------------------------------------------------------------- 1 | Scp aoag_certificate.* pete@ubuntu-secondary:/var/opt/mssql/data -------------------------------------------------------------------------------- /Chapter 14/Carter_Listing_14-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 14/Carter_Listing_14-9.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-1.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-10.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-11.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-2.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-3.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-4.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-5.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-6.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-7.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-8.sql -------------------------------------------------------------------------------- /Chapter 15/Carter_Listing_15-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 15/Carter_Listing_15-9.sql -------------------------------------------------------------------------------- /Chapter 16/Carter_Listing_16-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 16/Carter_Listing_16-1.sql -------------------------------------------------------------------------------- /Chapter 16/Carter_Listing_16-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 16/Carter_Listing_16-2.sql -------------------------------------------------------------------------------- /Chapter 16/Carter_Listing_16-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 16/Carter_Listing_16-3.sql -------------------------------------------------------------------------------- /Chapter 16/Carter_Listing_16-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 16/Carter_Listing_16-4.sql -------------------------------------------------------------------------------- /Chapter 16/Carter_Listing_16-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 16/Carter_Listing_16-5.sql -------------------------------------------------------------------------------- /Chapter 16/Carter_Listing_16-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 16/Carter_Listing_16-6.sql -------------------------------------------------------------------------------- /Chapter 16/Carter_Listing_16-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 16/Carter_Listing_16-7.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-1.sql: -------------------------------------------------------------------------------- 1 | SELECT name 2 | FROM sys.databases 3 | WHERE recovery_model_desc = 'FULL' ; 4 | -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-10.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-11.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-12.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-13.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-13.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-14.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-15.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-15.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-16.sql: -------------------------------------------------------------------------------- 1 | DBCC SQLPERF ('sys.dm_os_wait_stats', CLEAR) ; -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-17.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-17.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-18.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-18.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-19.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-19.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-2.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-20.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-20.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-21.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-21.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-22.sql: -------------------------------------------------------------------------------- 1 | EXEC dbo.DynamicSnapshot 'Chapter17', 2 ; -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-23.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-23.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-24.cmd: -------------------------------------------------------------------------------- 1 | Sqlcmd -v DBName="Chapter17" -I c:\RebuildIndexes.sql -S ./PROSQLADMIN -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-3.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-4.sql: -------------------------------------------------------------------------------- 1 | USE Chapter16 2 | GO 3 | 4 | SELECT DATALENGTH(LastName) 5 | FROM dbo.Customers ; 6 | -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-5.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-6.sql: -------------------------------------------------------------------------------- 1 | SELECT * 2 | FROM sys.dm_server_registry 3 | WHERE value_name LIKE 'SQLArg%' ; 4 | -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-7.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-8.sql -------------------------------------------------------------------------------- /Chapter 17/Carter_Listing_17-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 17/Carter_Listing_17-9.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-1.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-10.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-11.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-12.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-13.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-13.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-14.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-2.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-3.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-4.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-5.sql: -------------------------------------------------------------------------------- 1 | ALTER DATABASE Chapter18 2 | SET DELAYED_DURABILITY = ALLOWED ; 3 | -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-6.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-7.sql: -------------------------------------------------------------------------------- 1 | ALTER DATABASE Chapter18 2 | SET MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT = ON ; 3 | -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 18/Carter_Listing_18-8.sql -------------------------------------------------------------------------------- /Chapter 18/Carter_Listing_18-9.sql: -------------------------------------------------------------------------------- 1 | ALTER DATABASE Chapter18 2 | SET MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT=OFF 3 | GO 4 | -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-1.sql -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-10.sql: -------------------------------------------------------------------------------- 1 | ALTER EVENT SESSION Statements_with_Perf_Counters 2 | ON SERVER 3 | STATE = stop; 4 | -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-11.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-11.cmd -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-2.sql -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-3.sql -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-4.sql -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-5.sql -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-6.sql -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-7.sql -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 19/Carter_Listing_19-8.sql -------------------------------------------------------------------------------- /Chapter 19/Carter_Listing_19-9.cmd: -------------------------------------------------------------------------------- 1 | bcp chapter19.dbo.customers out c:\mssql\dump.dat -S .\PROSQLADMIN -T -c -------------------------------------------------------------------------------- /Chapter 2/Carter_Listing_2-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 2/Carter_Listing_2-1.sql -------------------------------------------------------------------------------- /Chapter 2/Carter_Listing_2-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 2/Carter_Listing_2-2.sql -------------------------------------------------------------------------------- /Chapter 2/Carter_Listing_2-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 2/Carter_Listing_2-3.sql -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-1.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-1.xml -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-10.sql: -------------------------------------------------------------------------------- 1 | ALTER EVENT SESSION DReplay 2 | ON SERVER 3 | STATE = stop; 4 | GO 5 | -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-11.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-11.cmd -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-12.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-12.cmd -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-13.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-13.cmd -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-2.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-2.xml -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-3.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-3.xml -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-4.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-4.xml -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-5.sql -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-6.sql -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-7.sql -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-8.sql -------------------------------------------------------------------------------- /Chapter 21/Carter_Listing_21-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 21/Carter_Listing_21-9.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-1.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-10.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-11.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-12.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-13.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-13.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-2.ps1 -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-3.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-3.cmd -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-4.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-5.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-6.ps1: -------------------------------------------------------------------------------- 1 | Get-Service | Where {$_.name -eq "SQLBrowser"} -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-7.sql: -------------------------------------------------------------------------------- 1 | EXEC sp_start_job @job_name=N'BackupAndCheckBrowser' ; -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-8.sql -------------------------------------------------------------------------------- /Chapter 22/Carter_Listing_22-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 22/Carter_Listing_22-9.sql -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-1.sql: -------------------------------------------------------------------------------- 1 | SELECT name 2 | FROM msdb.dbo.syspolicy_management_facets ; 3 | -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 23/Carter_Listing_23-10.sql -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-11.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 23/Carter_Listing_23-11.ps1 -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 23/Carter_Listing_23-2.sql -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-3.sql: -------------------------------------------------------------------------------- 1 | SELECT name 2 | FROM sys.Databases ; 3 | -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-4.sql: -------------------------------------------------------------------------------- 1 | CREATE DATABASE BrokenPolicy ; -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-5.sql: -------------------------------------------------------------------------------- 1 | EXEC sp_configure 'nested triggers', 1 ; 2 | RECONFIGURE 3 | -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 23/Carter_Listing_23-6.sql -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 23/Carter_Listing_23-7.sql -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 23/Carter_Listing_23-8.sql -------------------------------------------------------------------------------- /Chapter 23/Carter_Listing_23-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 23/Carter_Listing_23-9.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-1.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-10.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-2.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-3.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-4.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-5.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-6.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-7.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-8.sql -------------------------------------------------------------------------------- /Chapter 24/Carter_Listing_24-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 24/Carter_Listing_24-9.sql -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-1.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-1.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-10.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-10.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-11.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-11.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-12.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-12.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-13.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-13.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-14.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-14.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-2.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-3.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-4.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-4.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-5.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-5.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-6.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-6.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-7.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-7.ini -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-8.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-8.ps1 -------------------------------------------------------------------------------- /Chapter 3/Carter_Listing_3-9.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 3/Carter_Listing_3-9.ini -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-1.sql: -------------------------------------------------------------------------------- 1 | EXEC sp_configure 'show advanced options', 1 2 | RECONFIGURE 3 | -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 5/Carter_Listing_5-10.sql -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 5/Carter_Listing_5-11.sql -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-2.sql: -------------------------------------------------------------------------------- 1 | EXEC sp_configure 'affinity mask', 15 2 | RECONFIGURE 3 | -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 5/Carter_Listing_5-3.sql -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-4.sql: -------------------------------------------------------------------------------- 1 | EXEC sys.sp_configure max degree of parallelism', 8 2 | RECONFIGURE 3 | -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-5.sql: -------------------------------------------------------------------------------- 1 | EXEC sp_configure 'cost threshold for parallelism', 10 2 | RECONFIGURE 3 | -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 5/Carter_Listing_5-6.sql -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 5/Carter_Listing_5-7.sql -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-8.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 5/Carter_Listing_5-8.ps1 -------------------------------------------------------------------------------- /Chapter 5/Carter_Listing_5-9.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 5/Carter_Listing_5-9.ps1 -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-1.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-10.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-11.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-12.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-13.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-13.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-14.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-15.sql: -------------------------------------------------------------------------------- 1 | ALTER DATABASE Chapter6 SET MIXED_PAGE_ALLOCATION OFF -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-16.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-16.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-17.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-17.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-18.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-18.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-19.sql: -------------------------------------------------------------------------------- 1 | SELECT log_reuse_wait_desc 2 | FROM sys.databases 3 | WHERE name = 'Chapter6LogFragmentation'; 4 | -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-2.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-20.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-20.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-3.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-4.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-5.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-6.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-7.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-8.sql -------------------------------------------------------------------------------- /Chapter 6/Carter_Listing_6-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 6/Carter_Listing_6-9.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-1.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-10.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-11.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-12.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE ExistingOrders 2 | REBUILD WITH (DATA_COMPRESSION = ROW) ; 3 | -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-13.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-13.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-14.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-15.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-15.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-16.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-16.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-17.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-17.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-18.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-18.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-19.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-19.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-2.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-20.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-20.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-21.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-21.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-3.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-4.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-5.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-6.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-7.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-8.sql -------------------------------------------------------------------------------- /Chapter 7/Carter_Listing_7-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 7/Carter_Listing_7-9.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-1.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-10.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-11.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-12.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-13.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-13.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-14.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-15.sql: -------------------------------------------------------------------------------- 1 | ALTER INDEX NCI_CustomerID ON dbo.OrdersDisc REBUILD WITH(MAXDOP = 1) ; -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-16.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-16.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-17.sql: -------------------------------------------------------------------------------- 1 | ALTER INDEX NCI_CustomerID ON dbo.OrdersDisc PAUSE -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-18.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-18.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-19.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-19.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-2.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-20.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-20.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-21.sql: -------------------------------------------------------------------------------- 1 | ALTER INDEX NCI_Part_CustID ON dbo.OrdersDisc REBUILD PARTITION = 1 ; -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-22.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-22.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-23.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-23.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-24.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-24.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-25.sql: -------------------------------------------------------------------------------- 1 | EXEC sp_updatestats 'RESAMPLE' ; -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-3.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-4.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-5.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-5.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-6.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-7.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-7.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-8.sql -------------------------------------------------------------------------------- /Chapter 8/Carter_Listing_8-9.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 8/Carter_Listing_8-9.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-1.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-10.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-10.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-11.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-11.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-12.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-12.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-13.sql: -------------------------------------------------------------------------------- 1 | DBCC CHECKIDENT('CorruptTable',NORESEED) ; -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-14.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-14.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-15.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-15.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-2.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-3.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-4.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-5.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-5.ps1 -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-6.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Chapter 9/Carter_Listing_9-6.sql -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-7.ps1: -------------------------------------------------------------------------------- 1 | .\setup.exe /ACTION=repair /INSTANCENAME=PROSQLADMIN /q -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-8.sql: -------------------------------------------------------------------------------- 1 | USE Chapter9 2 | GO 3 | 4 | DBCC CHECKDB WITH ESTIMATEONLY ; 5 | -------------------------------------------------------------------------------- /Chapter 9/Carter_Listing_9-9.sql: -------------------------------------------------------------------------------- 1 | USE Chapter9 2 | GO 3 | 4 | DBCC CHECKDB ; 5 | -------------------------------------------------------------------------------- /Contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/Contributing.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/pro-sql-server-2019-admin/HEAD/README.md --------------------------------------------------------------------------------