How to include all tables in a script file?
j.salmon
Posts: 44 Bronze 2
According to the help, I should be able to use this command to copy data from all tables:
<Include objecttype="Table">
If I want to exclude any tables, I put the exclude list after the include:
<exclude objecttype="Table" matches="\[Table1\]" />
No data is being copied. Am I doing something wrong here?
<Include objecttype="Table">
If I want to exclude any tables, I put the exclude list after the include:
<exclude objecttype="Table" matches="\[Table1\]" />
No data is being copied. Am I doing something wrong here?
Comments
I'm sorry nobody has answered this. It does look like you're using the syntax for sqlcompare for sqldatacompare, though. I'm not sure if <include objecttype=x matches=y /> works for data compare. The last time I created an XML command file and ran it successfully, this is what I used: Note that the format here is <include>objecttype:match</include>. It should be the same for exclude. I hope this helps!
Thanks for the response.
Here's the /include help section from the SQL Data Compare command line help file version: 5.4.0.64 (accessed with the verbose and HTML options)
The last line specifically states that to include all objects of a certain type, that the you should type </include:table>. What is the correct syntax.
Again, for a small database, listing all tables with includes would probably be fine. For any normal to large sized database, this isn't really a practical thing to do. Also, this creates a large amount of maintenance to have numerous developers remember to add the tables to the file and retest nightly builds, etc. [/b][/i][/quote]
Jon