Evil Science A whole load of stuff

24Jul/090

SQL Server 2005: sp_msForEachDB

The following storped procedure will execute the print statement for every database that resides upon your SQL Server.

EXEC sp_msForEachDB 'PRINT ''?'''

Neat, eh? 'Tis an undocumented feature.

Filed under: Code Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.