Mar 31, 2006 #1 mrfritz44 MIS Nov 21, 2003 75 US Is it possible to run a single query to audit the row counts of the tables for an entire database? My final goal is to find the tables that differ in terms of row count from two separate databases on two different servers. Any help would be apreciated. Thanks, Fred
Is it possible to run a single query to audit the row counts of the tables for an entire database? My final goal is to find the tables that differ in terms of row count from two separate databases on two different servers. Any help would be apreciated. Thanks, Fred
Mar 31, 2006 #2 vongrunt Programmer Mar 8, 2004 4,863 HR Single query - no. Single small batch or sproc - yes. ------ [small]select stuff(stuff(replicate('<P> <B> ', 14), 109, 0, '<.'), 112, 0, '/')[/small] Upvote 0 Downvote
Single query - no. Single small batch or sproc - yes. ------ [small]select stuff(stuff(replicate('<P> <B> ', 14), 109, 0, '<.'), 112, 0, '/')[/small]
Mar 31, 2006 Thread starter #3 mrfritz44 MIS Nov 21, 2003 75 US This needs to be done with Oracle SQL on an Oracle box.....any hints onthe syntax for that batch? Upvote 0 Downvote
Mar 31, 2006 #4 SQLBill MIS May 29, 2001 7,777 US Most valuable hint: Post in an ORACLE forum on this site. This forum is for Microsoft SQL Server. -SQLBill Posting advice: FAQ481-4875 Upvote 0 Downvote
Most valuable hint: Post in an ORACLE forum on this site. This forum is for Microsoft SQL Server. -SQLBill Posting advice: FAQ481-4875
Mar 31, 2006 #5 philhege Programmer Feb 1, 2001 2,114 US FWIW, here's a DB-agnostic comparison tool: http://www.dbbalance.com/products.htm Phil Hegedusich Senior Programmer/Analyst IIMAK http://www.iimak.com----------- Eschewing obfuscation diurnally. Upvote 0 Downvote
FWIW, here's a DB-agnostic comparison tool: http://www.dbbalance.com/products.htm Phil Hegedusich Senior Programmer/Analyst IIMAK http://www.iimak.com----------- Eschewing obfuscation diurnally.