Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can a cursor be updated? If yes, how you can protect which columns are updated?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the kinds of subquery?

1093


Can one drop a column from a table?

1079


Can we do dml on views?

1027


What is temporary table in sql server? Why we use temp table?

1006


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1041


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1021


Explain “row_number()” in sql server with an example?

1066


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1121


What is a coalesce function?

1275


When should you use an instead of trigger?

1042


What is the primary use of the model database?

1144


How to rebuild the master database?

1154


How to connect php with different port numbers?

1171


What is standby servers? Explain types of standby servers.

1067


Explain system functions or built-in functions? What are different types of system functions?

1055