Is there a good way that will work with both SQL 2005 and SQL 2000 to determine within a stored proc if a database is a subscriber in a merge replication?
What we have done in SQL 2000 is check for the existence of the sysmergesubscriptions table with a row where the subid does not match the partnerid. In SQL 2005 the partnerid column has changed to pubid.
Is there a cleaner way?
I need a SP that will work on both.
Thanks.