🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1736

Re: ayuda en sql server

#1736
From: SrKaos
Date: Mon, 05 Jun 2006 20:53
23 lines
1604 bytes
Muchas gracias por la ayuda.
Cree 2 base de datos para probar bd1 y bd2. (el ejemplo es estupido pero 
para probar sirve :P) y funciono.

SELECT *
FROM db1.dbo.Empleado, Empleado_Rut
WHERE id_empleado = id_empleado_rut

Vuelvo a darles las gracias ya que estaba apurado y necesitaba saber si se 
podia o no.


"Mauricio G�mez" <pregunte@sileinteresa.com> escribi� en el mensaje 
news:e621mi$k1u$1@news.nivel5.cl...
> Hum si mal no recuerdo, *desde BD2* puedes hacer algo como
>
> select * from BD1..tabla1, tabla2 where tabla1.clave = tabla2.clave
>
> asumiendo que tu usuario tiene permisos de select sobre tabla1 en BD1,. y 
> tabla2 existe en BD2.
>
>
> rro
Technical Details
Message-ID: <e625km$l7r$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
References: <e62090$jfh$1@news.nivel5.cl> <e621mi$k1u$1@news.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,24da29a185f44411
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
From: "SrKaos" <srkaos@chuchunco.cl>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda en sql server
Date: Mon, 5 Jun 2006 16:53:48 -0400
Organization: Varios
Lines: 25
Message-ID: <e625km$l7r$1@news.nivel5.cl>
References: <e62090$jfh$1@news.nivel5.cl> <e621mi$k1u$1@news.nivel5.cl>
NNTP-Posting-Host: 190.44.143.74
X-Trace: news.nivel5.cl 1149540826 21755 190.44.143.74 (5 Jun 2006 20:53:46 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Mon, 5 Jun 2006 20:53:46 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869