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
What are user controls?
How many web.config files can I have in an application?
Explain the Session state management options available with ASP.NET?
Can you set the session out time manually?
Explain the difference between an exe and a dll?
Explain the use of dataadapter.
Why we use asp.net for website development?
How many types of Cookies are available in ASP.NET?
Which .NET framework supports Web API?
What is an assembly? Explain its parts.
How does session state work in asp.net?
Contrast OOP and SOA. What are tenets of each ?
What is the part of url?
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
What is asp.net and its advantages?