Home Forums SQL Server 2008 SQL Server 2008 - General How to Loop through all DBs in an Instance? RE: How to Loop through all DBs in an Instance?
ReamerXXVI
Ten Centuries
Points: 1379
More actions
January 23, 2013 at 11:01 pm
#1580355
It is just an example, the cursor here just gets the DBName and I try and change to the context of that DB.
I know it's not actually do anything as it is just and example, the whole point is how to change DB context dynamically?