What is the best way to remove all the data from all the tables except look-up tables data using TSQL in SQL Server 2012 and downwards? I would like the TSQL identify and exclude look-up tables then create truncate table statements for the other tables.
** There is almost a similar question but it truncates all the tables.