Declare @name nvarchar(max)
Declare cur cursor for
select username from userdet
open cur
fetch next from cur into @name
while @@FETCH_STATUS=0
begin
print @name
fetch next from cur into @name
end
CLOSE CUR;
DEALLOCATE CUR;

Programming is fun and interesting. As you all know, sometime we programmers stucks in the middle way of coding without getting a solution. Blogs like this will help us to find a path to solve our problems. The contents of this blog are the solutions that I found by myself and from other sources. Sharing such solutions is also interesting. Thank you!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment