Home > Archive > MS Access project with SQL Server > April 2005 > Re: Exec in Sp and returning recordset









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Exec in Sp and returning recordset
Malcolm Cook

2005-04-06, 8:06 pm

try putting a 'set nocount on' at the begininning of your stored proc (c.f.
http://msdn.microsoft.com/library/d...html/vb01a1.asp)

let us know.


--
Malcolm Cook - mec@stowers-institute.org
Database Applications Manager - Bioinformatics
Stowers Institute for Medical Research - Kansas City, MO USA

"Jeff Davies" <ng1@techyremovethis.com.au> wrote in message
news:%23DdbRE%23FFHA
.3888@TK2MSFTNGP12.phx.gbl...
> Guys,
> I am trying to Execute the following in a stored proc.
>
> exec spCreateTmpTable @Param1, @Param2
>
> SELECT TOP 100 PERCENT dbo.tblCustomers.*
> FROM dbo.tblCustomers INNER JOIN
> dbo.TmpTable ON dbo.tblCustomers.ID = dbo.TmpTable.ID
>
>
> These two things work fine individually.
> spCreateTmpTable creates the Temp Table and fills it with appropriate

data.
>
> The Select SQL will then happily work in a view,
> but when I try and run them both in the one SP, I get no records returned.
> What am I missing?
> Thanks in advance,
> Jeff
>
>
>



llat.com

2005-04-07, 8:04 pm


"Malcolm Cook" <mec@stowers-institute.org> 写入消息新闻:urUnNVb
HFHA.2936@TK2MSFTNGP15.phx.gbl...
> try putting a 'set nocount on' at the begininning of your stored proc
> (c.f.
> http://msdn.microsoft.com/library/d...html/vb01a1.asp)
>
> let us know.
>
>
> --
> Malcolm Cook - mec@stowers-institute.org
> Database Applications Manager - Bioinformatics
> Stowers Institute for Medical Research - Kansas City, MO USA
>
> "Jeff Davies" <ng1@techyremovethis.com.au> wrote in message
> news:%23DdbRE%23FFHA
.3888@TK2MSFTNGP12.phx.gbl...
> data.
>
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com