what is the cursor

Answer Posted / om shivaya namaha

Cursors are used to fetch the records row by row data in a
table but get the data very fast by using the cursors it is
very useful if the table contains few records in a table but
will create a performance isses if the table contain lot of
records

create cursor cursorName for
select EmpId,EmName from Employees
open cursor
while (@@FetchStatus==0)
begin
fetch next from cursorName into @EmpId , @EmName
select * from Employee where empid=@empid
end
close cursor

Is This Answer Correct ?    24 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about Multi-Language integration?

787


What is the significance of ASP.NET routing?

821


What is the default authentication mode for asp.net?

774


What is asp.net version?

701


Differentiate the session object and application object?

734


What is microsoft windows sharepoint services?

746


Can you dynamically assign a Master Page?

746


What is css in asp.net?

750


Explain some of the major built-in objects in asp.net

783


I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?

1678


What is active web page?

729


What is the difference between union and join?

741


What is difference between inproc and outproc?

872


What is master page in dtp?

732


In which situation can you not use a viewstate?

711