直接使用数据库运行导入数据库:
if exists(select * from sysobjects where name='OutsideCall')
delete from OutsideCall
INSERT INTO OutsideCall(TeleNumber)
SELECT convert(varchar(20), convert(bigint,TeleNumber) ) FROM OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Excel5.0;HDR=YES;DATABASE=***.xls',[Sheet1$]) where TeleNumber not in(select TeleNumber from OutsideCall);"...
10
2012
04
Sql Server数据库导入
发布:郑德才博客 | 分类:学习之路 | 评论:0 | 浏览: