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