September 9, 2006 at 5:11 am
hi,
Is there any way to call a stored procedure in where clause on in select --- from clause ??
September 9, 2006 at 10:18 am
I suppose there's a way... but, instead, I normally create a temp table with the results of the called proc and then just join to the temp table.
Create the temp table with the necessary columns. Then...
INSERT INTO #temptable (Collist..)
EXEC storedproc
If we knew more about what you were trying to do, there may be a better solution such as a table variable function, etc.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2006 at 7:32 am
we can use openquery or openrowset to do so.
Thanks
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply