Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/08/2009, 14:20
Avatar de Andres95
Andres95
Colaborador
 
Fecha de Ingreso: diciembre-2004
Mensajes: 1.802
Antigüedad: 19 años, 5 meses
Puntos: 38
Respuesta: Select entre 2 servidores

el linked server lo tendrias que configurar en tu server fuente (donde ejecutaras tu proceso) para apuntar hacia el server destino.

Configuring Linked Servers


despues podrias acceder a la tabla haciendo referencia con el nombre en 4 partes..
[Server].[base de datos].[owner].[nombre tabla]

por ejemplo

Código:
SELECT MISCAMPOS
FROM   MISERVIDORLINKED.MIBD.DBO.MITABLA
WHERE MISCONDICIONES

Saludos!
__________________
La sencillez y naturalidad son el supremo y último fin de la cultura...
--
MCTS : SQL Server 2008, .NET Framework 3.5, ASP.NET Applications.