Can a cursor be updated? If yes, how you can protect which columns are updated?
Answer / Indrajeet
No, a cursor in SQL Server cannot be directly updated. To perform updates based on the data read from a cursor, you would need to materialize (i.e., save) the cursor's data into a temporary table or table variable and then update the original table using an UPDATE statement.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is BCP? When do we use it?
what is package configuration variable?How to change file name in folder dynamically?Plz help me
What is amo? : sql server analysis services, ssas
List the types of recovery model available in sql server?
Explain system views?
What to check if a User database is locked?
What are the restrictions applicable while creating views? : SQL Server Architecture
How to loop through result set objects using mssql_fetch_array()?
What is trigger ?
what is index seek and index scan?
What are the new data types are introduced in sql 2000?
What is NOT NULL Constraint in sql server 2012?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)