Weekly Reports Made Easy

Each week you are required to run various reports based on table entries made during the week preceding latest Sunday. Use this SQL7/2000 procedure (can be a UDF in SQL2K) to retrieve the latest midnight of a specified day of the week as illustrated below: Declare @StartDate datetime, @EndDate datetime Exec DBAservice.dbo.uspGetLatestWkDayMidnight @pDate = '1998-05-06', […]

2003-03-13

298 reads

Rename SQL Server

Utilizing sp_dropserver and sp_addserver system procedures we will change local SQL Server name to a specified one, or, by default, to the WINS machine name. Just another utility in my DBAservice toolbox database.Notes:1.Tested in SQL Server7.2. In some cases it is necessary to rerun sql server setup in order to start the server after renaming. […]

2003-02-13

342 reads

Check user activity

This stored procedure is another monitoring utility that can be executed periodically as a sql server agent job. The procedure checks if there are any open connections, and if there was any recent user activity within a given period of time in a given (or any) database by a given (or any/any except given) login […]

2002-11-30

1,241 reads

Monitoring SQL Server downtime

The following script creates a monitoring utility to find out for how long a sql server was down prior to the latest startup. The script creates one table (tblHeartbeat), four stored procedures (uspFillHeartBeat, uspGetDowntimeSummary, uspCleanHeartbeat, uspAtStartup) and two jobs (FillHeartbeat and CleanHeartbeat).Notes:1. By convention I introduced in my company (UGO Networks, Inc.) all "service" database […]

2002-11-21

559 reads

Blogs

Getting Started with Robotic Process Automation (RPA) Using the Power Automate Desktop

By

There are a lot of hot phrases you’ve likely heard thrown around during various...

Two methods of deployment Azure Data Factory

By

Azure Data Factory is a fantastic tool which allows you to orchestrate ETL/ELT processes...

Moving the Community Forward

By

Today is the last day that the PASS and SQL Saturday websites will be...

Read the latest Blogs

Forums

What is Mhapks? how to open edit or modify APK files?

By eshasajawal1

In the event that you are an Android telephone holder, you generally download the...

Who is my customer?

By Kathi Kellenberger

Comments posted to this topic are about the item Who is my customer?

Newbie; Unsure where to Start?

By ptmuldoon

Hi,  First time poster, and hoping everyone goes easy on me. I am very...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers