Home Forums Article Discussions Article Discussions by Author Discuss Content Posted by David Bird SQL Overview SSIS Package III - Full Package RE: SQL Overview SSIS Package III - Full Package
David Bird
SSCarpal Tunnel
Points: 4669
More actions
July 7, 2008 at 11:32 am
#839060
Try using
SELECT name
FROM master.dbo.sysdatabases
WHERE status&512 = 0
and status&32 = 0
Any databases that are offline or being loaded will be skipped.
For a list of all the status values take a look at this post by
Lowell