我编写了一个脚本,通过从源服务器读取数据将数据插入目标服务器。由于某种原因,它不会将数据插入目标表。查询
有什么问题吗?insert into [GBIPS-I-DB324D].[CoreReferenceStaging].[dbo].[FinData2000_1]
select fp.calendarYear, fp.calendarQuarter, fp.companyid, fd.dataitemid, fd.dataitemvalue, fp.fiscalyear, fp.fiscalquarter, fi.periodenddate, fi.filingdate, fi.latestforfinancialperiodflag, fi.latestfilingforinstanceflag
from [GBIPS-I-DB48D\SQL2008R2].[Xpressfeed_dev].[dbo].[ciqFinPeriod] fp
inner join [GBIPS-I-DB48D\SQL2008R2].[Xpressfeed_dev].[dbo].[ciqFinInstance] fi on fi.financialPeriodId = fp.financialPeriodId
inner join [GBIPS-I-DB48D\SQL2008R2].[Xpressfeed_dev].[dbo].[ciqFinInstanceToCollection] fc on fc.financialInstanceId = fi.financialInstanceId
inner join [GBIPS-I-DB48D\SQL2008R2].[Xpressfeed_dev].[dbo].[ciqFinCollection] c on c.financialCollectionId = fc.financialCollectionId
inner join [GBIPS-I-DB48D\SQL2008R2].[Xpressfeed_dev].[dbo].[ciqFinCollectionData] fd on fd.financialCollectionId = c.financialCollectionId
where YEAR(fi.periodenddate) = 2000 and DATEPART( quarter,fi.periodenddate) = 1