Current location - Quotes Website - Team slogan - How to query the MSDE port database?
How to query the MSDE port database?
It can be realized by operating the registry in the program:

Location:

HKEY _ LOCAL _ MACHINE \ SOFTWARE \ Microsoft \ MSSQL server \ MSSQL server \ SuperSocketNetLib

Key value: ProtocolList

Type: REG_MULTI_SZ

The enabled protocols are recorded here, for example, np tct means enabled: naming management and TCP/IP protocol.

Location:

HKEY _ LOCAL _ MACHINE \ SOFTWARE \ Microsoft \ MSSQL server \ MSSQL server \ SuperSocketNetLib \ Tcp

Key value: TcpPort

Type: REG_SZ

The port number I set, the default value is: 1433.