views:

870

answers:

2

Can you please explain how to setup a linked server between a SQL Server (A) and a SQL Server Express (B) scenario.

Server A is SQL Server 2000, whereas Server B is SQL Server 2005 Express.

I have set these up in the past, but none where connected to a SQL Server Express version.

Thanks, Billy

A: 

You can use this sp to do it.

EXEC sp_addlinkedsrvlogin @rmtsrvname = 'MylinkedServer',
    @useself = 'FALSE',
    @locallogin = NULL,
    @rmtuser = 'me',
    @rmtpassword =  'myrmtpassword'
Irwin M. Fletcher
i have tried this. I get the following error:OLE DB provider "SQLNCLI" for linked server "MyServerName" returned message "Communication link failure".Msg 10054, Level 16, State 1, Line 0TCP Provider: An existing connection was forcibly closed by the remote host.Msg 18456, Level 14, State 1, Line 0Login failed for user 'Me'.
Billy Logan
This approached worked for me after i changed to the proper user. Thank you very much.
Billy Logan
A: 

You could try using the sp_addlinkedserver stored procedure:

http://blogs.techrepublic.com.com/datacenter/?p=133

Sql server Express supports linked servers

Shiraz Bhaiji