set @nSQL1='select x.款式' +rtrim(@nSQL1)+' into dbo.[#交叉OK] from dbo.[#初步三] as x GROUP BY x.款式'
--set @nSQL2='select x.款式' +rtrim(@nSQL2)+' into dbo.kks2 from dbo.[#初步三] as x GROUP BY x.款式'
--set @nSQL3='select x.款式' +rtrim(@nSQL3)+' into dbo.kks3 from dbo.[#初步三] as x GROUP BY x.款式'
execute sp_executesql @nSQL1
--execute (@nSQL1)
--execute sp_executesql @nSQL3
drop table dbo.[#初步一]
drop table dbo.[#初步二]
drop table dbo.[#初步3]
drop table dbo.[#初步三]
select * from dbo.[#交叉OK]
GO
这个存储过程在ADP执行时,显示"存储过程执行成功但没返回记录"