आप इसे इस तरह कर सकते हैं:
DECLARE @t TABLE (ID INT)
INSERT INTO @t
EXEC spGetUserIDs
DECLARE cursorIDList CURSOR FOR
SELECT * FROM @t
OPEN cursorIDList
FETCH NEXT FROM cursorIDList INTO @ID
आप इसे इस तरह कर सकते हैं:
DECLARE @t TABLE (ID INT)
INSERT INTO @t
EXEC spGetUserIDs
DECLARE cursorIDList CURSOR FOR
SELECT * FROM @t
OPEN cursorIDList
FETCH NEXT FROM cursorIDList INTO @ID