Index: branches/eam_branches/20100225/ippToPsps/scripts/pspsSchema2xml.pl
===================================================================
--- branches/eam_branches/20100225/ippToPsps/scripts/pspsSchema2xml.pl	(revision 27517)
+++ branches/eam_branches/20100225/ippToPsps/scripts/pspsSchema2xml.pl	(revision 27526)
@@ -89,5 +89,5 @@
 
             while (<FILE>) {
-                if ($_ =~ m/.*CREATE TABLE.*$tableName/) {
+                if ($_ =~ m/.*CREATE TABLE\s+dbo\.$tableName\s*\(/i) {
 
                     close (FILE);
@@ -209,5 +209,5 @@
         }
 
-        if($reading && $_ =~ m/^\)/) {$reading = 0;}
+        if($reading && $_ =~ m/^\s*\)\s*/) {$reading = 0;}
 
         if(!$reading) {next;}
@@ -218,5 +218,5 @@
         if (!$line) {next;}
         if (length($line) < 5) {next;}
-        if ($line =~ m/^--/) {next;}
+        if ($line =~ m/^\s*--/) {next;}
         if ($line =~ m/\/\*/) {next;}
         if ($line =~ m/\*\//) {next;}
