Configure for user-defined datatypes
swirl80
Posts: 26
A system developed by a third party has a char udt (udtYesNo) used on a number of columns which will contain a Y or N.
Is it possible to configure data generator to say that any column which uses this udt will use [YN]. At present I believe I'd have to alter every one of these columns because by default it is choosing the regular expression [A-Z|0-9] which doesn't meet our needs.
Is it possible to configure data generator to say that any column which uses this udt will use [YN]. At present I believe I'd have to alter every one of these columns because by default it is choosing the regular expression [A-Z|0-9] which doesn't meet our needs.
Comments
Hopefully this helps.
One thing to note, I could only get this to work on anything new I added to the schema (ie, I created a test table with a xxxxYesNo column), anything current seemed to ignore it. I tried refreshing the schema and closing / reloading SDG but still didn't pick it up.
In the end I created a new project using the same database and this then picked it up.....
For example instead of looking for columns *YesNo, is it possible to set this to look at all columns of datatype "udtYesNo"?
I can use the example provided by Brian for this particular column type but there are several other udt's but the naming of the column doesn't always follow standards...
SQL Data Generator has a hard-coded "server assigned" generator for IDENTITY columns that you cannot change because identity columns have to conform to the constraint on the server anyway (seed value, increment, and current value). The topic was primarily about that, so I was going to raise a feature request to allow "at your own risk" changes there if there is a need for it.