- The best trouble-shooting data capture query (is not Xevent), in fact, is my Active Session history together with Running Differential wait stats time-based capture, presented since HASSUG Dec. 2012 and WISSUG Nov. 2015.
- Joseph Sack, Ian
Stirk etc. SQL Server Book online on MSDN have many T-SQL
example scripts.
- Sam Alapati,
Darl Kuhn, Kevin Loney, Thomas Kyte, Richard Niemiec , etc.
Oracle online documentation that you can find many example scripts have good Oracle
example scripts. Ignore Don. Burleson's poorly organized con script books (wasted
money, not organized,
there is no book, just some undocumented script files)
- I have 700+ SQL Server 2005/2008 DBA scriptlets I often used. (including automatic refresh, automatic PIT recovery, database management ....)
- I have 600+ Oracle DBA scriptlets I often used. (including duplicate database script, duplicate
to standby script, Configure/setup Data Guard Primary and failover
Standby script. RMAN automatic PIT recovery, database management....)
I also started studying MySQL scripts, administration, performance tuning, and Microsoft Azure, Azure SQL database.
---------------------------------------------------------------------------------------------------------------------------------------------------
-
Powershell script to report HTML email failed jobs, failed backup, generate restore scripts. See SQL Saturday #308 presentation.
Powershell script to record CPU, Memory, disk IO, host and SQL Server performance data into a Datawarehouse database with partitioned tables. See Dec.
11, 2012 presentation.
-
Powershell script to monitor database and server disk space, email notification or alert on high water mark. See Dec.
11, 2012 presentation.
- Example of
Improving T-SQL performance 8250% -Write
T-SQL code with performance in mind
Jason S. Wong, Nov. 15,
2009
- Automated refresh of QA/Test/Dev databases with PIT data without costly software.
-
-
- T-SQLCLR
C# code to get hostname from IP
- Find missing, redundant, unused, indexes
.... after SQL Saturday #57, Jan. 29,
2010.
-
-
-
-
-
-
Automatic
generated restore-recovery script for refresh from host1:db1 to
host2:db2
Jason S. Wong, Nov. 19, 2010
-
-
-
-
-
-
-
-
-
more other codes such
as Replication Monitoring query
.... will be published coming soon. |