Home Forums SQL Server 7,2000 T-SQL Plzz help me in replacing the cursor with Normal Sql Statements RE: Plzz help me in replacing the cursor with Normal Sql Statements

  • Your insert statements don't run...

    Msg 109, Level 15, State 1, Line 54

    There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.

    It would be helpful if you would edit your post with the data, and surround the code with the [ code = "sql" ] and [ / code ] tags (I added extra spaces so that they will show up in the post; you need to remove them).

    Wayne
    Microsoft Certified Master: SQL Server 2008
    Author - SQL Server T-SQL Recipes


    If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
    Links:
    For better assistance in answering your questions
    Performance Problems
    Common date/time routines
    Understanding and Using APPLY Part 1 & Part 2