In this post, I am sharing the use of sp_MSforeachtable stored procedure of SQL Server. This is an undocumented object of SQL Server, but still, you can use this stored procedure. When we require executing same T-SQL command for all the tables, we can use this stored procedure. Many times we need to run drop/truncate […]

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.