
29/03/2007, 14:54
|
| | Fecha de Ingreso: junio-2006
Mensajes: 109
Antigüedad: 18 años, 7 meses Puntos: 2 | |
Re: Conectar bases de distintos host en un query
Código:
SELECT A.*
FROM authors A
INNER JOIN
OPENROWSET('SQLOLEDB','NombreDelServer';'Usuario';'Password',
'SELECT * FROM pubs.dbo.authors ORDER BY au_lname, au_fname') AS B
ON A.au_id = B.au_id
Suerte |