Miscellaneous

Technical Article

Proc to Query MSDB..SYSJOBS and SYSJOBSTEPS

  • Script

TSQL:Procedure to Lookup JobsJack Donnell,jack@JackDonnell.com Have you ever kept altering the same query to look for different items in you database?I took a hint from MS with all the sp_help and other system stored procedures and made a two scripts this one to query for databases scheduled tasks or jobs as they are now called.The […]

4 (2)

You rated this post out of 5. Change rating

2002-06-07

2,262 reads

Technical Article

Proc to Query Syscomments and Sysobjects

  • Script

TSQL:Procedure to Query for Dependent ObjectsJack Donnell,jack@JackDonnell.com Have you ever kept altering the same query to look for different items in you database?I took a hint from MS with all the sp_help and other system stored procedures and made a two scripts this one to query for databases dependednt objects or references.I also created another […]

You rated this post out of 5. Change rating

2002-06-07

659 reads

Technical Article

Get Notified When Accounts Are Changed

  • Script

Perfect for finding developers that are changing your database accouts.  This procedure can check the sysusers table for each database and\or the master..syslogins table for account changes.  Gives the option of email notification, logging to a table or both. Update the set statements at the begining of the procedure to configure it however you like.  […]

You rated this post out of 5. Change rating

2002-06-07

506 reads

Technical Article

Alert When Not Enough Free Disk Space

  • Script

--Implement an Alert Which Trigger when Specified Disks--free space exceeds a specified alert level--Steps to implement:--1) Define a Custom Error Message with messsage text (The ---drive free space is bellow alert level. Details: %s)--2) Define an Alert linked to CEM defined at step 1--3) Implement a Job which execute the following step in a recurring […]

You rated this post out of 5. Change rating

2002-06-04

2,688 reads

Technical Article

Modified SP_who

  • Script

Here is a modified SP_WHO procedurewhich returns more information about the current session.I forgot all the thing that i have added to the sproc, but the last addition shows the last executed TSQL statement.There might be a better solution to get the values from DBCC rowset, thou I did not have time to think everything […]

You rated this post out of 5. Change rating

2002-05-28

706 reads

Technical Article

Attach Excel Workbook

  • Script

After installing bellow procedure you will be able to easly attach workbook and read data from it.This example shows how to attach excel file (c:\temp\orders.xls) and display data from named range (Table1):Exec mysp_AttachWorkbook 'c:\temp\orders.xls', 'MyOrders'Select * from MyOrders...Table1

You rated this post out of 5. Change rating

2002-05-25

2,231 reads

Technical Article

TableCounts

  • Script

This script generates a statement that you would then run in the user database to get rowcounts of all tables. The advantages of this approach are you can modify it to get just the tables you want, and the output is easy to read:Table1-------1069Table2------10427

You rated this post out of 5. Change rating

2002-05-24

413 reads

Technical Article

Monitor Object Changes

  • Script

Based on post http://www.sqlservercentral.com/forum/link.asp?TOPIC_ID=4349 I decided to write this script which will check for object changes in all databases and send an email listing the objects changed to the Operator associated with the job. This by no means offsets the need to restrict change access to objects in production, but in those cases when you […]

You rated this post out of 5. Change rating

2002-05-23

1,538 reads

Technical Article

Script to sort by columns that may include NULLs

  • Script

If you sort by in ASC order by column that may include NULLs and empty strings ( if type is varchar), the records with nulls will always appear before any others.This script will show how to chagne this pattern and move all records with NULLs to the bottom of your recordset

You rated this post out of 5. Change rating

2002-05-23

209 reads

Blogs

Using Flyway Prepare for State-Based Deployments

By

One of the neat enhancements made to Flyway was the addition of state-based workflows...

How I Migrated to Azure PostgreSQL Flex from Single Server

By

I did a couple of posts previously on dumping/restoring Azure PostgreSQL databases and also...

Have a Plan for Your Personal Downtime

By

Most of us know that spending a lot of time on social media and...

Read the latest Blogs

Forums

Unknown Token Received From SQL Server

By RonMexico

I have an issue when a stored procedure is executed from the SQL Server...

SSRS error on sign in ERR_UNEXPECTED

By janvan

Hi All, I have an error coming up when anyone tries signing into our...

Hash Joins IV

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Hash Joins IV

Visit the forum

Question of the Day

Hash Joins IV

What is a hash bailout?

See possible answers