<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 閱讀(367) 評論(0)  編輯  收藏 所屬分類: Hibernate

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


    網站導航:
     
    主站蜘蛛池模板: 亚洲精品黄色视频在线观看免费资源 | 亚洲天堂男人天堂| h视频在线观看免费| 四虎影在线永久免费四虎地址8848aa| 亚洲色偷偷色噜噜狠狠99网| 免费人成在线视频| 亚洲va久久久久| 四虎影视大全免费入口| 亚洲国产激情在线一区| 精品久久洲久久久久护士免费| 亚洲色最新高清av网站| 国产a级特黄的片子视频免费| 国产精品亚洲片在线花蝴蝶| 亚洲?V无码乱码国产精品 | a级毛片免费全部播放无码| 亚洲一区二区三区无码中文字幕| 91在线免费视频| 亚洲综合婷婷久久| 国产情侣激情在线视频免费看| 亚洲无限乱码一二三四区| 日韩毛片免费无码无毒视频观看| 亚洲欧美成人一区二区三区| 丁香亚洲综合五月天婷婷| 美女在线视频观看影院免费天天看| 亚洲国产成人久久精品动漫| 皇色在线视频免费网站| 羞羞漫画小舞被黄漫免费| 国产午夜亚洲精品理论片不卡| 99热在线观看免费| 亚洲欧美日韩中文字幕在线一区| 免费在线看片网站| 亚洲a一级免费视频| 亚洲欧美国产欧美色欲| 亚洲中文字幕无码不卡电影| 成人黄色免费网址| 免费一级特黄特色大片| 亚洲第一页在线播放| 国产免费小视频在线观看 | 免费无遮挡无码视频网站| 亚洲视频在线免费| 亚洲av成人一区二区三区|