How To Get the Publication Name of a Replicated Table

When replication is configured for too many tables, it might be sometime time taking to search for the publication name when you want to do some alteration.

Below is small piece of code which will give you the publication name for required table.

SELECT as [Publication_Name], as [TableName],
sart.dest_table as [DestinationTable_Name] FROM
syspublications spub 
sysarticles sart ON spub.pubid = sart.pubid
WHERE ='YourTableName'