Hi,We have a SQL Job that truncate tables in one database then insert into the tables from different database. Some times we are missing some data with in the destination tables even though data is exists in the source tables.Do we need to put TRUNCATE TABLE TestDB2.DBA.Test1Truncate Table TestDB2.DBA.Test2 INSERT TestDB2.DBA.Test1( col1, col2,col3,col4)SELECT col1, col2, col3,col4 FROM [TestDB1].[dbo].[Test1] INSERT TestDB2.DBA.Test2( col1, col2,col3)SELECT col1, col2, col3 FROM [TestDB1].[dbo].[Test2]
↧