change default port sql server as .net code example Example: default sql server port The default port of SQL server is 1433.