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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 comparing texfile data to result set

Author  Topic 

AlexP
Starting Member

34 Posts

Posted - 2005-08-11 : 09:37:57
IF I have a table with 70,000 records is there a way that I can verify that my DTS package actually copied over all those records into the text file with precision?

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-08-11 : 10:35:25
I guess one way is to bulk insert the data back from the file into a new table and then compare the tables.

Be One with the Optimizer
TG
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-11 : 10:38:55
Other option is to run osql with RowCount On

osql -E -d DBname -S ServerName -Q "select * from yourtable; SELECT [RowCount] = @@ROWCOUNT" -o C:\osql.txt

Now the text file will have Rowcount also

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -