I raise my problem. I have a SQL Server 2008 Database Server in which new bases are constantly being created, many of them are also erasing them and I do not have full knowledge of how the logging works, because I can actually see which bases have been eliminated, but a while ago it stopped showing many, so I think that the LOG delete it or move it.
I would like a dynamic SQL where I indicate by any variable or cursor, all the bases that I want to consult if they exist and that for each one return the value "exists" or "does not exist".
I have nothing advanced since I can not think of how I could do it. I thought with some cursor along with a while, but it does not occur to me in truth.
Any idea how it could?