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

Answers were Sorted based on User's Feedback



could you please reply for these question: 1.About Use Apply? 2.Avoid cursors - When we have a sit..

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

could you please reply for these question: 1.About Use Apply? 2.Avoid cursors - When we have a sit..

Answer / anupom das

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

Is This Answer Correct ?    1 Yes 0 No

could you please reply for these question: 1.About Use Apply? 2.Avoid cursors - When we have a sit..

Answer / prasanna

Use derived columns,corelated subqueries instead of cursors
so that the performance will also be improved.

Regards
prasanna

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

What are the recovery models for a database?

1 Answers  


How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?

3 Answers  


what is difference between having and where clause ?

3 Answers  


Can you explain about buffer cash and log cache in sql server?

1 Answers  


When you first load SQL SERVER you will startup with what all databases?

3 Answers   CompuSol,


How to find table changes in sql server?

1 Answers  


How to add a new dsn with the odbc driver for sql server?

1 Answers  


What is store procedure? How do they work? When do you use?

1 Answers  


How do I view a stored procedure in sql server?

1 Answers  


What are the new features in sql server 2016?

1 Answers  


How to count the number of duplicate items in a table?

3 Answers  


Please differentiate between a local and a global temporary table?

1 Answers  


Categories