我这样写是错的. insert into jjzcmxb select * from ( exec [371083_06基金支出明细横表]'3','2011-11-01','2011-11-30' ) t
------解决方案--------------------
SQL code
insert into jjzcmxb
exec [371083_06基金支出明细横表]'3','2011-11-01','2011-11-30'
------解决方案--------------------
SQL code
insert into jjzcmxb
exec [371083_06基金支出明细横表]'3','2011-11-01','2011-11-30'
------解决方案-------------------- 存储过程直接执行就行了,表值函数是像你一样的写法
------解决方案--------------------
------解决方案--------------------
------解决方案-------------------- insert into jjzcmxb exec [371083_06基金支出明细横表]'3','2011-11-01','2011-11-30' update jjzcmxb set col1='2011',col2='11',col3='371083' where col1 is null and col2 is null and col3 is null
------解决方案-------------------- 不能那么做 需要再外面去改表
------解决方案--------------------
SQL code
SELECT *
FROM OPENROWSET('SQLOLEDB', 'sql服务器名'; '用户名'; '密码',
'exec [371083_06基金支出明细横表]''3'',''2011-11-01'',''2011-11-30''')