|
............(前边有几个生成局部形的临时表的SELECT语句)
close title_cursor
deallocate title_cursor
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执行时,显示"存储过程执行成功但没返回记录"
如果当中加上into dbo.##test,或dbo.test,那么,在显示完"存储过程执行成功但没返回记录"后,可以看到test表当中有我想要的数据,但我不想使用全局的数据表,因为我想网内每个用户使用时都独立开来互不干扰,请高手指点一下,万分感谢! |
|