User Defined Table Type - Issue with Defaults
In cases where I have User Defined Table Type with a Default, the default value gets replaced with a comment and the script fails with a syntax error.
e.g.
Original Create:
SC output:
I have 10-12 of these Table Types and in all cases where I have a Default value, it gets replaced with "-- No text is available,"
Please advise. Thank you.
Best Answer
-
Eddie D Posts: 1,803 Rose Gold 5Hi,
using command line versions V13.3.6.6387 and V13.4.5.6953 of SQL Compare, I cannot recreate the reported problem where the default value for the nolock becomes:[nolock] [bit] NOT NULL DEFAULT -- No text is available,I have tried to locate the version of SQL Compare you are using, V13.0.7.5250. Sadly the versioning history in the releases notes for both SQL Compare and DLM Automation V2, contain no mention of this version. V13.0.6 become available on the 9th October 2017 for SQL Compare and 11th October 2017 for DLM Automation V2. With V13.1 released on the 16th October 2017 for SQL Compare and 25th October 2017 for DLM Automation V2.
I recommend that you upgrade your SQL Compare installation using the 'check for Updates' feature to the latest version and confirm if you are still experiencing the problem you reported in this forum topic.
Many Thanks
Eddie
Answers
I'm not seeing any issues there. Using this query:
All have the correct value in that column.
Roughly:
These are the options i'm using:
Thanks Eddie. Yes, version 13.4 did fix the issue with Types, however, now I'm running into an issue that it is not creating Sequence objects. Is that a known issue/limitation? I'm going to abandon using the bak as the compare source for now.
Thank you for your reply.
SQL Compare does support Sequence objects.
From your last comment:
Is this only occurring when you use a backup file as a data source?
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com