Linked Servers

  • Hi,

    In side-by-side upgrade from 2000 to 2008 , I need help with linked servers. How to migrate them and where to get info ?

    Thanks

    SVR

  • Maybe this can get you started:

    -- Overzicht Linked Servers SQL7.0 en SQL2000

    -- SELECT srvid, srvstatus, srvname, srvproduct, providername, datasource, location, providerstring, schemadate, topologyx, topologyy, catalog, srvcollation, connecttimeout, querytimeout, srvnetname, isremote, rpc, pub, sub, dist, dpub, rpcout, dataaccess, collationcompatible, system, useremotecollation, lazyschemavalidation, collation

    -- SELECT srvid, sid, xstatus, xdate1, xdate2, name, password, dbid, language, isrpcinmap, ishqoutmap, selfoutmap

    set nocount on

    print 'Linked Servers for [' + @@Servername + ']'

    print '------------------- ***********'

    if not exists (select 1 from master.dbo.sysservers where srvid > 0)

    begin

    print 'No linked servers.'

    end

    else

    begin

    select *

    from master.dbo.sysservers

    where exists (select 1 from master.dbo.sysservers where srvid > 0)

    order by srvid

    print 'Linked Server UserSettings for [' + @@Servername + ']'

    print '------------------------------- ***********'

    select S.srvname, L.xdate1, L.xdate2, L.name, L.dbid, L.language, L.isrpcinmap, L.ishqoutmap, L.selfoutmap

    FROM master.dbo.sysxlogins L

    inner join master.dbo.sysservers S

    on L.srvid = S.srvid

    and S.srvname <> @@servername

    order by S.srvid

    end

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply