default port to connect to sql server code example Example: default sql server port The default port of SQL server is 1433.