question

SrinivasaRaoKothapalli-4581 avatar image
0 Votes"
SrinivasaRaoKothapalli-4581 asked BertZhoumsft-7490 commented

Dynamic Mearge statement in SQL sever

if possible to write dynamic merge statement in SQL severe for multiple tables to perform incremental load

sql-server-transact-sql
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you please elaborate on your question? In general, yes, of course, you can create dynamic SQL for any operation.

0 Votes 0 ·

Hi,@SrinivasaRaoKothapalli-4581

Do you have further question on this , could we offer more support?
If this helps on your issue, you could mark it as answer so other user with similar problem could see this easier. :)

Bert Zhou

0 Votes 0 ·

1 Answer

BertZhoumsft-7490 avatar image
0 Votes"
BertZhoumsft-7490 answered BertZhoumsft-7490 edited

Hi,@SrinivasaRaoKothapalli-4581

Welcome to Microsoft T-SQL Q&A Forum!

It's certainly possible , when people encounter a report that some data is missing from a database table , they often wonder if they can insert through merge , which was implemented many years ago , please refer to article1 and article2 , it will help you .

Best regards,
Bert Zhou


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.