Query Hash Values, Plan Guides and the Query Store
I was eating dinner with Hugo Kornelis and we started talking about query hash values. You know, like everyone does...
2017-05-08 (first published: 2017-04-24)
1,319 reads
I was eating dinner with Hugo Kornelis and we started talking about query hash values. You know, like everyone does...
2017-05-08 (first published: 2017-04-24)
1,319 reads
When you right click on a tab you’ll see a number of different options. You can set up new horizontal...
2017-04-24
391 reads
Yes thats true, SQL Server New version will be release this year and call it “SQL Server 2017” where sql can...
2017-04-24
467 reads
When I was on SQLCruise recently – Buck Woody (b|t) made a interesting statement – that in a room of 23 people,...
2017-05-03 (first published: 2017-04-24)
1,939 reads
Just a short post today. When you open a new file in VS Code (Using CTRL + N) it opens by...
2017-05-02 (first published: 2017-04-24)
827 reads
By David Postlethwaite
Always Encrypted is new features in SQL Server 2016 and it is also available in Azure SQL Database....
2017-05-01 (first published: 2017-04-24)
15,996 reads
Back after a couple of busy weeks, kinda looking forward to getting back into the old work routine (ah, well...
2017-04-24
179 reads
Back after a couple of busy weeks, kinda looking forward to getting back into the old work routine (ah, well...
2017-04-24
329 reads
For the past 6 months I’ve been paying for my own Azure subscription. My work has a plan but for...
2017-04-24
388 reads
I hope you take backups or have a recovery plan in place before a SQL Server service pack upgrade, if...
2017-04-24
364 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