时间:2021-07-01 10:21:17 帮助过:131人阅读
1.建立ODBC与orcale 数据 库的链接 参考文章:http://wenku.baidu.com/link?url=qJqJzf7m-hdfIDHJaZvcJezkNv1bkA0kiAvkepXz08WgjjAu9_sTZ9_c1DewIholtnX8XAtqda1s1da1uVNJqg7punQk0lQSmpL_af8_0Gm 参考文章:http://blog.csdn.net/enjoyinwind/article/detai
1.建立ODBC与orcale数据库的链接
参考文章:http://wenku.baidu.com/link?url=qJqJzf7m-hdfIDHJaZvcJezkNv1bkA0kiAvkepXz08WgjjAu9_sTZ9_c1DewIholtnX8XAtqda1s1da1uVNJqg7punQk0lQSmpL_af8_0Gm
参考文章:http://blog.csdn.net/enjoyinwind/article/details/7755348
oracle链接字符串汇总:http://www.connectionstrings.com/oracle/
2.设置sqlserver数据库的链接服务器
3.查询验证
通过连接查询Oracle数据库中的数据
select * from openquery(TEST_ORA, 'SELECT * FROM BASEMETADATA_DEPARTMENT')
通过连接向Oracle中的表插入数据
INSERT OPENQUERY(TEST_ORA, 'select DepartmentId,DeptName,DeptCode from BaseMetaData_Department')
select DepartmentId,DeptName,DeptCode from BaseMetaData_Department
4.乱码解决
正在查找