How can I consult a table in one database and another table in another database, in sql server
that is, I need to consult the company with the 2 databases
I was doing it this way but I get error
The databases are: Sk_BDDespachos
and Sk_BDDespachosPruebas
The tables are: Sk_Empresa
and Sk_Empresa
The field of tables are: Sk_Nombre_Empresa
and Sk_Nombre_Empresa
SELECT
Sk_BDDespachos.Sk_Empresa.Sk_Nombre_Empresa,
Sk_BDDespachosPruebas.Sk_Empresa.Sk_Nombre_Empresa
FROM Sk_BDDespachos.Sk_Empresa , Sk_BDDespachosPruebas.Sk_Empresa;