Skip to content

Commit

Permalink
Merge pull request #756 from FH-Inway/fix-rename-d365computername
Browse files Browse the repository at this point in the history
🐛 fix computer renaming
  • Loading branch information
Splaxi authored Oct 16, 2023
2 parents 2f8fbdd + e184640 commit 9094561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d365fo.tools/internal/sql/rename-computer.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BEGIN TRY
EXEC sp_dropserver [@OldComputerName];
EXEC sp_dropserver @@SERVERNAME;
END TRY
BEGIN CATCH
PRINT '@OldComputerName could not be dropped!'
PRINT 'Old SQL server name could not be dropped!'
END CATCH

EXEC sp_addserver [@NewComputerName], local;

0 comments on commit 9094561

Please sign in to comment.