About remote connection (including using Eclipse to connect) SqlServer2005:
When you confirm that the URL, driver loading, user name, and password of the connection are correctly configured, java is still thrown. lang. for NullPointerException, open the SQL Server Configuration Manager under the Microsoft SQL Server 2005 software directory in the Start menu:
①: Enable the TCP/IP protocol in SQLEXPRESS under SQL Server 2005 network configuration, right-click the TCP/IP protocol and select properties to ensure that the last TCP port in the IP address column is 1433, see the following figure for details.
②: Enable the TCP/IP protocol in the Client protocol under the SQL Native Client configuration, right-click to view the TCP/IP attribute, and ensure that the port is 1433, as shown in the following figure.
③ Restart the SQL Server Service under SQL Server 2005. For details, see the following figure.
So far, the java. lang. NullPointerException error has been solved.