I'm looking for a way to truncate all tables on one schema only. I'm getting the list of all tables on that schema:
*SELECT name, object_id FROM sys.objects WHERE schema_id = (SELECT SCHEMA_ID('seg'))*
but I'm struggling to find a way to TRUNCATE all from the result set.
thanks for any points!