Using ExcludeColumns switch correctly
gvsoft
Posts: 20 Bronze 1
Hello,
I am using SQL Data Compare from the command line. I want to exclude a couple of columns on a table named, "Report". I am using the switch like this:
/excludecolumns:Report:CreatedTime,ModifiedTime
The problem is, since the table name is a regular expression, this matches several other tables with the word "Report" in them, resulting in errors that the specified columns do not exist. I have tried:
/excludecolumns:^^Report$:CreatedTime,ModifiedTime
/excludecolumns:^[Report^]:CreatedTime,ModifiedTime
. . . to no avail. This is ridiculous. What do I have to do to use ExcludeColumns correctly for this SIMPLE case?
I am using SQL Data Compare from the command line. I want to exclude a couple of columns on a table named, "Report". I am using the switch like this:
/excludecolumns:Report:CreatedTime,ModifiedTime
The problem is, since the table name is a regular expression, this matches several other tables with the word "Report" in them, resulting in errors that the specified columns do not exist. I have tried:
/excludecolumns:^^Report$:CreatedTime,ModifiedTime
/excludecolumns:^[Report^]:CreatedTime,ModifiedTime
. . . to no avail. This is ridiculous. What do I have to do to use ExcludeColumns correctly for this SIMPLE case?
Comments
I should also point out that I am attempting to do this from a batch file. So I am pretty certain that need to escape the hat '^' character, hence my use of:
^^Report$
I eagerly await a reply.
But this is a different point altogether, the program is broken and using the correct syntax will not help you.
But because '^' is an escape character, it cannot be used by itself without being treated like an escape character. Therefore, to have it treated like a normal '^', it must be escaped as "^^".
Try this in a batch file:
The first line will display a single '^'. The second will not. In fact, it will cause problems in the batch if left alone.
Can I expect a fix to the program any time soon?