Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
we have a lot of databases (MDB) which all have a common table (data), in the table (data) there is are three columns (Board, Process, date) which i need to extract.
Can someone please provide a script for the same.

What I have tried:

I am new to SQL and have tried a few basic select statements but they havent worked.
Posted
Comments
Sergey Alexandrovich Kryukov 11-Feb-16 23:51pm    
Why, why using the section "What I have tried" and not even trying to tell what you have tried?
—SA

1 solution

Maybe something like this:

SQL

DECLARE @cmd varchar(max)
SELECT @cmd = 'select Board, Process, date from data'
EXEC sp_MSforeachdb @cmd
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900