To create a select statement for all tables in the database

The following will create a select statement for Sql Server for all tables in the database:

SELECT ‘SELECT FROM ‘ + name FROM sys.Tables

Comments are closed.