DECLARE @username varchar(100)
DECLARE myCusor CURSOR FOR
select username from username
OPEN myCusor
FETCH NEXT FROM myCusor INTO @username
WHILE @@FETCH_STATUS = 0
BEGIN
print @username
FETCH NEXT FROM myCusor INTO @username
END
CLOSE myCusor
DEALLOCATE myCusor
DECLARE myCusor CURSOR FOR
select username from username
OPEN myCusor
FETCH NEXT FROM myCusor INTO @username
WHILE @@FETCH_STATUS = 0
BEGIN
print @username
FETCH NEXT FROM myCusor INTO @username
END
CLOSE myCusor
DEALLOCATE myCusor