Skip to content
  • Home
  • About – Tomas Lind
  • Contact
  • Blog Series
    • Technical Analysis (TA)
  • T-SQL
    • T-SQL Scripts
    • Templates
  • Consulting Services
  • Software
Tomas Lind
  • Home
  • About – Tomas Lind
  • Contact
  • Blog Series
    • Technical Analysis (TA)
  • T-SQL
    • T-SQL Scripts
    • Templates
  • Consulting Services
  • Software

Daily Archives: 2014/01/30

  1. Home>
  2. 2014>
  3. January>
  4. 30
Read more about the article sp_MSforeachdb
Microsoft SQL Server

sp_MSforeachdb

  • Post author:Tomas Lind
  • Post published:2014/01/30
  • Post category:System Stored Procedures
  • Post comments:1 Comment

sp_MSforeachdb is an undocumented system stored procedure that lets you iterate through all databases on an instance and execute a T-SQL statement. This can be a very handy tool for the DBA. For instance, let us create a script that lists all tables and their size on a server instance.

(more…)

Continue Readingsp_MSforeachdb

confided data manager

Get compliant with the GDPR!


High Coast Database Solutions

High Coast Database Solutions

sql server consulting services


Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Top Posts & Pages

  • Using MapForce to insert hierarchical XML to relational tables
  • How to align columns in Notepad++
  • CDC Cleanup job
  • SQL Server Alert not firing
  • An alternative to xp_fixeddrives

Recent Posts

  • Get element max value from folder with XML files
  • Dynamic Data Masking (DDM) – Mask query results
  • The T-SQL Merge statement
  • From SQL Server to MSMQ using PowerShell
  • Identity columns that are about to overflow

Archives

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright - OceanWP Theme by OceanWP