Linked Server Creation - Connect sql sever 2008 from 2000

  • Hi,

    Since this may be concerned as a kiddish question. But this is required.

    I need to connect the sql server 2008 database from sql server 2000. Since the client has been using the 2000 version database and they want to pull some data from sql server 2008 database. I have tried to create the linked server for this with below T-SQL statements.

    EXEC sp_addlinkedserver

    @server = 'LS',@datasrc = 'ServerName',

    @provider = 'SQLOLEDB', @srvproduct = '', @catalog = 'databaseName'

    EXEC sp_addlinkedsrvlogin 'LS','false',NULL, 'Username', 'password'

    EXEC sp_serveroption 'LS','data access','on'

    EXEC sp_serveroption 'LS','rpc out','on'

    EXEC sp_serveroption 'LS','rpc','on'

    The linked server object is created. But when I am trying to fetch the objects with below query

    select top 5 * from [CCM7Dev].OEDB70_intermediary.dbo.company

    I have received the below error.

    [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

    I am suspecting whether it is possible or not for below reasons.

    >Version compatiability problem

    >Provider mismatch or updagradation required

    >Connection problem.

    Note: I have used the valid credential to access the server. Openrowset method may not suit to my requirement.

    Kindly advise me on this.

    Thanks in advance.

    Ramkumar.K

    Ramkumar . K
    Senior Developer
    ######################
    No Surrender... No Give Up....
    ######################

  • Didi you ever find a solution to this? I am having the same problem.

  • I thank to yoy for the script above, it so helpfull to me.

    I have the enterprise edition for sql server 2008 and standar for 2000. No aditional problems.

    Regards.

  • Thanks Man. Atlease for you it has worked. :-).

    May be the SQL Server version name you specified could help to investigate further on this.

    Thanks.

  • This solution worked fine for me as well.

    Thanks a lot.

    Lucas

Viewing 5 posts - 1 through 4 (of 4 total)

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