Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Concatenate tables
Message
General information
Forum:
Microsoft SQL Server
Category:
Scripting
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01489196
Message ID:
01489197
Views:
68
You can get the list of tables with following query. Loop through it, build and execute INSERT INTO...SELECT FROM for each table.
SELECT table_name
	FROM INFORMATION_SCHEMA.Tables
	WHERE TABLE_NAME LIKE 'IOM%'
>Hi All, I have a couple of hundred tables in SS that have a prefix of IOM in their name, they all have the same structure which is a single column. What I want to do is create a master table containing all the records of these tables - obviously I don't want to do this manually - any ideas ?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform