Skip to content

Commit d634abd

Browse files
Merge pull request #538 from erikdarlingdata/dev
Dev
2 parents ebff55c + c294416 commit d634abd

File tree

13 files changed

+228
-169
lines changed

13 files changed

+228
-169
lines changed

Presentations/Defeating Parameter Sniffing/00 Demo.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ GO
635635
/*
636636
637637
This can be a parameter, depending on how you use it
638-
https://www.erikdarlingdata.com/sql-server/yet-another-post-about-local-variables/
638+
https://www.erikdarling.com/sql-server/yet-another-post-about-local-variables/
639639
640640
*/
641641
DECLARE
@@ -1634,8 +1634,8 @@ What we learned:
16341634

16351635
/*
16361636
1637-
* W: www.erikdarlingdata.com
1638-
* E: erik@erikdarlingdata.com
1637+
* W: www.erikdarling.com
1638+
* E: erik@erikdarling.com
16391639
* T: @erikdarlingdata
16401640
16411641
Demo database:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ All you need to do is hit F5 to get information about:
5151
* Any current THREADPOOL waits (best observed with the DAC)
5252
* Currently executing queries, along with other execution details
5353

54-
For a video walkthrough of the script and the results, [head over here](https://www.erikdarlingdata.com/sp_pressuredetector/).
54+
For a video walkthrough of the script and the results, [head over here](https://www.erikdarling.com/sp_pressuredetector/).
5555

5656
Current valid parameter details:
5757

@@ -100,7 +100,7 @@ Misuse of this procedure can harm performance. Be very careful about introducing
100100

101101
More resources:
102102
* For a video walkthrough of the procedure, code, etc. there's a [YouTube playlist here](https://www.youtube.com/playlist?list=PLt4QZ-7lfQifgpvqsa21WLt-u2tZlyoC_).
103-
* For a text-based adventure, head to [my site here](https://www.erikdarlingdata.com/sp_humanevents/).
103+
* For a text-based adventure, head to [my site here](https://www.erikdarling.com/sp_humanevents/).
104104

105105
Current valid parameter details:
106106
| parameter | name | description | valid_inputs | defaults |
@@ -248,7 +248,7 @@ More examples can be found here: [Examples](https://github.com/erikdarlingdata/D
248248

249249
More resources:
250250
* For a video walkthrough of the procedure, code, etc. there's a [YouTube playlist here](https://www.youtube.com/playlist?list=PLt4QZ-7lfQie1XZHEm0HN-Zt1S7LFEx1P).
251-
* For a text-based adventure, head to [my site here](https://www.erikdarlingdata.com/sp_quickiestore/).
251+
* For a text-based adventure, head to [my site here](https://www.erikdarling.com/sp_quickiestore/).
252252

253253
Current valid parameter details:
254254

sp_HealthParser/sp_HealthParser.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
348348
CONVERT(nchar(1), @azure),
349349
@mi_msg =
350350
CONVERT(nchar(1), @mi),
351-
@timestamp_utc_mode =
352-
CASE
351+
@timestamp_utc_mode =
352+
CASE
353353
WHEN EXISTS
354354
(
355355
SELECT
@@ -369,7 +369,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
369369
SERVERPROPERTY('PRODUCTVERSION')
370370
),
371371
4
372-
) > 17
372+
) > 16
373373
THEN 1
374374
ELSE 0
375375
END +
@@ -451,10 +451,10 @@ AND ca.utc_timestamp < @end_date';
451451

452452
IF @timestamp_utc_mode = 1
453453
SET @time_filter = N'
454-
AND CONVERT(datetimeoffset(7), fx.timestamp_utc) BETWEEN @start_date AND @end_date';
454+
AND CONVERT(datetimeoffset(7), fx.timestamp_utc) BETWEEN @start_date AND @end_date';
455455
ELSE
456456
SET @time_filter = '
457-
AND fx.timestamp_utc BETWEEN @start_date AND @end_date';
457+
AND fx.timestamp_utc BETWEEN @start_date AND @end_date';
458458
END;
459459

460460
SET @sql_template =

sp_HumanEvents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ EXECUTE dbo.sp_HumanEvents
112112

113113
## Resources
114114
* [YouTube playlist](https://www.youtube.com/playlist?list=PLt4QZ-7lfQifgpvqsa21WLt-u2tZlyoC_)
115-
* [Blog post](https://www.erikdarlingdata.com/sp_humanevents/)
115+
* [Blog post](https://www.erikdarling.com/sp_humanevents/)
116116

117117
---
118118

sp_HumanEvents/sp_HumanEvents.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ BEGIN
9898
SELECT N'misuse of this procedure can harm performance' UNION ALL
9999
SELECT N'be very careful about introducing observer overhead, especially when gathering query plans' UNION ALL
100100
SELECT N'be even more careful when setting up permanent sessions!' UNION ALL
101-
SELECT N'for additional support: https://github.com/erikdarlingdata/DarlingData/tree/main/sp_HumanEvents' UNION ALL
101+
SELECT N'for additional support: https://code.erikdarling.com' UNION ALL
102102
SELECT N'from your loving sql server consultant, erik darling: https://erikdarling.com';
103103

104104

sp_HumanEvents/sp_HumanEventsBlockViewer.sql

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ BEGIN
105105
SELECT 'it will also work with any other extended event session that captures blocking' UNION ALL
106106
SELECT 'just use the @session_name parameter to point me there' UNION ALL
107107
SELECT 'EXECUTE dbo.sp_HumanEventsBlockViewer @session_name = N''blocked_process_report'';' UNION ALL
108-
SELECT 'all scripts and documentation are available here: https://github.com/erikdarlingdata/DarlingData/tree/main/sp_HumanEvents' UNION ALL
108+
SELECT 'all scripts and documentation are available here: https://code.erikdarling.com' UNION ALL
109109
SELECT 'from your loving sql server consultant, erik darling: https://erikdarling.com';
110110

111111
SELECT
@@ -2391,10 +2391,8 @@ FROM
23912391
FROM #blocks AS b
23922392
) AS b
23932393
WHERE b.n = 1
2394-
AND (b.contentious_object = @object_name
2395-
OR @object_name IS NULL)
2396-
2397-
';
2394+
AND (b.contentious_object = @object_name
2395+
OR @object_name IS NULL)';
23982396

23992397
/* Add the WHERE clause only for table logging */
24002398
IF @log_to_table = 1

sp_IndexCleanup/.DS_Store

6 KB
Binary file not shown.

sp_LogHunter/sp_LogHunter.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ BEGIN
8181
introduction =
8282
'hi, i''m sp_LogHunter!' UNION ALL
8383
SELECT 'you can use me to look through your error logs for bad stuff' UNION ALL
84-
SELECT 'all scripts and documentation are available here: https://github.com/erikdarlingdata/DarlingData/tree/main/sp_LogHunter' UNION ALL
84+
SELECT 'all scripts and documentation are available here: https://code.erikdarling.com' UNION ALL
8585
SELECT 'from your loving sql server consultant, erik darling: https://erikdarling.com';
8686

8787
SELECT

sp_PressureDetector/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ EXECUTE dbo.sp_PressureDetector
6969
```
7070

7171
## Resources
72-
* [Video walkthrough](https://www.erikdarlingdata.com/sp_pressuredetector/)
72+
* [Video walkthrough](https://www.erikdarling.com/sp_pressuredetector/)

0 commit comments

Comments
 (0)