I have several nested procedures. A temp table is being created in the 1st one and later used at several places. Currently I have created a index on the temp table, but need to verify as I am still seeing it to run for long time.
I tried to replicate my problem following stored proc
create proc ProcSp
as
sp_help #tmpCheck
go
END
go
I get error "Incorrect Syntax near sp_help".
Please let me know how would we be able to call sp_help
on a temp table inside a proc?
Edit
Is there any way to just display indexes on any table inside a proc?