<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    freefly
    一門技術,如果不能講出來,那么就是沒有理解,如果不能很好的講出來,那么就是理解不夠透徹!
    posts - 9,comments - 3,trackbacks - 0

          Ultimatelly,I solved my problem.    My work is switch my application from mysql to sqlserver database .   At the very start,I forgot start sqlserver service,so the error "refused connect"  always appear,(so stupid error).Next,ther error  "Hibernate operation: could not execute query; uncategorized SQLException for SQL [select user0_.ID as ID, user0_.USERNAME as USERNAME0_, user0_.PASSWORD as PASSWORD0_ from user user0_]; SQL state [S1000]; error code [156]; 在關鍵字 'user' 附近有語法錯誤。; nested exception is java.sql.SQLException: 在關鍵字 'user' 附近有語法錯誤."   comes out ,  the problem scratchs my head over .this moring i got one friend's help and eventually found the "user" should not be used as a table name,because "user" is a key in sqlserver.  
          Below is work I have done : (Note: my env is eclipse+myeclipse)
          First:modify applicationContext.xml:
          
          From:
          1.<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
               <property name="driverClassName">
                     <value>com.mysql.jdbc.Driver</value>
               </property>
               <property name="url">
                    <value>jdbc:mysql://localhost:3306/test</value>
               </property>
               <property name="username">
                    <value>root</value>
               </property>
               <property name="password">
                   <value>whl</value>
               </property>
            </bean>
         2. <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
         
         To:
            <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
                  <property name="driverClassName">
                       <value>net.sourceforge.jtds.jdbc.Driver</value>
                  </property>
                  <property name="url">
                       <value>jdbc:jtds:sqlserver://localhost:1433/test</value>
                   </property>
                   <property name="username">
                        <value>sa</value>
                   </property>
                   <property name="password">
                        <value>mssqlsys</value>
                  </property>
             </bean>

            <prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
          Second: import the sqlserver driver:jtds-1.1.jar

    posted on 2006-04-11 12:41 freefly 閱讀(355) 評論(0)  編輯  收藏 所屬分類: Hibernate

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 久久99国产亚洲高清观看首页| 免费无码又爽又刺激高潮| 亚洲人成色77777在线观看大| 亚洲精品无AMM毛片| 性盈盈影院免费视频观看在线一区| 亚洲免费中文字幕| 成人毛片免费在线观看| 在线观看亚洲AV日韩AV| 成人免费视频试看120秒| 涩涩色中文综合亚洲| 日本成人在线免费观看| 阿v视频免费在线观看| 中文字幕亚洲日韩无线码| 丁香花在线视频观看免费| 久久久久亚洲精品美女| 国产a视频精品免费观看| 亚洲一日韩欧美中文字幕在线| 日本免费电影一区| 边摸边吃奶边做爽免费视频网站| 亚洲国产精品成人久久蜜臀| 中文字幕免费人成乱码中国| 亚洲精选在线观看| 在线观看免费污视频| 免费一级毛片在线播放放视频 | 亚洲精品av无码喷奶水糖心| 情侣视频精品免费的国产| 一级做a爰片久久免费| 久久久久亚洲AV无码专区首| 4hu四虎最新免费地址| 亚洲欧美乱色情图片| 国产亚洲日韩在线三区| 亚洲高清免费在线观看| 日韩国产精品亚洲а∨天堂免| 亚洲色精品vr一区二区三区| 在免费jizzjizz在线播| 无码日韩人妻AV一区免费l | 永久免费观看黄网站| 水蜜桃亚洲一二三四在线| 成人免费视频一区| 99re6在线精品免费观看| 亚洲一区二区三区高清不卡|