mrblah mrblah - 3 years ago 109
Java Question

connection url for sql server

I downloaded microsfot's jdbc driver, and I am not sure what the connection.url should be?

<property name="connection.driver_class"></property>
<property name="connection.url">jdbc:</property>

<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>

i configured sqlexpress to work via tcpip and a static port already.

dcp dcp
Answer Source

Here you go:

      <property name = "hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
      <property name = "hibernate.connection.driver_class" value = ""/>
      <property name = "hibernate.connection.url" value = "jdbc:sqlserver://localhost;databaseName=cust;instanceName=SQLEXPRESS;"/>
      <property name = "hibernate.connection.username" value = "sa"/>
      <property name = "hibernate.connection.password" value = ""/>
      <property name = "hibernate.show_sql" value="true"/>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download