How can you compare two tables -- say, table A and table B and determine if their content is the same? Assuming that A and B have same structure, here's how:
First, from set theory, recall that:
If ((|A| = |B|) && |A U B| = |A|)) ====>>> A = B
|A| = NUMBER of rows in A
|B| = NUMBER of rows in B
Write Reports from SQL to Disk (Even HTML!)
Ever need to write reports out to a folder? I have found that creating output files are SA-WEET! (and easy too) The sample script uses BCP to create an HTML file.This process works well for reports that need to be generated nightly and take too long to run in real time. Use an SMTP mail […]
2002-04-18
4,310 reads