SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 sp_msForEachDB
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Gigabyte
Starting Member

India
30 Posts

Posted - 06/20/2012 :  13:33:04  Show Profile  Reply with Quote
When I am executing sp_msForEachDB, I am getting multiple tables in out put.

How can I catch these tables to do some modifications on the data.

Here is the exact query if you need:

exec sp_msForEachDB 'use ; select * from sales'

Thanks in advance !

GIGABYTE+

webfred
Flowing Fount of Yak Knowledge

Germany
8529 Posts

Posted - 06/20/2012 :  13:51:45  Show Profile  Visit webfred's Homepage  Reply with Quote
this should help:
http://weblogs.sqlteam.com/joew/archive/2008/08/27/60700.aspx


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000