日期:2014-05-17  浏览次数:20641 次

SSIS,导入数据库,表存在,怎么先删除,再创建表,再插入数据?
如题

sql2008 r2

------解决方案--------------------
IF exists (select * from sysobjects where name = '表名')
drop table 表名
go
create table 表名
(
字段1 VARCHAR(50),
字段2 VARCHAR(50),
字段3 VARCHAR(50)
)
go
insert into 表名 values()
------解决方案--------------------
啊,还是第一次知道 SSIS是啥