Update with UPDLOCK
Do you think it’s a good idea to add UPDLOCK hint to the table which will be modified in an...
2012-10-10
1,465 reads
Do you think it’s a good idea to add UPDLOCK hint to the table which will be modified in an...
2012-10-10
1,465 reads
One trick I have learned from the folks on the Replication Support Team is how to proactively audit data changes...
2012-10-17 (first published: 2012-10-10)
2,934 reads
If you are trying to generate Uniqueidentifier/Newid() in SSIS data flow, you will soon realize that there is no out-of-the-box...
2012-10-16 (first published: 2012-10-10)
11,554 reads
I had a few folks ask me for the slides and SQL scripts from the Auditing SQL Server webinar I...
2012-10-10
1,567 reads
I will be speaking at SQL Saturday #145 in Nashville, TN to speak on one of my favorite topics – Virtualizing...
2012-10-10
764 reads
So, what I’d like to know is, what is your most horrifying discovery from your work with SQL Server?
Related Posts:
Data Platform MVP 2020 August 12, 2020
It's an Honor:...
2012-10-09
7 reads
High Energy Plankton
In 2022 humans will finally have become their own worst enemies/frenemies. No matter how hard Gore works to...
2012-10-09
1,090 reads
Multiple CTEs
It’s somewhat obscure in BOL and I wasn’t able to find any examples but it turns out you can...
2012-10-11 (first published: 2012-10-09)
4,590 reads
The PASS Data Architecture Virtual Chapter will host part II of Designing for Common Problems in SQL Server by Dr....
2012-10-09
600 reads
There’s still anevent in Seattle in a few weeks. As I’ve been traveling around the country, literally around through New...
2012-10-09
1,367 reads
By SQLPals
How to Clear the SSMS Cache (SSMS 21 and Later) Updated...
By Arun Sirpal
“What exactly did it do on my server?” is the first question a DBA...
By James Serra
Microsoft shared a broad set of Fabric, Power BI, and SQL updates at FabCon...
Comments posted to this topic are about the item Let's Talk Certifications
Comments posted to this topic are about the item The Hidden Security Risks of...
Comments posted to this topic are about the item The Empty Aggregate
I have this table in a SQL Server 2025 database:
CREATE TABLE [dbo].[CustomerOrder] ( [OrderID] [int] NULL, [CustomerID] [int] NULL, [total] [money] NULL ) ON [PRIMARY] GOWhat is returned from this code? (answers are for the sum and then the count)
SELECT SUM(total) AS sum,
COUNT(total) AS count
FROM dbo.CustomerOrder;
See possible answers