Avatar of TeDeSm
TeDeSm

asked on 

How to add tables from different SQL Server instances to a View

I  need to create a Stored Procedure in one database flosserv2\MyDatabases that will include tables from that database and also a table from another database that is in another SQL instance floserv2\invu.

The sp will be in floserv2\MyDatabases (2005) and will need to also include a table from floserv2\invu (2008 express).

I can see the databases from each SQL instance but can only add tables to views and sp's in floserv2\MyDatabases, I cannot add any tables from floserv2\invu.

I get the message 'Could not find server 'ServerName' in sysservers. Execute sp_addlinkedserver to add the server to sysservers. '

Not too sure what to do and where.
Microsoft SQL Server 2005Microsoft SQL Server 2008Visual Basic.NET

Avatar of undefined
Last Comment
TeDeSm

8/22/2022 - Mon