• pandeharsh (9/12/2009)


    Sql Server we do not use cursor and also in sql server we can do without cursor.

    This is confusing at least. Not sure about the context of your statement but I do use cursors efficiently in SQL Server as as I do in Oracle.

    pandeharsh (9/12/2009)


    But in oracle I see that using cursor is must.

    This is not correct. You use a cursor when a cursor is needed.

    "Reference Cursor" -as pointed out in previous comment- does not refers as a "cursor" per se but to a very different Oracle concept than unfortunately got the same name.

    pandeharsh (9/12/2009)


    Also,I read here that,we should avoid cursor as much as possible.

    This is not correct. Is like saying you should avoid surgery as much as possible - why if surgery is your most effective alternative?

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.