Is it possible to do something like this:
DECLARE @SourceDB VARCHAR(100);
SET @SourceDB = [DatabaseName]
INSERT INTO CompletedScope
( uidInstanceID ,
completedScopeID ,
state ,
modified
)
SELECT uidInstanceID ,
completedScopeID ,
state ,
modified
FROM SourceDB.[dbo].CompletedScope;
Basically use the declared SourceDB variable in the query.