Skip to content
Merged

Dev #538

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Presentations/Defeating Parameter Sniffing/00 Demo.sql
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ GO
/*

This can be a parameter, depending on how you use it
https://www.erikdarlingdata.com/sql-server/yet-another-post-about-local-variables/
https://www.erikdarling.com/sql-server/yet-another-post-about-local-variables/

*/
DECLARE
Expand Down Expand Up @@ -1634,8 +1634,8 @@ What we learned:

/*

* W: www.erikdarlingdata.com
* E: erik@erikdarlingdata.com
* W: www.erikdarling.com
* E: erik@erikdarling.com
* T: @erikdarlingdata

Demo database:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ All you need to do is hit F5 to get information about:
* Any current THREADPOOL waits (best observed with the DAC)
* Currently executing queries, along with other execution details

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

Current valid parameter details:

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

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

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

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

Current valid parameter details:

Expand Down
10 changes: 5 additions & 5 deletions sp_HealthParser/sp_HealthParser.sql
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CONVERT(nchar(1), @azure),
@mi_msg =
CONVERT(nchar(1), @mi),
@timestamp_utc_mode =
CASE
@timestamp_utc_mode =
CASE
WHEN EXISTS
(
SELECT
Expand All @@ -369,7 +369,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SERVERPROPERTY('PRODUCTVERSION')
),
4
) > 17
) > 16
THEN 1
ELSE 0
END +
Expand Down Expand Up @@ -451,10 +451,10 @@ AND ca.utc_timestamp < @end_date';

IF @timestamp_utc_mode = 1
SET @time_filter = N'
AND CONVERT(datetimeoffset(7), fx.timestamp_utc) BETWEEN @start_date AND @end_date';
AND CONVERT(datetimeoffset(7), fx.timestamp_utc) BETWEEN @start_date AND @end_date';
ELSE
SET @time_filter = '
AND fx.timestamp_utc BETWEEN @start_date AND @end_date';
AND fx.timestamp_utc BETWEEN @start_date AND @end_date';
END;

SET @sql_template =
Expand Down
2 changes: 1 addition & 1 deletion sp_HumanEvents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ EXECUTE dbo.sp_HumanEvents

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

---

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


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

SELECT
Expand Down Expand Up @@ -2391,10 +2391,8 @@ FROM
FROM #blocks AS b
) AS b
WHERE b.n = 1
AND (b.contentious_object = @object_name
OR @object_name IS NULL)

';
AND (b.contentious_object = @object_name
OR @object_name IS NULL)';

/* Add the WHERE clause only for table logging */
IF @log_to_table = 1
Expand Down
Binary file added sp_IndexCleanup/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion sp_LogHunter/sp_LogHunter.sql
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ BEGIN
introduction =
'hi, i''m sp_LogHunter!' UNION ALL
SELECT 'you can use me to look through your error logs for bad stuff' UNION ALL
SELECT 'all scripts and documentation are available here: https://github.com/erikdarlingdata/DarlingData/tree/main/sp_LogHunter' UNION ALL
SELECT 'all scripts and documentation are available here: https://code.erikdarling.com' UNION ALL
SELECT 'from your loving sql server consultant, erik darling: https://erikdarling.com';

SELECT
Expand Down
2 changes: 1 addition & 1 deletion sp_PressureDetector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ EXECUTE dbo.sp_PressureDetector
```

## Resources
* [Video walkthrough](https://www.erikdarlingdata.com/sp_pressuredetector/)
* [Video walkthrough](https://www.erikdarling.com/sp_pressuredetector/)
Loading