Re: SQL 2000 Stored Procedure Problem
- From: "Richard" <rich@xxxxxxxxxxxxxxxx>
- Date: Thu, 24 May 2007 16:41:38 -0800
Thanks Erland,
sp_configure 'user options' reports the same on both :
minimum=0, Maximum=32767, config_value=0, run_value=0
I added SET NOCOUNT ON as the first line in spTestTempTable - same results.
I had tried that yesterday while searching the groups for ideas for 5 hours.
Any other suggestions are welcome.
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns993B19CCA96CYazorman@xxxxxxxxxxxx
Richard (rich@xxxxxxxxxxxxxxxx) writes:
--- SProc 2
CREATE PROCEDURE spTestTempTable AS
CREATE TABLE #MyTempTable
(
ReturnValue varchar(100)
)
INSERT #MyTempTable
SELECT 'Test Temp Table'
SELECT ReturnValue FROM #MyTempTable
----- This works everywhere EXCEPT on the New Server from the VB/ADO
app.
Any ideas? My last resort is to undo all the SProcs back to the slow
inefficient Pass Through method. Yuk!
Do you loop over .NextRecordset? Or do you set SET NOCOUNT ON
when you connect? If you do neither, I think we are on to something.
Try adding SET NOCOUNT ON in the beginning of the procedure.
As for why it works on one server, but not another, what does
sp_configure 'user options'
report on the two machines?
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: SQL 2000 Stored Procedure Problem
- From: Russell Fields
- Re: SQL 2000 Stored Procedure Problem
- From: Erland Sommarskog
- Re: SQL 2000 Stored Procedure Problem
- References:
- SQL 2000 Stored Procedure Problem
- From: Richard
- Re: SQL 2000 Stored Procedure Problem
- From: Russell Fields
- Re: SQL 2000 Stored Procedure Problem
- From: Richard
- Re: SQL 2000 Stored Procedure Problem
- From: Erland Sommarskog
- SQL 2000 Stored Procedure Problem
- Prev by Date: Re: SQL 2000 Stored Procedure Problem
- Next by Date: Re: Run As Command
- Previous by thread: Re: SQL 2000 Stored Procedure Problem
- Next by thread: Re: SQL 2000 Stored Procedure Problem
- Index(es):
Relevant Pages
|