Scaling Azure VM’s
There are so many benefits to the cloud, but one of the major features is the ease of use in...
2016-04-05
668 reads
There are so many benefits to the cloud, but one of the major features is the ease of use in...
2016-04-05
668 reads
Calculating Collection Size
We can get the size of a collections by using the shell’s functions
db.collection.dataSize(): Returns data size in bytes...
2016-04-05
679 reads
I’ve been getting lots of questions on views lately. Must be something in the water.
Because SQL Server allows you to...
2016-04-05
560 reads
This post is part of a series on this blog that will explore SQL Server Service Broker, a native messaging...
2016-04-05
687 reads
Welcome to this weeks weekly round up of links, SQL Server and other news. Its been a busy week on...
2016-04-05
408 reads
Had an issue with a new Azure VM install of SQL Server, but have had this issue in other, older...
2016-04-05
1,514 reads
When I started working with SQL Server, the sa account was “the” account used for admin operations. This was the...
2016-04-04
1,050 reads
It started with a failed backup status check:
Msg 50000, Level 16, State 1, Line 73
** Backups listed in this file...
2016-04-04
2,287 reads
We can get the size of a document is by using the shell’s Object.bsonsize() function.We pass the object_id of the document...
2016-04-04
539 reads
What do you do if you need a process running under Local Service to connect to your SQL Server? Most...
2016-04-04
652 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