Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Select Statement

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-03-14 : 09:26:51
Honnu writes "Hi Guys,

How to retrive the rows from all the tables(174) in a database in the sql 2000 server. we are having one common column for all the tables"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-14 : 09:36:30
Why do you need this?

One of the ways

Run this

Select 'Select columns from '+ table_name Information_Schema.columns where column_name='yourcol'

copy the result back to Query Analyser and run them

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

JimL
SQL Slinging Yak Ranger

1537 Posts

Posted - 2006-03-14 : 10:40:28
quote:
tables(174)

Talk about a performance crusher.

Jim
Users <> Logic
Go to Top of Page
   

- Advertisement -