D
dolang
Unregistered / Unconfirmed
GUEST, unregistred user!
过程如下:<br>create procedure usp_test (<br>@i int<br>)<br>as<br>declare @a int<br>--declare @t table(a int,b int,c int,d int)<br>create table #t<br>(a int,b int,c int,d int)<br>insert into #t<br>values(1,2,3,4)<br><br>select * from #t<br><br>用TSQLSTOREDPROC来执行,就报错:cursor not returned from query<br>TSQLSTOREDPROC的schemaname也设为了DBO.<br>如果把那段INSERT去掉,就不会报错,但这样就根本达不到目的.<br>有哪位成功执行这样的过程的,请指教.