?
Solved

Could not find stored procedure 'spMsForEachDb'.

Posted on 2010-08-20
4
Medium Priority
?
459 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
[X]
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
4 Comments
 
LVL 6

Assisted Solution

by:Patrick Tallarico
Patrick Tallarico earned 200 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 200 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 1600 total points
ID: 33489542
sp<underscore>msforeachdb
..
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33489585
Thanks experts.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

771 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