Red Gate forums :: View topic - New DB Generation - user defined data types?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control 3
SQL Source Control 3 forum

New DB Generation - user defined data types?

Search in SQL Source Control 3 forum
Post new topic   Reply to topic
Jump to:  
Author Message
jchizmas



Joined: 14 Nov 2012
Posts: 2

PostPosted: Wed Nov 14, 2012 9:51 pm    Post subject: New DB Generation - user defined data types? Reply with quote

I've played with the demo and just purchases this yesterday, but I am running into an issue I don't know how to solve:

After my database has been attached and checked in (I'm using TFS, but the same thing happens in the sample repository).

1. Create a new Database
2. Link Database to source control.

This all works as expected, but if I try to generate my new database (run all scripts such that it's current with the TFS model), it fails. It tries to generate the datatables first, but they have User Defined Data Types as columns within them, thus the column types are unknown, thus the database generation fails.

I have found the ONLY way to generate a new Database is to MANUALLY sort by and check all User Defined Data Types first, generate those, then sort and check off all Table Value Parameters, and generate those, and then it will run the rest of the table creations, stored procedures and functions just fine.

Did I miss a step? Shouldn't it know to created user defined types FIRST? Is there a way to do that? I cannot convince deployment to run this three times due to improper sequencing. Thanks.
Back to top
View user's profile Send private message
jchizmas



Joined: 14 Nov 2012
Posts: 2

PostPosted: Thu Nov 15, 2012 2:18 pm    Post subject: Guess I'm all set now! Reply with quote

Got a reply to this from technical support (I paid for support so thought I'd try that).

Their reply? The key of the three paragraphs response is....

"I cannot offer any specific advice about how to fix this."

Glad I paid for support!
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: Thu Nov 15, 2012 5:16 pm    Post subject: Reply with quote

Thanks for your post, I'm really sorry to hear that you feel that way.

Essentially, my colleague was asking for a copy of your schema as it sounds like a dependency based problem. It's not one we've come up against before, and these tend to be database specific. We therefore request that you send the schema so we can be sure that any fix we implement is guaranteed to work in your environment.

Now, we totally understand that there are occasions where people cannot send in their schema; if that's the case, you just need to say. We can TRY and repro the issue here, but if we don't get anywhere then I'm sorry to say that it's unlikely you'll get a fix.

If however you are also able to reproduce the problem on a sample DB that you CAN send us, we will gladly look at that, too.

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