Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Execute SQL task fails as maybe DB not fully "online" yet?

$
0
0

I have a package built, that on first couple of tries, worked beautifully. Now, I "often", not always, get an error on one of the tasks. The package backs up dbs, restores them on another server, and then also does a logical file rename. The issue I see, is the logical rename sometimes fails. Exact same execute SQL task, with exact same commands. I'm wondering, is it possible that depending on server response, the restore has not fully put the server in multi-user mode or some such thing, before the next task fires off to do the rename? Would it be best to leave the db in single user mode until I rename, and then set it in multi-user after, or maybe some form of a "pause" (which I hate to inflect in cases where it is not needed) between the tasks?

mpleaf


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>