






















How To Connect to a SQL Server 2000 Named Instance with JDBC
View products that this article applies to.
This article was previously published under Q313225
SUMMARY
Microsoft SQL Server 2000 supports multiple instances of the SQL Server database engine that run concurrently on the same computer. The following are the two types of SQL Server database engine instances: default and named. There can only be one default instance that runs on any computer, and it is identified by the name of the computer on which the default instance runs. The computer name and instance name are typically specified in the following format:
computer_name\instance_name
To connect to a named instance through the Microsoft SQL Server 2000 Driver for JDBC, you must specify the port number that is associated with the named instance, instead of the name of the named instance as shown earlier.
MORE INFORMATION
To find the SQL Server instance port number, follow these steps:
As soon as you have this value, you can use it in your connection URL when you connect to SQL Server through JDBC. The following is an example of a typical connection URL:
jdbc:microsoft:sqlserver://yourServerName:1433;user=yourUser;password=yourPwd
In this example, the default port of 1433 is used. Replace this default with the port number for your named instance.
源文档 <http://support.microsoft.com/default.aspx?scid=kb;en-us;313225>
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。