Home Forums SQL Server 2008 SQL Server 2008 - General Do I need a linked server if both databases reside within the same SQL Named Instance? RE: Do I need a linked server if both databases reside within the same SQL Named Instance?
Ant-Green
SSC Guru
Points: 113446
More actions
January 23, 2013 at 1:33 am
#1579938
If they exist on the same instance no, use cross database queries
Like the following.
INSERT INTO DatabaseA.dbo.Mytable SELECT Col1, Col2 FROM DatabaseB.dbo.MyTable
If the database was on a different server, then yes a linked server would be needed.