could you please reply for these question:
1.About Use Apply?
2.Avoid cursors - When we have a situation that we can not
avoid the use of cursor than what is the alternate solution?
is there anything we can use instead of cursor to perform
the desired task? which optiomize the peroformance too.

3.What is computed columns?

Thanks in advance.

Regards,
Rupesh

Answer Posted / anupom das

Use Table variable with a identity column. Then make a while
loop row by row

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the disadvantages of cursors?

588


How to insert stored procedure result into temporary table?

576


What is a trace frag?

637


What sql server means?

555


How to rename an existing table with the "sp_rename" stored procedure in ms sql server?

538






What is sql server database?

498


How do we know if any query is retrieving a large amount of data or very little data?

548


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

520


What is sql server query analyzer?

507


how will add additional conditions in sql?

574


Do you know what is difference between stored procedure and user defined function?

608


How to recover from sql injection? : sql server security

520


How we can compare two database data?

519


Explain alternate key, candidate key and composite key in sql server?

517


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

589