When was my index created or at least last updated?
SQL Server stores a create date and a change date for each object in the sys.objects system view.
Unfortunately while...
2016-11-21 (first published: 2016-11-14)
2,127 reads
SQL Server stores a create date and a change date for each object in the sys.objects system view.
Unfortunately while...
2016-11-21 (first published: 2016-11-14)
2,127 reads
Communication in the workplace.
With the release of Microsoft Teams we now have a dazzlingly array of software designed to increase...
2016-11-14
342 reads
Last week at the Birmingham user group I gave a presentation about PowerShell and SQL Server
It was a very packed...
2016-11-16 (first published: 2016-11-13)
1,838 reads
What is Residual Predicate?
Lets say one gets a query to fine tune. While checking the execution plan, if there is...
2016-11-17 (first published: 2016-11-13)
4,643 reads
This post is about the importance of a right index to a query. The following simple query was considered. [crayon-5e96566159ca8644006533/] Even simple, this query was causing troubles on our production...
2016-11-11
21 reads
This post is about the importance of a right index to a query. The following simple query was considered. [crayon-5e81b52eda1f0195410103/] Even simple, this query was causing troubles on our production...
2016-11-11
10 reads
This post is about the importance of a right index to a query. The following simple query was considered.
SELECT
[GroupBy1].[A1] AS...
2016-11-11
268 reads
Major sponsors in our space get hundreds of emails from us each year, all asking for money. Those are all...
2016-11-11
402 reads
CASE 1: you have direct access to both the SQL Server where the source database is and the SQL Server where the target database is.
First time deployment
Backup / restore...
2016-11-11
15 reads
CASE 1: you have direct access to both the SQL Server where the source database is and the SQL Server...
2016-11-11
2,140 reads
By Steve Jones
I caught this interesting item over on Pinal Dave’s blog: Eleven Interview Questions that...
By Hemantgiri
I use color-coded connections in SSMS to distinguish Production, Pre-Production, UAT, and Development. But...
Comments posted to this topic are about the item Split Large Queries in Athena...
Comments posted to this topic are about the item Finding Trailing Spaces
I have some data in a SQL Server 2025 database. It looks like this for the dbo.Customer table:
CustomerID CustomerName PreferredName 1 Steve Steve 2 Andy Andy 3 Brian Brian 4 Allan Allan 5 Devin Devin 6 Steve Steve 7 Sally SallyI want to detect which names have a single trailing space. The CustomerName is a varchar() and the PreferredName is a CHAR(). Does this query detect the problem rows?
SELECT
CustomerID,
CustomerName,
PreferredName
FROM Customer
WHERE CustomerName <> RTRIM(CustomerName)
OR PreferredName <> RTRIM(PreferredName); See possible answers