Quantcast
Viewing all articles
Browse latest Browse all 12963

Problem to create database after Drop

Hi,

I need to create automatically a lot of databases but sometimes I get errors. So, I drop the database and try to recreate them but, when I try to recreate them, SQL Server says : "impossible, database already exist, change the name".

So after 5 tries with a 100ms pause in between each, I use DBCC FREEPROCCACHE and it's ok.

But, using FREEPROCCACCHE beeing very violent I trying to find how to manage that in a better way.

Is it possible to do something else ?

Thanks



Viewing all articles
Browse latest Browse all 12963

Trending Articles



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