I have somehow gotten myself into the situation where I have new objects in SQL Server that we want to commit, but SQL Source Control will not show them on the Commit tab, rather they all appear as Drops on the Get latest tab. How can I fix this, and, in general, how does SQL Source Control decide which direction to use when differences exist? If it matters, we are using Git.
Comments
11 comments
-
Hi @tomslickers
Can you try unlinking and relinking your database from the repository? It will refresh the working base folder and transient folder that SQL Source Control uses behind the scene. Here is how things works behind the scene: https://documentation.red-gate.com/soc6/reference-information/how-sql-source-control-works-behind-the-scenes
-
That worked. Thanks!
-
Hi @Tianjiao_Li ,I encounter the same problem months ago and I knew I can unlink and re-link the git repository to show the new added stored procedure, I have done this operation months ago. Actually I have no idea how to reproduce it.Today I encounter the same problem again, I wonder if you can fix this. It's a little frustrated to do the boring operation.
-
Is the linked database a shared dev DB or does each developer have their own?
-
Hi @David Atkinson ,
We are using the shared model. The stored procedure was added by my colleague, it should shown as new added on commit tab,instead of shown as dropped on get latest tab.
The weird thing is, my colleague add about 10 stored procedures. But only one of them was sh -
If you do a Git pull on your instance and refresh the vomit tab, does this help?
-
David Atkinson said:If you do a Git pull on your instance and refresh the vomit tab, does this help?
So I almost don't need to use git pull feature. -
So you’re both modifying the same database? And procedures you add are always fine but your colleague is mostly shown in the get latest screen?
-
Hi @David Atkinson,
Yes, we modify the same database.
My procedures are always fine and my colleague's procedure mostly fine, sometimes it will show on get latest tab.
For example, my colleague add 10 procedures, 9 of them will shown on commit tab, but 1 of them was shown on get latest tab.
-
Hi @David Atkinson ,
We are using the shared model. The stored procedure was added by my colleague, it should shown as new added on commit tab,instead of shown as dropped on get latest tab.
The weird thing is, my colleague add about 10 stored procedures. But only one of them was shown as dropped on get latest tab, the others are shown as new added on commit tab. -
Hi @David Atkinson ,
We are using the shared model. The stored procedure was added by my colleague, it should shown as new added on commit tab,instead of shown as dropped on get latest tab.
The weird thing is, my colleague add about 10 stored procedures. But only one of them was shown as dropped on get latest tab, the others are shown as new added on commit tab.
Add comment
Please sign in to leave a comment.