I have two database\'s, named DB1 and DB2 in Sql server 2008. These two database\'s have the same tables and same table data also. However, I want to check if there are an
If the database are in the same server use [DatabaseName].[Owner].[TableName] format when accessing a table that resides in a different database.
[DatabaseName].[Owner].[TableName]
Eg: [DB1].[dbo].[TableName]
[DB1].[dbo].[TableName]
If databases in different server look at on Creating Linked Servers (SQL Server Database Engine)