Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 how to prove data imported right?

Author  Topic 

allan8964
Posting Yak Master

249 Posts

Posted - 2013-04-30 : 11:35:50
Hi there,

I use SSIS to import some text files to sql db tables. SSIS packge runs without any problem. But for some reason I need to be 100% sure the data from text files are imported to the sql tables without any change. How can I prove it? or how test it?
Thanks in advance.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-05-02 : 01:46:28
do you've set of columns identified as primary key (or business key)?
in that case you could check for case of any missing records in the table based on values in text file to make sure they all got transferred fine.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

srimami
Posting Yak Master

160 Posts

Posted - 2013-05-14 : 04:31:11
Strange but simple, your client will come back to you if there's any mismatch or something wrong with loaded data. Second way, create simple import/export job and run the mapping from SSMS; it will give you the number of rows read from Source and the number of records that were sent to target. You would see the number of records that were errored out, if any.
Go to Top of Page
   

- Advertisement -