Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Data loading is incomplete -

$
0
0
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]

Viewing all articles
Browse latest Browse all 6525

Trending Articles