How easy to determine table dependencies ? TIP # 86
Determine the table dependencies is challenging sometime but we can easily resolve this by using a simple stored procedure which ...
2015-02-24
536 reads
Determine the table dependencies is challenging sometime but we can easily resolve this by using a simple stored procedure which ...
2015-02-24
536 reads
Security is always a concern for every database developer. How to secure valuable information is one of the major and...
2015-02-24
433 reads
It might be already known to you but I thought for sharing because I frequently use this command and it...
2015-02-22
389 reads
Why the SQL Server is running slow ?
What are the processes running currently on SQL SERVER instance ?
Many other like...
2015-02-19
438 reads
One of the good sentence I remember “When someone has teeth he/she is not having nuts and when someone has...
2015-02-12
372 reads
Friends,
Sometimes it might be possible that you have to run dos command from SQL SERVER. In such situation you have...
2015-02-05
26,914 reads
While working on a project sometimes it happened that we need to shift the database from one server to another...
2015-01-02
490 reads
Happy new year 2015 .
Suppose you have a source table and one destination table (Which is exact replica of source...
2015-01-01
290 reads
In last TIP #78 we have discussed Change tracker (CT) which was introduced in SQL SERVER 2008. CT feature only...
2014-12-27
1,056 reads
I am pretty much sure by the title of this post you had idea of the post content. Although I...
2014-12-21
706 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...
WhatsApp CS 628218520154 Jl. Suryopranoto No.40, RT.12/RW.7, Petojo Utara, Kecamatan Gambir, Kota Jakarta Pusat,...
WhatsApp CS 628218520154 Jl. Pegangsaan Timur No.1, Cikini, Kec. Menteng, Kota Jakarta Pusat, Daerah...
WhatsApp CS 628218520154 Jl. Pintu Air Raya No.36 Q, RT.6/RW.1, Ps. Baru, Kecamatan Sawah...
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