Linked server 2005 to 2008

  • Hello. Can I create a linked server from a SQL 2005 machine to a SQL 2008 machine? If so, could someone drop me a quick script?

    Ken

  • Yes, you can create a linked server from 2005 to 2008.

    There are many example scripts in Books Online for using sp_addlinkedserver

    http://msdn.microsoft.com/en-us/library/ms190479.aspx

  • Have you actually done 1 of these? I've tried a couple variations of @svrproduct and @provider without luck. I can of course connect to this 2008 server from another 2008 machine so my security settings on the target machine are correct.

    Ken

  • My bad. My setup was not right after all. I got it. Linked server from 2005 to 2008 is the same as 2008 to 2008.

    Ken

  • Glad you got it working. I was just about to supply a simple example. This is if you are using a default instance and not a named instance.

    EXEC master.dbo.sp_addlinkedserver

    @server = N'<your2008servername>',

    @srvproduct=N'',

    @provider=N'SQLNCLI',

    @datasrc=N'<your2008servername>',

    @catalog=N'<your2008dbname>'

    GO

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

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