SQL Server and TFS - How to rename stored proceduresSQL Server - Adding non-nullable column to existing table...

What is an efficient way to digitize a family photo collection?

What is an explicit bijection in combinatorics?

Crack the bank account's password!

What can I do to encourage my players to use their consumables?

How do I fight with Heavy Armor as a Wizard with Tenser's Transformation?

How can I prevent an oracle who can see into the past from knowing everything that has happened?

What if I miss a connection and don't have money to book next flight?

Distribution coeffecient without concentrations

What do "compile" , "fit" and "predict" do in Keras sequential models?

What happened to Hermione’s clothing and other possessions after she wiped her parents’ memories of her?

How do I draw a function along with a particular tangent line at a specific point?

If a 12 by 16 sheet of paper is folded on its diagonal, what is the area of the region of the overlap?

Sing Baby Shark

Proof by contradiction - Getting my head around it

How can guns be countered by melee combat without raw-ability or exceptional explanations?

Isn't a semicolon (';') needed after a function declaration in C++?

How can I give a Ranger advantage on a check due to Favored Enemy without spoiling the story for the player?

Do the speed limit reductions due to pollution also apply to electric cars in France?

Players preemptively rolling, even though their rolls are useless or are checking the wrong skills

Why does a single AND gate need 60 transistors?

Coworker is trying to get me to sign his petition to run for office. How to decline politely?

How to wrap a figure in exam document?

Running away from a conflict

What's the reason that we have different quantities of days each month?



SQL Server and TFS - How to rename stored procedures


SQL Server - Adding non-nullable column to existing table - SSDT PublishingBooks on optimizing and refactoring SQL stored proceduresHow To Profile Stored ProceduresStored procedures vs. inline SQLConnect SQL Server 2016 SSDT with TFSSQL Server Rollback nested Stored procedures and linked serversEstimated stored procedures timeHow to recompile all stored procedures and table valued functions in SQL Server database?Numbered stored procedures: introduction and deprecation?Rename table in Postgres and update its usages in all functions













1















After a while one may wish to do some light refactoring, such as giving more appropriate names to stored procedures as their functionalities are better established.



For the life of me, I simply cannot rename anything in SQL in a multi-branch TFS environment without it being an onerous, manual process.



Without using some third-party tool, how are you supposed to do it?



P.S. This is just for renaming stuff in a way that doesn't require deployment scripting to migrate anything. That is its own giant can of worms.





When I try to rename a SQL entity (e.g. a table, stored procedure), I use the Visual Studio Find and Replace in Files utility and then rename the file, since the super-useful refactor tools that I use all day for C# do not exist for SQL.



After enabling the advanced SSDT Publish Option to drop objects in target but not in source and manually verifying everything works (since the validations done by the build and the publish are severely lacking) and convincing myself my rename was implemented correctly, I now have to merge changes to a couple other branches in TFS.



Apparently TFS Power Tools Migrate of rename is bugged (but since Microsoft retired Connect, I can't follow up on that post) because all my renames are now showing as ADD changes.



After undoing all those erroneous pending changes, the files are leftover on disk, so manually renaming the files throws file already existing errors. Upon deleting those orphaned files, I am back where I started with no automated tools to help, having to repeat all the changes in every target branch and having to manually detect then merge conflicts.



To add insult to injury, my %AppData%LocalMicrosoftVisualStudio14.0ComponentModelCache folder keeps getting corrupted for some unknown reason (which persists through a complete repair reinstall) such that renaming files only under *.sqlproj throws a null reference error at me about a parameter name 'o' upon which the file is renamed on disk but not in the solution which then corrupts my TFS workspace.





I don't know what is wrong with me, but it seems that renaming SQL entities is unofficially blocked by Microsoft in every possible devious way.



P.S. There is no "rename" tag to put on this post, further suggesting that renaming stuff is not something people ever do in databases.










share|improve this question
















bumped to the homepage by Community 5 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Never say never ;)

    – Erik Darling
    Jun 18 '18 at 15:56






  • 1





    Cool, best of luck with TFS!

    – Erik Darling
    Jun 18 '18 at 16:04






  • 1





    @AliRazeghi The bugged behavior of the TFS power tools when merging my changes effects the same thing as your proposal. It is important to uphold the revision tracking in TFS, so it needs to treat the change as a rename instead of a delete and a separate add, since the added file will not have any link to the past history that just got deleted with the old file.

    – Elaskanator
    Jun 18 '18 at 18:39








  • 2





    @Elaskanator, right-click on the object name in the DDL source code of your SSDT project and select Refactor-->Rename. That will rename the object, update references, and save the refactor log so it is recognized as a rename operation during deployments.

    – Dan Guzman
    Jun 19 '18 at 3:11






  • 1





    I created and attached a tag for Rename. It could get rejected by peer-review though.

    – RBarryYoung
    Aug 15 '18 at 17:42
















1















After a while one may wish to do some light refactoring, such as giving more appropriate names to stored procedures as their functionalities are better established.



For the life of me, I simply cannot rename anything in SQL in a multi-branch TFS environment without it being an onerous, manual process.



Without using some third-party tool, how are you supposed to do it?



P.S. This is just for renaming stuff in a way that doesn't require deployment scripting to migrate anything. That is its own giant can of worms.





When I try to rename a SQL entity (e.g. a table, stored procedure), I use the Visual Studio Find and Replace in Files utility and then rename the file, since the super-useful refactor tools that I use all day for C# do not exist for SQL.



After enabling the advanced SSDT Publish Option to drop objects in target but not in source and manually verifying everything works (since the validations done by the build and the publish are severely lacking) and convincing myself my rename was implemented correctly, I now have to merge changes to a couple other branches in TFS.



Apparently TFS Power Tools Migrate of rename is bugged (but since Microsoft retired Connect, I can't follow up on that post) because all my renames are now showing as ADD changes.



After undoing all those erroneous pending changes, the files are leftover on disk, so manually renaming the files throws file already existing errors. Upon deleting those orphaned files, I am back where I started with no automated tools to help, having to repeat all the changes in every target branch and having to manually detect then merge conflicts.



To add insult to injury, my %AppData%LocalMicrosoftVisualStudio14.0ComponentModelCache folder keeps getting corrupted for some unknown reason (which persists through a complete repair reinstall) such that renaming files only under *.sqlproj throws a null reference error at me about a parameter name 'o' upon which the file is renamed on disk but not in the solution which then corrupts my TFS workspace.





I don't know what is wrong with me, but it seems that renaming SQL entities is unofficially blocked by Microsoft in every possible devious way.



P.S. There is no "rename" tag to put on this post, further suggesting that renaming stuff is not something people ever do in databases.










share|improve this question
















bumped to the homepage by Community 5 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Never say never ;)

    – Erik Darling
    Jun 18 '18 at 15:56






  • 1





    Cool, best of luck with TFS!

    – Erik Darling
    Jun 18 '18 at 16:04






  • 1





    @AliRazeghi The bugged behavior of the TFS power tools when merging my changes effects the same thing as your proposal. It is important to uphold the revision tracking in TFS, so it needs to treat the change as a rename instead of a delete and a separate add, since the added file will not have any link to the past history that just got deleted with the old file.

    – Elaskanator
    Jun 18 '18 at 18:39








  • 2





    @Elaskanator, right-click on the object name in the DDL source code of your SSDT project and select Refactor-->Rename. That will rename the object, update references, and save the refactor log so it is recognized as a rename operation during deployments.

    – Dan Guzman
    Jun 19 '18 at 3:11






  • 1





    I created and attached a tag for Rename. It could get rejected by peer-review though.

    – RBarryYoung
    Aug 15 '18 at 17:42














1












1








1








After a while one may wish to do some light refactoring, such as giving more appropriate names to stored procedures as their functionalities are better established.



For the life of me, I simply cannot rename anything in SQL in a multi-branch TFS environment without it being an onerous, manual process.



Without using some third-party tool, how are you supposed to do it?



P.S. This is just for renaming stuff in a way that doesn't require deployment scripting to migrate anything. That is its own giant can of worms.





When I try to rename a SQL entity (e.g. a table, stored procedure), I use the Visual Studio Find and Replace in Files utility and then rename the file, since the super-useful refactor tools that I use all day for C# do not exist for SQL.



After enabling the advanced SSDT Publish Option to drop objects in target but not in source and manually verifying everything works (since the validations done by the build and the publish are severely lacking) and convincing myself my rename was implemented correctly, I now have to merge changes to a couple other branches in TFS.



Apparently TFS Power Tools Migrate of rename is bugged (but since Microsoft retired Connect, I can't follow up on that post) because all my renames are now showing as ADD changes.



After undoing all those erroneous pending changes, the files are leftover on disk, so manually renaming the files throws file already existing errors. Upon deleting those orphaned files, I am back where I started with no automated tools to help, having to repeat all the changes in every target branch and having to manually detect then merge conflicts.



To add insult to injury, my %AppData%LocalMicrosoftVisualStudio14.0ComponentModelCache folder keeps getting corrupted for some unknown reason (which persists through a complete repair reinstall) such that renaming files only under *.sqlproj throws a null reference error at me about a parameter name 'o' upon which the file is renamed on disk but not in the solution which then corrupts my TFS workspace.





I don't know what is wrong with me, but it seems that renaming SQL entities is unofficially blocked by Microsoft in every possible devious way.



P.S. There is no "rename" tag to put on this post, further suggesting that renaming stuff is not something people ever do in databases.










share|improve this question
















After a while one may wish to do some light refactoring, such as giving more appropriate names to stored procedures as their functionalities are better established.



For the life of me, I simply cannot rename anything in SQL in a multi-branch TFS environment without it being an onerous, manual process.



Without using some third-party tool, how are you supposed to do it?



P.S. This is just for renaming stuff in a way that doesn't require deployment scripting to migrate anything. That is its own giant can of worms.





When I try to rename a SQL entity (e.g. a table, stored procedure), I use the Visual Studio Find and Replace in Files utility and then rename the file, since the super-useful refactor tools that I use all day for C# do not exist for SQL.



After enabling the advanced SSDT Publish Option to drop objects in target but not in source and manually verifying everything works (since the validations done by the build and the publish are severely lacking) and convincing myself my rename was implemented correctly, I now have to merge changes to a couple other branches in TFS.



Apparently TFS Power Tools Migrate of rename is bugged (but since Microsoft retired Connect, I can't follow up on that post) because all my renames are now showing as ADD changes.



After undoing all those erroneous pending changes, the files are leftover on disk, so manually renaming the files throws file already existing errors. Upon deleting those orphaned files, I am back where I started with no automated tools to help, having to repeat all the changes in every target branch and having to manually detect then merge conflicts.



To add insult to injury, my %AppData%LocalMicrosoftVisualStudio14.0ComponentModelCache folder keeps getting corrupted for some unknown reason (which persists through a complete repair reinstall) such that renaming files only under *.sqlproj throws a null reference error at me about a parameter name 'o' upon which the file is renamed on disk but not in the solution which then corrupts my TFS workspace.





I don't know what is wrong with me, but it seems that renaming SQL entities is unofficially blocked by Microsoft in every possible devious way.



P.S. There is no "rename" tag to put on this post, further suggesting that renaming stuff is not something people ever do in databases.







sql-server rename






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 15 '18 at 17:39









RBarryYoung

2,66131440




2,66131440










asked Jun 18 '18 at 15:51









ElaskanatorElaskanator

227111




227111





bumped to the homepage by Community 5 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 5 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Never say never ;)

    – Erik Darling
    Jun 18 '18 at 15:56






  • 1





    Cool, best of luck with TFS!

    – Erik Darling
    Jun 18 '18 at 16:04






  • 1





    @AliRazeghi The bugged behavior of the TFS power tools when merging my changes effects the same thing as your proposal. It is important to uphold the revision tracking in TFS, so it needs to treat the change as a rename instead of a delete and a separate add, since the added file will not have any link to the past history that just got deleted with the old file.

    – Elaskanator
    Jun 18 '18 at 18:39








  • 2





    @Elaskanator, right-click on the object name in the DDL source code of your SSDT project and select Refactor-->Rename. That will rename the object, update references, and save the refactor log so it is recognized as a rename operation during deployments.

    – Dan Guzman
    Jun 19 '18 at 3:11






  • 1





    I created and attached a tag for Rename. It could get rejected by peer-review though.

    – RBarryYoung
    Aug 15 '18 at 17:42



















  • Never say never ;)

    – Erik Darling
    Jun 18 '18 at 15:56






  • 1





    Cool, best of luck with TFS!

    – Erik Darling
    Jun 18 '18 at 16:04






  • 1





    @AliRazeghi The bugged behavior of the TFS power tools when merging my changes effects the same thing as your proposal. It is important to uphold the revision tracking in TFS, so it needs to treat the change as a rename instead of a delete and a separate add, since the added file will not have any link to the past history that just got deleted with the old file.

    – Elaskanator
    Jun 18 '18 at 18:39








  • 2





    @Elaskanator, right-click on the object name in the DDL source code of your SSDT project and select Refactor-->Rename. That will rename the object, update references, and save the refactor log so it is recognized as a rename operation during deployments.

    – Dan Guzman
    Jun 19 '18 at 3:11






  • 1





    I created and attached a tag for Rename. It could get rejected by peer-review though.

    – RBarryYoung
    Aug 15 '18 at 17:42

















Never say never ;)

– Erik Darling
Jun 18 '18 at 15:56





Never say never ;)

– Erik Darling
Jun 18 '18 at 15:56




1




1





Cool, best of luck with TFS!

– Erik Darling
Jun 18 '18 at 16:04





Cool, best of luck with TFS!

– Erik Darling
Jun 18 '18 at 16:04




1




1





@AliRazeghi The bugged behavior of the TFS power tools when merging my changes effects the same thing as your proposal. It is important to uphold the revision tracking in TFS, so it needs to treat the change as a rename instead of a delete and a separate add, since the added file will not have any link to the past history that just got deleted with the old file.

– Elaskanator
Jun 18 '18 at 18:39







@AliRazeghi The bugged behavior of the TFS power tools when merging my changes effects the same thing as your proposal. It is important to uphold the revision tracking in TFS, so it needs to treat the change as a rename instead of a delete and a separate add, since the added file will not have any link to the past history that just got deleted with the old file.

– Elaskanator
Jun 18 '18 at 18:39






2




2





@Elaskanator, right-click on the object name in the DDL source code of your SSDT project and select Refactor-->Rename. That will rename the object, update references, and save the refactor log so it is recognized as a rename operation during deployments.

– Dan Guzman
Jun 19 '18 at 3:11





@Elaskanator, right-click on the object name in the DDL source code of your SSDT project and select Refactor-->Rename. That will rename the object, update references, and save the refactor log so it is recognized as a rename operation during deployments.

– Dan Guzman
Jun 19 '18 at 3:11




1




1





I created and attached a tag for Rename. It could get rejected by peer-review though.

– RBarryYoung
Aug 15 '18 at 17:42





I created and attached a tag for Rename. It could get rejected by peer-review though.

– RBarryYoung
Aug 15 '18 at 17:42










1 Answer
1






active

oldest

votes


















0














This question isn't so much about how to RENAME a stored procedure, as it is asking about how to MERGE the RENAME to other branches in TFS.



As pointed out by Dan Guzman in the comments, the Refactor > Rename feature while editing a SQL file should be used:



enter image description here



(note that this is not an option if you right-click the file; you have to right click the entity name in the file (or have the caret on the name and use the shortcut chord))



The hard part is now merging the rename between branches.



Using either the MERGE command from Source Control Explorer or the unshelve /migrate command to TFS Power Tools (tfpt.exe), the pending changes are generated as a DELETE and an ADD which deletes the link to the TFS history!



Furthermore, your .sqlproj file will be a giant headache to merge conflicts this way.



Instead, the renamed files should be manually renamed in the target branch, then the TFS Power Tools unshelve /migrate command will just require merging the file contents as normal, with the .sqlproj file already having the changes made to it (so you can choose the Keep target branch version option on it, presuming you don't have other ADD or DELETE changes additional to the RENAME changes).



There seems to be another method using labels, but the gated check-in process is a contraindication to it.



Note that if you start getting this error message renaming files, immediately restart Visual Studio and manually fix the .sqlproj file in a text editor as the file was renamed on disk but not in the project file:



enter image description here



To recap, this is the process I have found to work the best:





  1. Manually perform all the renames in the target branch

  2. Ensure changes in the source branch are in a shelfset

  3. Use the TFS Power Tools unshelve /migrate command

  4. Verify. Verify. Verify. And also verify by using this advanced publish option:


enter image description here



I hope this helps somebody, as this process has been a serious headache for me because I have to merge to multiple branches, and my changeset is very large.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "182"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f209940%2fsql-server-and-tfs-how-to-rename-stored-procedures%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This question isn't so much about how to RENAME a stored procedure, as it is asking about how to MERGE the RENAME to other branches in TFS.



    As pointed out by Dan Guzman in the comments, the Refactor > Rename feature while editing a SQL file should be used:



    enter image description here



    (note that this is not an option if you right-click the file; you have to right click the entity name in the file (or have the caret on the name and use the shortcut chord))



    The hard part is now merging the rename between branches.



    Using either the MERGE command from Source Control Explorer or the unshelve /migrate command to TFS Power Tools (tfpt.exe), the pending changes are generated as a DELETE and an ADD which deletes the link to the TFS history!



    Furthermore, your .sqlproj file will be a giant headache to merge conflicts this way.



    Instead, the renamed files should be manually renamed in the target branch, then the TFS Power Tools unshelve /migrate command will just require merging the file contents as normal, with the .sqlproj file already having the changes made to it (so you can choose the Keep target branch version option on it, presuming you don't have other ADD or DELETE changes additional to the RENAME changes).



    There seems to be another method using labels, but the gated check-in process is a contraindication to it.



    Note that if you start getting this error message renaming files, immediately restart Visual Studio and manually fix the .sqlproj file in a text editor as the file was renamed on disk but not in the project file:



    enter image description here



    To recap, this is the process I have found to work the best:





    1. Manually perform all the renames in the target branch

    2. Ensure changes in the source branch are in a shelfset

    3. Use the TFS Power Tools unshelve /migrate command

    4. Verify. Verify. Verify. And also verify by using this advanced publish option:


    enter image description here



    I hope this helps somebody, as this process has been a serious headache for me because I have to merge to multiple branches, and my changeset is very large.






    share|improve this answer






























      0














      This question isn't so much about how to RENAME a stored procedure, as it is asking about how to MERGE the RENAME to other branches in TFS.



      As pointed out by Dan Guzman in the comments, the Refactor > Rename feature while editing a SQL file should be used:



      enter image description here



      (note that this is not an option if you right-click the file; you have to right click the entity name in the file (or have the caret on the name and use the shortcut chord))



      The hard part is now merging the rename between branches.



      Using either the MERGE command from Source Control Explorer or the unshelve /migrate command to TFS Power Tools (tfpt.exe), the pending changes are generated as a DELETE and an ADD which deletes the link to the TFS history!



      Furthermore, your .sqlproj file will be a giant headache to merge conflicts this way.



      Instead, the renamed files should be manually renamed in the target branch, then the TFS Power Tools unshelve /migrate command will just require merging the file contents as normal, with the .sqlproj file already having the changes made to it (so you can choose the Keep target branch version option on it, presuming you don't have other ADD or DELETE changes additional to the RENAME changes).



      There seems to be another method using labels, but the gated check-in process is a contraindication to it.



      Note that if you start getting this error message renaming files, immediately restart Visual Studio and manually fix the .sqlproj file in a text editor as the file was renamed on disk but not in the project file:



      enter image description here



      To recap, this is the process I have found to work the best:





      1. Manually perform all the renames in the target branch

      2. Ensure changes in the source branch are in a shelfset

      3. Use the TFS Power Tools unshelve /migrate command

      4. Verify. Verify. Verify. And also verify by using this advanced publish option:


      enter image description here



      I hope this helps somebody, as this process has been a serious headache for me because I have to merge to multiple branches, and my changeset is very large.






      share|improve this answer




























        0












        0








        0







        This question isn't so much about how to RENAME a stored procedure, as it is asking about how to MERGE the RENAME to other branches in TFS.



        As pointed out by Dan Guzman in the comments, the Refactor > Rename feature while editing a SQL file should be used:



        enter image description here



        (note that this is not an option if you right-click the file; you have to right click the entity name in the file (or have the caret on the name and use the shortcut chord))



        The hard part is now merging the rename between branches.



        Using either the MERGE command from Source Control Explorer or the unshelve /migrate command to TFS Power Tools (tfpt.exe), the pending changes are generated as a DELETE and an ADD which deletes the link to the TFS history!



        Furthermore, your .sqlproj file will be a giant headache to merge conflicts this way.



        Instead, the renamed files should be manually renamed in the target branch, then the TFS Power Tools unshelve /migrate command will just require merging the file contents as normal, with the .sqlproj file already having the changes made to it (so you can choose the Keep target branch version option on it, presuming you don't have other ADD or DELETE changes additional to the RENAME changes).



        There seems to be another method using labels, but the gated check-in process is a contraindication to it.



        Note that if you start getting this error message renaming files, immediately restart Visual Studio and manually fix the .sqlproj file in a text editor as the file was renamed on disk but not in the project file:



        enter image description here



        To recap, this is the process I have found to work the best:





        1. Manually perform all the renames in the target branch

        2. Ensure changes in the source branch are in a shelfset

        3. Use the TFS Power Tools unshelve /migrate command

        4. Verify. Verify. Verify. And also verify by using this advanced publish option:


        enter image description here



        I hope this helps somebody, as this process has been a serious headache for me because I have to merge to multiple branches, and my changeset is very large.






        share|improve this answer















        This question isn't so much about how to RENAME a stored procedure, as it is asking about how to MERGE the RENAME to other branches in TFS.



        As pointed out by Dan Guzman in the comments, the Refactor > Rename feature while editing a SQL file should be used:



        enter image description here



        (note that this is not an option if you right-click the file; you have to right click the entity name in the file (or have the caret on the name and use the shortcut chord))



        The hard part is now merging the rename between branches.



        Using either the MERGE command from Source Control Explorer or the unshelve /migrate command to TFS Power Tools (tfpt.exe), the pending changes are generated as a DELETE and an ADD which deletes the link to the TFS history!



        Furthermore, your .sqlproj file will be a giant headache to merge conflicts this way.



        Instead, the renamed files should be manually renamed in the target branch, then the TFS Power Tools unshelve /migrate command will just require merging the file contents as normal, with the .sqlproj file already having the changes made to it (so you can choose the Keep target branch version option on it, presuming you don't have other ADD or DELETE changes additional to the RENAME changes).



        There seems to be another method using labels, but the gated check-in process is a contraindication to it.



        Note that if you start getting this error message renaming files, immediately restart Visual Studio and manually fix the .sqlproj file in a text editor as the file was renamed on disk but not in the project file:



        enter image description here



        To recap, this is the process I have found to work the best:





        1. Manually perform all the renames in the target branch

        2. Ensure changes in the source branch are in a shelfset

        3. Use the TFS Power Tools unshelve /migrate command

        4. Verify. Verify. Verify. And also verify by using this advanced publish option:


        enter image description here



        I hope this helps somebody, as this process has been a serious headache for me because I have to merge to multiple branches, and my changeset is very large.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Aug 15 '18 at 15:27

























        answered Aug 15 '18 at 15:17









        ElaskanatorElaskanator

        227111




        227111






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Database Administrators Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f209940%2fsql-server-and-tfs-how-to-rename-stored-procedures%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

            Lupi Siderali Indice Storia | Organizzazione | La Tredicesima Compagnia | Aspetto | Membri Importanti...

            Armoriale delle famiglie italiane (Car) Indice Armi | Bibliografia | Menu di navigazioneBlasone...