Link to home
Start Free TrialLog in
Avatar of anushahanna
anushahannaFlag for United States of America

asked on

Could not find stored procedure 'sp_msforeachtable'.

This is a SQL 2005 database? How can I verify if it is a syntax error or if the SP is indeed missing the database?

thanks
ASKER CERTIFIED SOLUTION
Avatar of carsRST
carsRST
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of anushahanna

ASKER

perfect. Thanks.
Avatar of x-men
run the query:

select * from sys.all_objects where [name] like 'sp_MSforeach%'

on master
x-men,
I just saw this response. Thanks. It is even simpler.