text: SET QUOTED_IDENTIFIER ON
  GO
  SET ANSI_NULLS ON
  GO
  CREATE FUNCTION [tSQLt].[Private_GetOriginalTableInfo](@TableObjectId INT)
  RETURNS TABLE
  AS
    RETURN SELECT CAST(value AS NVARCHAR(4000)) OrgTableName,
                  OBJECT_ID(QUOTENAME(OBJECT_SCHEMA_NAME(@TableObjectId)) + '.' + QUOTENAME(CAST(value AS NVARCHAR(4000)))) OrgTableObjectId
      FROM sys.extended_properties
     WHERE class_desc = 'OBJECT_OR_COLUMN'
       AND major_id = @TableObjectId
       AND minor_id = 0
       AND name = 'tSQLt.FakeTable_OrgTableName';
  GO
  