How can we help you today? How can we help you today?

SQL Source Control will not show new objects on Commit tab

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.
tomslickers
0

Comments

11 comments

  • Tianjiao_Li
    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

    Tianjiao_Li
    0
  • tomslickers
    That worked. Thanks!
    tomslickers
    0
  • chuck
    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.

    chuck
    0
  • David Atkinson
    Is the linked database a shared dev DB or does each developer have their own?
    David Atkinson
    0
  • chuck
    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
    chuck
    0
  • David Atkinson
    If you do a Git pull on your instance and refresh the vomit tab, does this help?
    David Atkinson
    0
  • chuck
    If you do a Git pull on your instance and refresh the vomit tab, does this help?
    Actually my colleague did not use sql source control, I will add his stored procedure into git repository.
    So I almost don't need to use git pull feature.
    chuck
    0
  • David Atkinson
    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?
    David Atkinson
    0
  • chuck
    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.

    chuck
    0
  • chuck
    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.
    chuck
    0
  • chuck
    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.
    chuck
    0

Add comment

Please sign in to leave a comment.