>select set @ctr = @ctr + 1, >(exec dbo.mySP1 @ctr, empfl.empid) >from empfl > >
@ctr = dbo.MyFunction()
mydatabase.dbo.MyFunction()