create procedure spGetFileCategories
@documentid int
as
create table #temp10
( categoryid int,
documentid int,
path varchar(200)
)
insert into #temp10 select CATEGORYID, DOCUMENTID, " " from DOCUMENTCATEGORY where DOCUMENTID = @documentid
/* update statement here */
go
******************************
insert statement in the above proc inserts following values
categoryid documentid path
125 277
256 277
I need to write an update statement which updates path for each row. I have another
stored procedure spgetparent which accepts categoryid and retuns path for each categoryid.
I'm having problems writing update statement using spgetparent. I really appreciate any help.
Thanks
@documentid int
as
create table #temp10
( categoryid int,
documentid int,
path varchar(200)
)
insert into #temp10 select CATEGORYID, DOCUMENTID, " " from DOCUMENTCATEGORY where DOCUMENTID = @documentid
/* update statement here */
go
******************************
insert statement in the above proc inserts following values
categoryid documentid path
125 277
256 277
I need to write an update statement which updates path for each row. I have another
stored procedure spgetparent which accepts categoryid and retuns path for each categoryid.
I'm having problems writing update statement using spgetparent. I really appreciate any help.
Thanks