I have a script that runs SELECT INTO in a table. As far as I know, there are no other procedures that could reference / modify this table at the same time. However, after a while I get the following error:
The scene changed after the destination table was created. Repeat selection to request.
What can cause this error and how to avoid it?
I did some search queries, and this link suggests that SELECT INTO cannot be used safely without any crazy try-catch-retry logic. Is this really so?
I am using SQLServer 2012.
source share