摘要: There are times when I find myself needing to run a SQL command against each database on one of my SQL Server instances. There is a handy undocumented stored procedure that allows you to do this without needing to set up a cursor against your sysdatabases table in the master database: sp_MSforeachdb. 阅读全文
posted @ 2016-04-11 20:01 脸谱匠 阅读(362) 评论(0) 推荐(0) 编辑