Home Forums SQL Server 2005 T-SQL (SS2K5) Help remove cursor and impelment usig something else RE: Help remove cursor and impelment usig something else

  • This is really complex and might take a while to transform into set based code. I wouldn't expect much help and even less without DDL and sample data.

    Basically, you're inserting in a table based on different conditions. Using the WHERE clause you could get it done without a cursor. There's a Stored Procedure that expects scalar values, you need to change that code as well or you'll end up with a forced loop to execute it.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2