Technical Article

Output multiple datasets from one INVOKE-SQLCMD command

A common question that I've seen online is how do I return multiple sql datasets from a single query using INVOKE-SQLCMD. Most of the answers out there say it is not possible, but it is in fact possible by using the OutputAs dataset parameter. This parameter outputs a dataset that has all of the information […]

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2020-04-24 (first published: )

7,844 reads

Blogs

What's New in SQL Server for the Developer: SQL Server 2016

By

Part 2 of my What's New in SQL Server for the Developer series. STRING_SPLIT,...

The DBA Moves Up the Stack: From SQL Server on a VM to Azure SQL and Managed Instance

By

Note: This is more of a note to myself than an attempt to preach...

AI Center of Excellence: How to build one in 90 days

By

A practical guide to building an AI Center of Excellence, from choosing the right...

Read the latest Blogs

Forums

Legacy SQL

By skeleton567

I just read an article regarding the latest round of nation-wide system outages.  The...

The Speed of Count

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Speed of Count

Detecting Outliers in Power BI Using IQR

By Dinesh Asanka

Comments posted to this topic are about the item Detecting Outliers in Power BI...

Visit the forum

Question of the Day

The Speed of Count

Which of these might run quicker on the AdventureWorks database in SQL Server 2025?

-- A
select count(*) from AdventureWorks.Sales.OrderDetail

-- B
select count(1) from AdventureWorks.Sales.OrderDetail

-- C
select count(OrderDetailID) from AdventureWorks.Sales.OrderDetail

See possible answers