facebook

Cannot open connection

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #291608 Reply

    shivin4u
    Member

    Hi,
    I am having a problem with Hibernate .
    I am not able to connect to Ms SQL Server 2000
    I get an Exception saying “Cannot open connection”

    this is my Hibenate.cfg.xml file content
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE hibernate-configuration PUBLIC
    “-//Hibernate/Hibernate Configuration DTD 3.0//EN”
    http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd”&gt;
    <hibernate-configuration>
    <session-factory name=”factory”>
    <property name=”hibernate.connection.driver_class”>com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
    <property name=”hibernate.connection.url”>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=sbldb
    </property>
    <property name=”hibernate.connection.username”>””</property>
    <property name=”hibernate.connection.password”>””</property>

    <property name=”hibernate.default_schema”>public</property>
    <property name=”hibernate.dialect”>org.hibernate.dialect.SQLServerDialect</property>

    <property name=”connection.pool_size”>1</property>
    <property name=”current_session_context_class”>thread</property>
    <property name=”cache.provider_class”>org.hibernate.cache.NoCacheProvider</property>
    <property name=”show_sql”>true</property>
    <property name=”hbm2dll.auto”>create</property>

    <mapping resource=”hibernate.hbm.xml”/>

    </session-factory>
    </hibernate-configuration>

    i am not using any user name or password to connect

    So pleas let me know the problem soon

    Thanking you
    Shiv

    #291613 Reply

    Loyal Water
    Member

    Moving to Off Topic >> Software Development.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Cannot open connection

You must be logged in to post in the forum log in