Skip to content

Commit

Permalink
BrentOzarULTD#291 - add MIT license in all scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentOzar committed Jun 13, 2016
1 parent 968a8bf commit d1790e9
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 51 deletions.
23 changes: 23 additions & 0 deletions sp_AskBrent.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,29 @@ Changes in v23 - April 27, 2016
existing table storage by changing output data.
- Added wait time per core per second (or per hour) in the ExpertMode wait
stats output.
MIT License
Copyright (c) 2016 Brent Ozar Unlimited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
'


Expand Down
22 changes: 22 additions & 0 deletions sp_Blitz.sql
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,28 @@ AS
@IgnorePrioritiesAbove 50=ignore priorities above 50
For the rest of the parameters, see http://www.brentozar.com/blitz/documentation for details.
MIT License
Copyright (c) 2016 Brent Ozar Unlimited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/'
ELSE IF @OutputType = 'SCHEMA'
Expand Down
22 changes: 22 additions & 0 deletions sp_BlitzCache.sql
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,28 @@ Changes in v2.5.0 - 2015-10-23:
- Fixing slow sort performance on xpm and friends
- Added compilation info (memory, CPU, time) and plan size to output
- Re-structured XML processing for more better performance
MIT License
Copyright (c) 2016 Brent Ozar Unlimited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
'


Expand Down
22 changes: 22 additions & 0 deletions sp_BlitzIndex.sql
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,28 @@ Changes in v3.0 - 2016/03/20:
* The top 20 missing indexes
* Abnormal psychology stuff (as an FYI for query / index tuning)
- Running @GetAllDatabases requires an override parameter (@BringThePain = 1) to run against 50+ databases
MIT License
Copyright (c) 2016 Brent Ozar Unlimited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
'


Expand Down
58 changes: 39 additions & 19 deletions sp_BlitzRS.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ GO


ALTER PROCEDURE [dbo].[sp_BlitzRS]
(@WhoGetsWhat TINYINT = 0)
@WhoGetsWhat TINYINT = 0,
@Help TINYINT = 0
WITH RECOMPILE
/******************************************
sp_BlitzRS (TM) 2014, Brent Ozar Unlimited.
(C) 2014, Brent Ozar Unlimited.
See http://BrentOzar.com/go/eula for the End User Licensing Agreement.
AS
BEGIN
SET NOCOUNT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
IF @Help = 1 PRINT '
/*
sp_BlitzRS from http://FirstResponderKit.org
Description: Displays information about a single SQL Server Reporting
Services instance based on the ReportServer database contents. Run this
Expand All @@ -29,20 +31,24 @@ necessarily the server running the SSRS service).
Output: One result set is presented that contains data from the ReportServer
database tables. Other result sets can be included via parameter.
To learn more, visit http://brentozar.com/blitzRS/
where you can download new versions for free, watch training videos on
how it works, get more info on the findings, and more. To contribute
code, file bugs, and see your name in the change log, visit:
http://support.brentozar.com/
To learn more, visit http://FirstResponderKit.org where you can download new
versions for free, watch training videos on how it works, get more info on
the findings, contribute your own code, and more.
KNOWN ISSUES:
Known limitations of this version:
- This query will not run on SQL Server 2005.
- Looks for the ReportServer database only.
- May run for several minutes if the catalog is large (1,000+ items).
- Will not identify data-driven subscription source query information
such as tables, parameters, or recipients.
Unknown limitations of this version:
- None. (If we knew them, they would be known. Duh.)
Changes in v1.0 - YYYY/MM/DD
- Switched to MIT licensing.
- Added @Help parameter.
v0.92 - 2014-09-22
- Fixed issue where query would try to parse images and other objects as XML.
- Lengthened dataset CommandText and subscription Parameter variables.
Expand All @@ -56,14 +62,28 @@ v0.9 - 2014-09-16
v0.8 - 2014-08-29
- Added "who gets what" parameter and query.
MIT License
Copyright (c) 2016 Brent Ozar Unlimited
*******************************************/
AS
BEGIN
SET NOCOUNT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
'
IF OBJECT_ID('tempdb..#BlitzRSResults') IS NOT NULL
DROP TABLE #BlitzRSResults;

Expand Down
91 changes: 59 additions & 32 deletions sp_BlitzTrace.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,6 @@ SET QUOTED_IDENTIFIER ON;
SET STATISTICS IO OFF;
SET STATISTICS TIME OFF;
GO

/*
-- Welcome to the beta release of sp_BlitzTrace (TM) -- Version 0.2, released 2015-01-03
-- BrentOzar.com/BlitzTrace
-- Things you can do....
--List running sessions
exec sp_BlitzTrace @Action='start';
--Start a trace for a session. You specify the @SessionID and @TargetPath
exec sp_BlitzTrace @SessionId=52, @TargetPath='S:\XEvents\Traces\', @Action='start';
--Stop a session
exec sp_BlitzTrace @Action='stop';
--Read the results. You can move the files to another server and read there by specifying a @TargetPath.
exec sp_BlitzTrace @Action='read';
--Drop the session. This does NOT delete files created in @TargetPath.
exec sp_BlitzTrace @Action='drop';
*/

IF OBJECT_ID('dbo.sp_BlitzTrace') IS NOT NULL
DROP PROCEDURE dbo.sp_BlitzTrace
GO
Expand All @@ -45,21 +23,70 @@ CREATE PROCEDURE dbo.sp_BlitzTrace
@MaxFileSizeMB INT = 256,
@TraceExecutionPlansAndKillMyPerformance BIT = 0, /* Non-production environments only */
@MaxRolloverFiles INT = 4,
@MaxDispatchLatencySeconds INT = 5 /* 0 is unlimited! */
@MaxDispatchLatencySeconds INT = 5 /* 0 is unlimited! */,
@Help TINYINT = 0

WITH RECOMPILE
AS
/* (c) 2014 Brent Ozar Unlimited (R) */
/* See http://BrentOzar.com/go/eula for the End User License Agreement */
IF @Help = 1 PRINT '
/*
sp_BlitzTrace from http://FirstResponderKit.org
DECLARE @nl NVARCHAR(2) = NCHAR(13) + NCHAR(10) ;
Description: Starts, stops, and reads Extended Events traces.
RAISERROR (N'*******************START HERE*******************',0,1) WITH NOWAIT;
RAISERROR (N'(c) 2014 Brent Ozar Unlimited (R).',0,1) WITH NOWAIT;
RAISERROR (N'See http://BrentOzar.com/go/eula for the End User License Agreement.',0,1) WITH NOWAIT;
RAISERROR (N'Sp_BlitzTrace version 0.1, released on 2014-11-11.',0,1) WITH NOWAIT;
RAISERROR (N'*****************Let''s Do This!*****************',0,1) WITH NOWAIT;
RAISERROR (@nl,0,1) WITH NOWAIT;
--List running sessions
exec sp_BlitzTrace @Action=''start'';
--Start a trace for a session. You specify the @SessionID and @TargetPath
exec sp_BlitzTrace @SessionId=52, @TargetPath=''S:\XEvents\Traces\'', @Action=''start'';
--Stop a session
exec sp_BlitzTrace @Action=''stop'';
--Read the results. You can move the files to another server and read there by specifying a @TargetPath.
exec sp_BlitzTrace @Action=''read'';
--Drop the session. This does NOT delete files created in @TargetPath.
exec sp_BlitzTrace @Action=''drop'';
To learn more, visit http://FirstResponderKit.org where you can download new
versions for free, watch training videos on how it works, get more info on
the findings, contribute your own code, and more.
Known limitations of this version:
- Extended Events can be hard.
Unknown limitations of this version:
- Probably a lot. This is one of our lesser-tested scripts.
Changes in v1.0 - YYYY/MM/DD
- Switched to MIT licensing.
- Added @Help parameter.
MIT License
Copyright (c) 2016 Brent Ozar Unlimited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
'

DECLARE @nl NVARCHAR(2) = NCHAR(13) + NCHAR(10) ;

SET NOCOUNT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
Expand Down

0 comments on commit d1790e9

Please sign in to comment.