Solved

Could not find stored procedure 'spMsForEachDb'.

Posted on 2010-08-20
4
450 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
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.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

803 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