Looking for sample TSQL to dynamically change SQL Server 2005 Connections in 1 script.. Example:
--
--Connect to SQL Server 1 <-- Need TSQL to do this
--
USE MyDB1
GO
SELECT TOP 1 * FROM CUSTOMERS
--Connect to SQL Server 2 <-- Need TSQL to do this
--
USE MyDB3
GO
SELECT TOP 1 * FROM PARTS
BT