Get list of all active TCP/UDP ports

Just type netstat -a in command prompt & press enter. This will print a list of all active TCP & UDP ports running on your machine.More detail about this command netstat can be found on below…

How to refresh git branches in visual studio?

ProblemDeleted remote branches are still visible in Visual Studio Team Explorer (Branches Section).SolutionYou just need to run git fetch --prune command in your solution directory using GIT Bash or…

How to rename a local GIT Branch?

If you want to rename the current branch, hit below command:git branch -m <newname>If the branch you want to rename is different from the current branch, then hit below commandgit branch -m…

How to deploy dacpac using SQLPackage.exe

You can follow below steps to deploy a database to SQL Server from the .dacpac file. To deploy the database from dacpac, we will be using SQLPackage.exe. SQLPackage.exe is a command line utility that…

Few useful PowerShell commands

Here I am sharing few important commands in PowerShell which I found useful in my day to day coding. I hope these will help you as well.To print something in consoleWrite-Output "Database publihsed…

Difference between SET and SETX in PowerShell

Both commands are used to set environment variable values in windows through command-line.SETSET is used to create new environment variable or change the value of existing environment variable. Its…