JDBC Connection SQL Server 2005 issues to be aware of

Source: Internet
Author: User

1. DriverName and Dburl should pay attention to write pairs, where drivername can be clear by looking at the loaded SQL driver jar packets.

The statement that loads the driver and URL paths in SQL Server 2000 is

String driverName = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String dbURL = "jdbc:microsoft:sqlserver://localhost:1433; DatabaseName=sample";

JDBC connects to SQL Server 2005来, while the statements that load drivers and URLs in SQL Server 2005 are

String driverName = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
String dbURL = "jdbc:sqlserver://localhost:1433; DatabaseName=sample";

2. In SQL Sever to be set to allow Telnet

3. At the same time to open TCP/IP monitoring and set up a corresponding listening port

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.