J
Jeff Davies
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
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