Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
 
The Voice of the DBA
 

Why Tools Can Help You Do Your Job

This editorial was originally published on May 18, 2019. It is being re-run as Steve is on holiday.

Back in my days as a SQL server DBA, I didn't have many third-party tools at my disposal. I remember having a monitoring tool with licenses for only three or four SQL server instances. Whenever there was a problem with one instance that wasn’t currently being monitored, I would have to stop monitoring another instance and switch the license over. This was perfectly fine according to the license agreement, however, it caused me to lose history and, of course, was not very efficient at all while I sometimes had to wait to see the problem happen again.

I was allowed to purchase a backup tool for all my 40 or 50 SQL Server instances. I proved to my manager that this backup tool would save SAN space because of the built-in compression (before backup compression was included with SQL Server) and pay for itself in no time. That was a great investment which made my job easier.

DBAs can spend a lot of time writing scripts, and I was no exception. Many of these scripts were specific to the job and workload, but others could have been replaced by free or purchased tools. I remember writing a script to compare the data in tables between two databases in preparation of an upgrade. I’m not sure I knew that there was a tool available that could have been purchased to automate the work for me instead, but I bet that it would have been less expensive in the end compared to how much time I spent.

I’ve recently had discussions with some friends about tools for maintaining indexes. Many of us started out by writing our own index maintenance scripts, modifying them whenever we needed to add some new options. The trick is keeping the scripts organized and synchronized across all the instances. And, of course, so much time was spent writing and testing. Luckily, there is a free tool for optimizing indexes (and other maintenance) written and maintained by Ola Hallengren (@olahallengren) that most of us use now that has just about every option you could ever need.

As DBAs become more involved with areas like DevOps and hybrid data centers, they will need even more tools for tasks such as source control and provisioning. They may be tempted to write scripts to do everything, but the right tools can do a better job in many cases. Even though managers may balk at the expense, tools will save time and money and allow the DBAs to focus their efforts where their expertise is really needed.

 

Kathi Kellenberger

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

 
 
  Featured Contents
SQLServerCentral Article

Influencing a Local AI

Steve Jones - SSC Editor from SQLServerCentral

I set up a local AI LLM to run and then conducted some experiments. This post shows a bit about the experiments and a little code. The setup is on my blog using Docker to containerize an Ollama LLM, which you can read about. The Basic Setup If you read my blog, I downloaded an […]

External Article

Demystifying Continuous Integration vs. Continuous Delivery Part 3 – Real World Examples of CI CD

Additional Articles from SimpleTalk

This article covers examples of how some larger companies have successfully implemented CI/CD practices to transform their development processes.

Blog Post

From the SQL Server Central Blogs - The pros and cons of self-service BI: What every industry leader should know

Joyful Craftsmen from Joyful Craftsmen Blog

The post The pros and cons of self-service BI: What every industry leader should know appeared first on Joyful Craftsmen.

Blog Post

From the SQL Server Central Blogs - Implement a RAG Solution Using Azure SQL Database

John Morehouse from John Morehouse | Sqlrus.com

AI and ChatGPT are all the rage these days.  Seems like around every corner is another break-through in how we interact with data, regardless of if that data is...

Refactoring Databases cover

Refactoring Databases: Evolutionary Database Design

Site Owners from SQLServerCentral

Refactoring has proven its value in a wide range of development projects–helping software professionals improve system designs, maintainability, extensibility, and performance.

 

  Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

Data API Builder Operations

What types of database operations does the Data API Builder support?

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

 

 

  Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Escaping Like I

I have this data in a SQL Server 2022 table:

PlayerID	PlayerName	PlayerStatus 1	The \%Champ	Active 2	The Champ	Active 3	The_Champion	Active 4	The__Champion	Active 5	The\_Champ	Active

How many rows are returned by this code in SQL Server 2022?

select PlayerName from player where playername like 'The\_C%' escape '\' 

 

Answer: 1

Explanation: Only 1 row is returned, with the value of "The_Champion". The escape clause is used to escape a wildcard. In this case, the \ is escaped, meaning that in the LIKE, whichever character follows \ is escaped to a literal. This means, the LIKE clause needs T-h-e-_-C in a string in the table. Only one value has this. Ref: LIKE - https://learn.microsoft.com/en-us/sql/t-sql/language-elements/like-transact-sql?view=sql-server-ver16

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 2017 - Administration
Proc cache slowly decreasing in size until restart is required - In SQL 2017 (14.0.3475.1) the size of the proc cache is slowly decreasing. The workload on the instance has the same profile every day and does not change with time. The proc cache size started at a little over 5G and after about 3 weeks is down to below 1G. Just before the previous restart, […]
Proc cache slowly decreasing in size until restart is required - In SQL 2017 (14.0.3475.1) the size of the proc cache is slowly decreasing. The workload on the instance has the same profile every day and does not change with time. The proc cache size started at a little over 5G and after about 3 weeks is down to below 1G. Just before the previous restart, […]
SQL Server 2019 - Administration
EXTENDED EVENTS Track What's Logging In - Simple one looking for a script that can track what's logging in from where for UPGRADE discovery.  
SQL Server 2019 - Development
Using ROW_NUMBER() to increment every time a value occurs - Hello folks, I have some rather unstructured data coming into a staging column from a file. I can guarantee the order of the data on load using a column I am calling RowNumber. I like to group the data using ROW_NUMBER() every time the value 'CreateDate' occurs. Here is current my effort. Thanks if you […]
how to keep report from running automatically when my params all default to null - Hi I'm standing up a report with 9 visible cascading params , none of which needs to be entered.   all will default to null, If i remember correctly , once i set it up, the report will run automatically without the user hitting the run button because all params default that way.  how can i […]
SQL Azure - Administration
Issue with Creating Linked Server from Azure SQL Managed Instance to On-Premises - Hi, Interestingly, I was able to create a linked server in the reverse direction—from the on-premises SQL Server to my Azure SQL MI—using a remote login and password for authentication. However, when I attempt to establish the link from Azure SQL MI to the on-premises SQL Server, it consistently fails. Additional Details: I have an […]
General
When trying to use a LocalDB, I get an error - I tried to find an appropriate forum to post the question. This one seems to be the closest. I'm sorry if I'm wrong. This is a long story, which I haven't time to go into now. I'm starting a new Blazor Web app using .NET 9 and include what's called Individual Accounts (or Individual Users, […]
Powershell
display bytea image - I moved a table from MsSql to Postgresql that had a field defined as Image in Mssql now in Postgres it's a Bytea field. How can I make sure data copied across with success? Is there some code I could run to make sure Image looks correct from PostgreSQL ? Thanks.
Analysis Services
MDX SSAS Calculated measure for last totals + turnovers - I have a measure with totals for specific dates with the LastNonEmpty aggregation, and a measure with turnovers with the Sum aggregation. Help create a measure with totals for each day that would take into account the last known totals + turnovers from the date of the last totals to the current date. I tried […]
Integration Services
PowerQuery.... don't meet SSIS - I have a powerQuery that reads and transforms a table in a PDF.  Works a champ. If I wanted to write the resulting table's data to SQL Server, I can use DAX Studio (kind of) because it creates a newtable and writes the data to it. But I wanted to just map the columns to […]
SSIS package 'Unexpected Termination' status when running from SSISDB catalog - We are trying to run SSIS package to read Access Database (.mdb) files using Native OLE DB\Microsoft Office 12 Access Database Engine OLE DB Provider in the Source Connection Manager. This package ran successfully from Visual Studio 2019 and also from SSISDB catalog in lower end servers. However, executing the package in higher environments resulted in 'Unexpected […]
T-SQL
Count of Total Appointments within 30 days of each Appointment Date - Good Afternoon. I have a Table where each Record: 1) Represents an Appointment. 2) Has a field Appointment Date. What I am trying to achieve is this: For each Appointment date in the dataset I wish to count up all the Appointments which occur within 30 days. For example, for 1st July 2024, I wish […]
SQL Server 2022 - Administration
I need help accessing my local SQLExpress - My PC has been causing me problems for months. I've told my desktop support team. They reimaged my machine, but it hasn't helped. I cannot run SSMS against the LocalDB I get this error: and that's as far as that goes. If I try to connect to LocalDB I get this error: and that ends […]
SQL Monitoring tools - our client wants to implement Third Party SQL Monitoring tool to monitor SQL server Performance. I would like to understand any recommendation that is being implemented to monitor the performance.
Reporting Services in Managed Instance - Hi , one of my on-premises servers one server is having databases and one more server maintain the reporting services . above 2 servers having connectivity between them . we are planning migrate into Azure Managed Instance .do we need 2 managed instance single managed instance . If Single Managed Instance how can we add […]
 

 

RSS FeedTwitter

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.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -