I have a table (Major) without any foreign keys and just two fields: ID and Name. I’m using VS2010 Ultimate Database projects to create my tables, etc. I have a Data Generation Plan which is behaving strangely. The Major.Name field is populated via Regular Expression which is an or of 6 values. I have the table configured to generate 5 rows but for some reason VS is showing that the unique constraint on this column is being violated when I run the Data Generation Plan. You can get the demo project here:
Thanks!
The solution is to set the Seed property of the Regular Expression Column to 0.