connect sql server to netbeans services


Refer

http://www.netbeans.org/kb/55/using-netbeans/dbconn.html

-Enable TCP/IP protocol. Select Microsoft SQL Server 2005>Configuration Tools>SQL Server Configuration Manager. In the SQL Server Configuration Manager select the node SQL Server 2005 Network Configuration>Protocols for SQLEXPRESS. Right-click on the TCP/IP node and select Enable. Restart the SQL Server (SQLEXPRESS) service. In Adminstrative Tools>Services, right-click on the SQL Server (SQLEXPRESS) service and select Restart.

-To configure a JDBC connection with SQL Server 2005 Express, add SQL Server 2005 JDBC driver JAR file <Microsoft SQL Server 2005 JDBC Driver>/sqljdbc_1.0/enu/sqljdbc.jar to classpath. <Microsoft SQL Server 2005 JDBC Driver> is the directory in which SQL Server 2005 JDBC Driver zip file is installed.

-Driver class for SQL Server 2005 database is com.microsoft.sqlserver.jdbc.SQLServerDriver.

-Connection URL for the default SQL Server 2005 database is jdbc:sqlserver://localhost:<port>.
In the connection URL, <port> is obtained from the SQL Server configuration Manager. When the SQL Server 2005 SQLEXPRESS is restarted the port number changes.
To obtain the <port> in the SQL Server Configuration Manager, select the node SQL Server 2005 Network Configuration>Protocols for SQLEXPRESS. Right-click on TCP/IP node and select Properties. Select the IP Addresses tab. In IP ALL, the TCP Dynamic Ports specifies the <port> value.

0 Responses to “connect sql server to netbeans services”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




:”>

M-- R------, you are my greatest weakness. You're ruining me, pulling me apart piece by piece, and you don't even realize it. I hope you read this. I hope you understand.

Long VuLong Vu

Twitter

  • Đọc xong cuốn truyện mà mừng quá =)) about fucking 1 week ago
  • Something that looks too good to be true is usually too good to be true. about fucking 3 weeks ago
  • Already a year... about fucking 1 month ago

Categories

RSS TuMBlr

  • An error has occurred; the feed is probably down. Try again later.

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1 other follower

Views

free counters

Follow

Get every new post delivered to your Inbox.