Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Could not find stored procedure 'spMsForEachDb'.

Posted on 2010-08-20
4
452 Views
Last Modified: 2012-05-10
what is causing the above error, even though I have mentioned the ? to get every db, in the foll?

exec spMsForEachDb 'select db_name(),Table_name from  [?].INFORMATION_SCHEMA.COLUMNS where table_name = ''TrackerCode'''

thanks.
0
Comment
Question by:anushahanna
4 Comments
 
LVL 6

Assisted Solution

by:Patrick Tallarico
Patrick Tallarico earned 50 total points
ID: 33489437
Do you get the same error with the following code?
use master
go
exec spMsForEachDb 'select db_name(),Table_name from  [?].INFORMATION_SCHEMA.COLUMNS where table_name = ''TrackerCode'''
0
 
LVL 31

Assisted Solution

by:James Murrell
James Murrell earned 50 total points
ID: 33489456
try use master
go
exec spMsForEachDb 'select db_name(),Table_name from  [?].INFORMATION_SCHEMA.COLUMNS where table_name = ''TrackerCode'''

the ''TrackerCode'' are singles
0
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 400 total points
ID: 33489542
sp<underscore>msforeachdb
..
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33489585
Thanks experts.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question