SQLServerCentral - www.sqlservercentral.com

A community of more than 1,600,000 database professionals and growing

Featured Contents

The Voice of the DBA

What do you do when you have a repetitive task to do?

Sometimes we find ourselves needing to do repetitive tasks.  Often these tasks are a bit boring, but are still necessary to complete in a timely fashion.  One example would be testing.  I have to do some testing in my current position from time to time.  There are two parts to the testing.  The first part has to do with getting the configuration data correct.  I run the test on 100 different schedules and make sure the data coming out of the engine looks correct.  Some of the schedules need to be run multiple times while tweaking the configuration between each run.  The second part is end to end testing.  Getting the data from the originating system then running it through the engine, and then finally running it through all the other downstream systems.  It is a time consuming effort and it got me thinking about what other people do in similar situations.

I am sure many of you will say, PowerShell it.  I do use PowerShell scripts to help the process go a bit smoother.  Part of the issue is, someone (me) has to be involved to look at the engine data output and decide if the configuration is correct or not.  If it is not correct, make modifications to the configuration and try it again.  I am not sure how to automate that. 

There is also the tediousness of it all.  You don’t expect issues or problems in the end to end testing, but somehow they still seem to crop up.  So you know you have to do the testing, because issues have come up in the past and most likely will come up again this time around.

One thing I have found that is helpful is breaking up the testing.  As much as it would be nice to just sit down and get all the testing done in one sitting, it is too easy to miss things.  It seems like after 10 or 20 tests my eyes begin to glaze over and my brain disconnects and wanders someplace else.  So I have found if I set a goal of reaching that 10 or 20 tests and then it is time to take a break and do something else.  Refresh my drink, or engage a coworker in a discussion, any discussion.  It seems that when I come back a few minutes later I am more refreshed and I am ready and able to focus on my next set of tests.

It is difficult when you have done the same task hundreds or perhaps thousands of times, to remain engaged and alerts to potential issues.  At the same, it seems there are always more bugs/issues to be found, which is why we need be engaged while doing these repetitive tasks.  For me breaking up the tasks into smaller chucks and taking breaks helps.

So what about you?  What sort of repetitive tasks do you have to do and how do you go about doing them?

Ben Kubicek from SQLServerCentral.com

Join the debate, and respond to today's editorial on the forums

ADVERTISEMENT
Database DevOps

Database DevOps Demo Webinar

Learn how to automate your database deployments alongside your app code in this free demo webinar. Register now.

SQL Monitor

New SQL Monitor Reporting Module

SQL Monitor now includes a new Reporting module. It allows you to create customized reports, combining the individual server performance metrics available in SQL Monitor with summary information on your entire SQL Server estate. These reports can then be exported to pdf and emailed to you on a scheduled basis. Download SQL Monitor now and get a 14 day free trial.

Featured Contents

 

AlwaysON Availability Group and Jobs Part 2

Leo Peysakhovich from SQLServerCentral.com

This article will provide the actual implementation of the control mechanism. More »


 

Performance Myths: Table variables are always in-memory

Additional Articles from SQLPerformance.com

Guest author Derik Hammer dismisses the common myth that table variables perform better than temp tables because they are always in memory. More »


 

From the SQLServerCentral Blogs - Creating an Azure SQL Database via PowerShell

hamish.watson8 from SQLServerCentral Blogs

This post is about using the brilliance of PowerShell to script the creation of databases in Azure. Background: Apart from the obvious question... More »


 

From the SQLServerCentral Blogs - Azure Data Factory and the Case of the Missing JRE That Wasn’t

meaganl from SQLServerCentral Blogs

On a recent project I used Azure Data Factory (ADF) to retrieve data from an on premises SQL Server 2014... More »

Question of the Day

Today's Question (by Steve Jones):

I want to determine the amount of time spent executing and rendering an SSRS report. Where do I look in the my ReportServer database to find this information?

Think you know the answer? Click here, and find out if you are right.


We keep track of your score to give you bragging rights against your peers.
This question is worth 1 point in this category: Reporting Services (SSRS).

We'd love to give you credit for your own question and answer.
To submit a QOTD, simply log in to the Contribution Center.

ADVERTISEMENT

Pro SQL Server Relational Database Design and Implementation

Learn effective and scalable database design techniques in a SQL Server 2016 and higher environment. This book is revised to cover in-memory online transaction processing, temporal data storage, row-level security, durability enhancements, and other design-related features that are new or changed in SQL Server 2016. Get your copy today from Amazon.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

If I type this in R, what does the REP() function do?

Answer: repeats a string multiple times

Explanation:

rep() will repeat a string multiple times, like this:

rep("SQL", times = 2)

will return 

"SQL" "SQL"

Ref: rep - click here


» Discuss this question and answer on the forums

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.

SQL Server 2016 : SQL Server 2016 - Administration

Identity in a table used previous number - Hi all, I have something that does not make sense to me. If anyone can give me clues that will be...

Unable to run the restore command in Node2 from Node1 part of Alwayson DB addition - declare @databasename nvarchar(max) declare @sqlbackup nvarchar(max) declare @sqlrestore nvarchar(max) declare @PrimaryAG nvarchar(max) declare @SecondaryAG nvarchar(max) declare @backupPath nvarchar(max) declare @linkedserverName sysname select @sqlrestore = N'RESTORE DATABASE ' + QUOTENAME(@databasename) + ' FROM...


SQL Server 2016 : SQL Server 2016 - Development and T-SQL

How to use 'between' in CASE statement? - Hi Friends, I am trying to wirte a filter condition in WHERE clause like  CASE WHEN GETDATE() = 'first of this month' THEN 'DATE...

How to convert string to "data type" ? - Hello everybody, First of all sorry for my English ;-) Here is my problem. In a table I've :  - MyValue : column (varchar) wich store...


SQL Server 2014 : Administration - SQL Server 2014

problem in connect tosql of internet - hi i have coneccted to sql server with ip valid of sqlserver management password sa is 123456 type  id  server  name :  example:94.183,157.251,1433 username:sa password:123456 but ...

SignalR Deadlock - The below select is causing deadlock on our production box. How can i avoid this? The same query is running from...


SQL Server 2014 : Development - SQL Server 2014

Drop/Create objects versus Alter - I am trying to put together some standards documents for development on a new team, and I received some sage...


SQL Server 2012 : SQL 2012 - General

Help needed with configuring sp_rename ( Works well but how do we include the schema name ) - The following works well as it is...( if you enter the name of the object without the schema name in...

Why would SQL throw a Severity 016 alert?? following a successful db restore? - Hi all, Does anyone know why would SQL throwing a Severity 016 alert following a successful db restore, and what I...

Single Node MSSQL 2012 cluster to Always on - We need to migrate one of our MSSQL instances in Production . The outgoing replication is to Informatica and is very...

TEMPDB log growing HUGE - Running SQL 2012 SP3 CU6 AlwaysOn.... we had an issue two nights ago with the tempdb log filling the log disk....


SQL Server 2008 : SQL Server 2008 - General

Cannot create a row of size 8208 which is greater than the allowable maximum row size of 8060. - Hello.  We have a very large table in one of our MSCRM deployments that has 566 columns with a variety...

translation to hours - Hi, I'm trying to normalize my data to hours and I'm a bit confused. For example,  for 12 hours to 1 billed...

Little colored triangles on 2008 SSIS tool items - what do they mean? - Sorry if this is a basic question but I can not even create a search string that gets me close...


SQL Server 2008 : T-SQL (SS2K8)

Insert data into a table without disabling the constraints (pk and fk) - Hi I am working with a t-sql code in SQL Server 2008 and would like to know if it is possible...


SQL Server 2008 : SQL Server Newbies

Removing cursor - Good morning, I have a store proc that uses cursor to update table with 80 million records.Iyt's extremely slow (runs over...


Reporting Services : Reporting Services

Specifying ReportServer database names during installation of Database Engine (named instance) and SSRS at command prompt - Hi,  \setup.exe  /Action=Install  /QS /SQMREPORTING=0 /IACCEPTSQLSERVERLICENSETERMS  /ERRORREPORTING=0  /Features=ADV_SSMS,BC,BOL,Conn,FullText,RS,SQL  ....  /INSTANCEID="SQLPROD01"  /INSTANCENAME="SQLPROD01"    will install  1.SQL instance SQLPROD01  2.Create reporting


Programming : General

Dealing with programmers - Hi Community, Dealing with programmers turns to be a difficult challenge, when they ignore his duties, because they do not have...


Data Warehousing : Integration Services

Copy data from flat file with multiple headers - Hi, I am trying to copy data from a flat file (CSV) which has multiple headers between the row values to...


SQL Server 2005 : T-SQL (SS2K5)

create folders using t-sql - Hi, I have a requirement to create a folder structure in a directory path say (c:\test) with the number of rows...

This email has been sent to newsletter@newslettercollector.com. To be removed from this list, please click here.
If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com.
This newsletter was sent to you because you signed up at SQLServerCentral.com.
Feel free to forward this to any colleagues that you think might be interested.
If you have received this email from a colleague, you can register to receive it here.
This transmission is ©2017 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com