text: SET QUOTED_IDENTIFIER ON
  GO
  SET ANSI_NULLS ON
  GO
  CREATE FUNCTION [tSQLt].[Private_ResolveApplyConstraintParameters]
  (
    @A NVARCHAR(MAX),
    @B NVARCHAR(MAX),
    @C NVARCHAR(MAX)
  )
  RETURNS TABLE
  AS 
  RETURN
    SELECT ConstraintObjectId, ConstraintType
      FROM tSQLt.Private_FindConstraint(OBJECT_ID(@A), @B)
     WHERE @C IS NULL
     UNION ALL
    SELECT *
      FROM tSQLt.Private_FindConstraint(OBJECT_ID(@A + '.' + @B), @C)
     UNION ALL
    SELECT *
      FROM tSQLt.Private_FindConstraint(OBJECT_ID(@C + '.' + @A), @B);
  GO
  