You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--********** 085. Use sp_MSforeachtable to apply a T-SQL command to every table of selected Database in SQL Server
--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 command for all tables or REINDEX all tables, at that point instead of the manual script we can use this stored procedure.