1.what is the difference between view and cursor?

2.If we do any change in view will it affect the
database,similarly when we do changes in cursor will it
affect the databse?with certain example?Thanks

Answer Posted / sripathi venkata ramesh

I am Sripathi Venkata Ramesh from Gudivada.

1. The answer for view and cursor is mentioned below

Views: Views are used to retrieve date or Update the data

Cursors: Cursors are used to execute the data row by row or
record by record.
There are 2 types of cursors.

1. Implicit cursor: It returns only one
row

2. Explicit cursor: It returns more
than one row

Is This Answer Correct ?    19 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between materialized view and view?

491


How to execute multiple stored procedures at one time in sql server?

508


What are the fixed server level roles? : sql server security

558


What is the data type of time?

521


Will sql server 2005 allow you to reduce the size of a column?

553






How to list all field names in the result set using mssql_field_name()?

528


Can a table be created inside a trigger?

566


Explain how to integrate the ssrs reports in application?

522


What is transaction server isolation?

578


How to see the event list of an existing trigger using sys.trigger_events?

571


What are the limitations/drawbacks or ssrs 2008 r2?

86


How to execute the cursor queries with "open" statements?

615


Can we return Data from 4(more than 1) tables in stored procedure?

619


Explain query editor regions

619


Can you name a few encryption mechanisms in sql server?

545