Shared & Private on Same Database
sonicm
Posts: 7
Hi,
We have a database that is on our main development server so is liable to be tweaked as development progresses. This has been setup as a shared database against TFS. We have also have our DBA that has it as a private database on his machine both linked to the same source control database.
The problem seems to be that when he signs items in on his private machine it all seems well. However, when we go to the shared machine it knows the structure has been updated but says nothing when you try to get latest. You can see the sign in, in the history. Also, on the shared database it wants to overwrite the changes and take them out again?
Is this setup not possible or are we doing something wrong?
Many thanks.
We have a database that is on our main development server so is liable to be tweaked as development progresses. This has been setup as a shared database against TFS. We have also have our DBA that has it as a private database on his machine both linked to the same source control database.
The problem seems to be that when he signs items in on his private machine it all seems well. However, when we go to the shared machine it knows the structure has been updated but says nothing when you try to get latest. You can see the sign in, in the history. Also, on the shared database it wants to overwrite the changes and take them out again?
Is this setup not possible or are we doing something wrong?
Many thanks.
Comments
Everyone should really be working on the same database with the shared model, or everyone should be using the dedicated model. Once changes are done on the shared database, you can deploy the changes using SQL Compare to the build server, which is going to be a one-way operation.
Thanks for the response. I did wonder if it was good practice or not.
So I feel we should look at the following:
Devs work on local machine out of source control.
Devs then update the shared DB with their changes and check it in.
We can then use a migration script to deploy to the UAT box
Sound about right?
Or everyone has their own copy of the database (dedicated model), checks in their changes, and you use SQL Compare to directly compare the files in source control to the UAT database and deploy the changes that way.
Yes that makes perfect sense I've changed our procedures to follow these guidelines.
Many thanks