Insert Multiple Values into Multiple Tables in a Single Statement – SQL in Sixty Seconds #132

It is totally possible to Insert Multiple Values into Multiple Tables in a Single Statement. Let us learn how we can do that in today’s SQL in Sixty Seconds video.

One of the most popular questions, I often receive from my client  Comprehensive Database Performance Health Check. I often see people implementing triggers for this scenario. However, you can easily do that if you use the OUTPUT clause efficiently. This is available for many years in SQL Server but I do not see many people using it.

In today’s quick video we will learn How to Insert Multiple Values into Multiple Tables in a Single Statement?

If you want to download the scripts and try out yourself, here is the link to the out blog post which contains them.

If you like my videos, I request you to like, share, comment, and subscribe to these videos. Here is the link to my YouTube Videos.

Here are my recent SQL in the Sixty Seconds:

Reference: Pinal Dave (https://blog.sqlauthority.com)

Exit mobile version