Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Mitch Spruill,
Create the procedure and call it passing in the source databse name, target database name, source table name, and target table name.
NOTE: if the source table doesn't have a identity column or primary key, then the join statement from the output will have to be altered.
source as variable
Shared Data Sources
SSRS and Data Sources
OLEDB source error