Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. system table sysmergesubscriptions: replacements for distributor and srvid

system table sysmergesubscriptions: replacements for distributor and srvid

Scheduled Pinned Locked Moved Database
databasephpsql-servercomsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roland Bar
    wrote on last edited by
    #1

    Hi The system table sysmergesubscriptions has changed from SQL Server 2000 to SQL Server 2005. The columns distributor and srvid are no more available. I have a stored procedure that used this columns that is not working when it should be used on an SQL Server 2005 or 2008. Are there any replacements for this columns and is it possible to use them also on SQL Server 2000? Here is the query that uses this columns:

    DECLARE repl_cur CURSOR FOR
    SELECT
    mp.name,
    me.srvname,
    mp.publisher,
    mp.publisher_db,
    ms.db_name,
    ms.subscription_type,
    ms.distributor
    FROM
    sysmergepublications mp
    INNER JOIN
    sysmergesubscriptions ms
    ON ms.pubid = mp.pubid
    INNER JOIN
    master.dbo.sysservers me
    ON ms.srvid = me.srvid
    INNER JOIN
    sysmergearticles ma
    ON ma.pubid = ms.pubid
    WHERE
    ma.name = 'PasswordCounter'
    AND ms.subscription_type = 1

    Thanks for your help Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups