Home Forums SQL Server 2012 SQL Server 2012 - T-SQL Selecting records from multiple tables RE: Selecting records from multiple tables
Phil Parkin
SSC Guru
Points: 247210
More actions
July 2, 2015 at 1:49 am
#1809732
This is one of the few cases where dynamic SQL should be considered.
Take a look at this [/url]article on the subject, particularly the 'dynamic SQL' bit.