Red Gate forums :: View topic - Interdependent functions (udf)
Return to RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare 10
SQL Compare 10 forum

Interdependent functions (udf)

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message

Joined: 11 Jul 2014
Posts: 1

PostPosted: Fri Jul 11, 2014 9:56 am    Post subject: Interdependent functions (udf) Reply with quote


We have two udf-functions which are interdependent and can call each other recursivly.

Changing the parameters and update a database with SQL compare leads in an error.
The reason is clear - but how can I avoid the error? Is there a way to solve this without Scripting?

Thank you for any help or hints!
Back to top
View user's profile Send private message
eddie davis

Joined: 14 Jun 2006
Posts: 941
Location: Red Gate Software

PostPosted: Mon Jul 14, 2014 4:04 pm    Post subject: Reply with quote

Thank you for your forum post.

You obviously have a circular dependency. One way to resolve this is to break the circular dependency and manually script the change.

Or create temp objects with the new structure. Export the data out of the existing tables and insert into the temp tables. Drop the existing objects and rename the temp objects to take over the role of the objects that were dropped.

Either way, you will need to perform some scripting.

Many Thanks
Eddie Davis
Technical Support Engineer
Red Gate Software Ltd
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