起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1673|回复: 2

HR数据库从Oracle转到SQLServer

[复制链接]

89

主题

374

帖子

811

积分

高级会员

Rank: 4

积分
811
QQ
发表于 2014-4-15 10:12:15 | 显示全部楼层 |阅读模式

从官网下载的HR应用中,自带了Oracle初始化脚本和测试数据、SQLServer的初始化标准。
现在想把Oracle的测试数据移行到SQLServer里面。
1、怎么做才能正确的移行过去。
2、 HR应用中是不是有SQL文,仅支持Oracle,不支持SQLServer,例如Oracle的某些内置函数。
3、Oracle测试数据中,公式设置里面,有写死的sql文,例如:
  1. insert into HR_SA_BASEITEM (fid, version, fname, fbaseitemtype, fbaseitemtypename, fdatatype, fdatatypename, fvalue, fcalctype, fcalctypename, ffunction, fsql, fusestatus, fusestatusname, fcreateorgid, fcreateorgname, fcreatedeptid, fcreatedeptname, fcreateposid, fcreateposname, fcreateperid, fcreatepername, fcreateurl, fcreateurlname, fcreatetime, fupdateperid, fupdatepername, fupdatetime, fsequence, fdefaultvalue, ffunctionname)
  2. values ('salary_salaryitem_psjbts', 1, '平时加班天数', 'FloatableCalc', '浮动计算型', 'Numeric', '数值型', null, 'SQL', '查询语句', null, 'select nvl((select fOverTimeWorkDay  from hr_cr_checkcollect t1, hr_cr_checkcollect1 t2 where t1.fid = t2.fMasterID   and t1.fyear = to_char(to_date({EndDate}, ''yyyy-mm-dd''), ''yyyy'')   and t1.fmonth = to_char(to_date({EndDate}, ''yyyy-mm-dd''), ''mm'')   and t2.fPeopleID = {EmployeeID}),0) from dual', 1, '启用', null, null, null, null, null, null, null, null, null, null, null, null, null, null, 12, '0', null);
复制代码
其中'select nvl((select fOverTimeWorkDay  from hr_cr_checkcollect t1, hr_cr_checkcollect1 t2 where t1.fid = t2.fMasterID   and t1.fyear = to_char(to_date({EndDate}, ''yyyy-mm-dd''), ''yyyy'')   and t1.fmonth = to_char(to_date({EndDate}, ''yyyy-mm-dd''), ''mm'')   and t2.fPeopleID = {EmployeeID}),0) from dual
在SQLServer执行的话,一定是错误的。

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2014-4-15 11:56:47 | 显示全部楼层
资源中提供了sqlserver数据库的脚本

89

主题

374

帖子

811

积分

高级会员

Rank: 4

积分
811
QQ
 楼主| 发表于 2014-4-15 12:59:35 | 显示全部楼层
lixin_justep 发表于 2014-4-15 11:56
资源中提供了sqlserver数据库的脚本

看到了,谢谢
高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-17 13:36 , Processed in 0.068109 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表