Red Gate forums :: View topic - Trouble with UDTs
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

Trouble with UDTs

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
marcuslund



Joined: 31 Mar 2010
Posts: 1

PostPosted: Wed Mar 31, 2010 7:44 am    Post subject: Trouble with UDTs Reply with quote

Hi,

We are having problems with SQL Comparison due to the UDTs we have in our database. When the Block is executed, we get the following error:
Cannot drop type 'dbo.ShapeCollection' because it is currently in use.

This occurs in the following Batch:
DROP TYPE [dbo].[ShapeCollection]

All constraints and columns referencing the UDT need to be dropped before the UDT is being dropped. This is obviously not occurring.

Is there something I can do to get SQL Compare to generate a script that will successfully drop the UDT?

Thanks...
Back to top
View user's profile Send private message
peter.peart
Site Admin


Joined: 02 Sep 2008
Posts: 362
Location: Top floor, RG towers with the cool kids

PostPosted: Wed Mar 31, 2010 1:27 pm    Post subject: Reply with quote

Hi Marcus,

Many thanks for your post.

This is a known issue with the SQL Compare engine and is logged under reference number SC-4582.

Unfortunately, as this is an issue with the parser, I'm not sure how quickly we will be able to fix it. Any fixes to the parser touch quite a lot of code, so it probably wouldn't be safe to issue a 'quick fix' in this situation.

As a workaround though, you may be able to 'comment out' the line in the script. If you haven't got too many instances of this problem, then it might work as a temporary fix until will release a version that supports the syntax.

I have added this post to the bug report and will let you know when we have an updated version of the SQL Compare engine that supports this.

Pete
_________________
Peter Peart
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group