New DB Generation - user defined data types?

A SQL Server Management Studio add-in to source control your database in Subversion or Team Foundation Server.

Moderators: Chris Auckland, David Atkinson, sherr, PhilScrace, andy.campbell.smith

New DB Generation - user defined data types?

Postby jchizmas » Wed Nov 14, 2012 9:51 pm

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.
jchizmas
 
Posts: 2
Joined: Wed Nov 14, 2012 9:43 pm

Guess I'm all set now!

Postby jchizmas » Thu Nov 15, 2012 2:18 pm

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!
jchizmas
 
Posts: 2
Joined: Wed Nov 14, 2012 9:43 pm

Postby peter.peart » Thu Nov 15, 2012 5:16 pm

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
peter.peart
Site Admin
 
Posts: 362
Joined: Tue Sep 02, 2008 9:58 am
Location: Top floor, RG towers with the cool kids


Return to SQL Source Control 3

Who is online

Users browsing this forum: No registered users and 1 guest