1、修改驱动
<jdbc.driver.groupId>mysql</jdbc.driver.groupId>
<jdbc.driver.artifactId>mysql-connector-java</jdbc.driver.artifactId>
<jdbc.driver.version>5.1.17</jdbc.driver.version>
<jdbc.driver.groupId>com.microsoft.sqlserver</jdbc.driver.groupId>
<jdbc.driver.artifactId>sqljdbc4</jdbc.driver.artifactId>
<jdbc.driver.version>4.0</jdbc.driver.version>
替换lib包
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://****/****?useUnicode=true&characterEncoding=utf-8
jdbc.username=***
jdbc.password=***
jdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc.url=jdbc:sqlserver://********:1433;DatabaseName=dbname
jdbc.username=***
jdbc.password=***
2、数据移植用sqlyog
http://www.cnblogs.com/gaizai/p/3237907.html
移植过程中注意时间DateTime和TimeStamp差别
3、修改获取dialect
return MySQL5InnoDBDialect.class.getName();
return SQLServerDialect.class.getName();
4、分页sql差别
offset #{startIndex} rows fetch next #{pageSize} rows only
limit #{startIndex},#{pageSize}
5、其他sql差别