My problem is:
I would like to fill a table with:
Insert into TDest Select * from Tsource
The problem is that: If Tsource is empty, I would like to perform a task tell that the table Tsource is empty.
I think:
Insert into TDest Select * from Tsource
IF @@rowcount = 0 .....
Is there another way to do it (I do not want to verify if the table is empty Like: count(), but directly or after the statement: Insert into TDest Select * from Tsource)
Thank