IsNull(ExecuteSql('Numeric', 'SELECT 1 FROM sys.tables a  INNER JOIN sys.indexes b ON a.object_id = b.object_id WHERE b.is_primary_key = 1 AND a.name = @@ObjectName AND a.schema_id = SCHEMA_ID(@@SchemaName)'), 0)