SQL Server Get Identity after Insert using SP
I thought I will share my experience how you can get identity value after insert using SQL Server. I have...
2012-07-03
632 reads
I thought I will share my experience how you can get identity value after insert using SQL Server. I have...
2012-07-03
632 reads
I wouldn’t class myself as an expert in SSIS but I certainly know my way around but came across something...
2012-07-03
8,702 reads
Introduction
Microsoft SQL Server 2008 R2 and SP1 and SQL Server 2012 has a new set of DMVs that includes sys.dm_server_memory_dumps,...
2012-07-03
5,422 reads
More than a few people have asked how I’m doing with all the fires in Colorado, so I wanted to...
2012-07-02
986 reads
In the multidimensional model in SSAS, there is a storage mode called relational OLAP (ROLAP), which is the multidimensional solution...
2012-07-02
1,375 reads
A strange SQL installation error with even a stranger solution
This week I was installing SQL Server 2008 R2 Developer onto...
2012-07-02
1,018 reads
I think all of us have had poor, good, and great managers at one time or another in our career....
2012-07-02
1,963 reads
This post is part of a blog series which focuses on translating compatibility views in SQL Server to their respective...
2012-07-02
1,059 reads
We all inherit things from time to time through our profession. Sometimes we inherit some good things, sometimes we inherit...
2012-07-02 (first published: 2012-06-25)
4,522 reads
One of the great things about the Dynamic Management Objects (DMOs) that expose the information in plan cache is that,...
2012-07-02
1,503 reads
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...
By Steve Jones
No, I’m not quitting or retiring. Just going on vacation, but I leave tonight...
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