Forum Replies Created

Viewing 15 posts - 1,546 through 1,560 (of 3,232 total)

  • RE: Calling stored proc to insert record in one table

    OK, then let's build out a test case to reproduce the problem. Can you post some sample data of rows that were successfully updated and some that were not...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Calling stored proc to insert record in one table

    4686 before the script is run, just as I said

    Then your code should go through 4686 iterations, one for each row. If you are left with rows with NULL...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Calling stored proc to insert record in one table

    When you say, 'I have xxxx records', do you mean that this is the count of rows that match the IS NULL criteria in your cursor?

    Any ideas? - it's hard...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Calling stored proc to insert record in one table

    Yea, Garadin is correct. You need a second FETCH statement in your while loop. Also, something doesn't look right to me here. Your code does an update...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Calling stored proc to insert record in one table

    That's the problem then. If you've written your stored procedure to only insert one row at a time, you are stuck with RBAR unless you re-create the SP to...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Calling stored proc to insert record in one table

    So you are looking for a stored procedure that can do a set based insert into one table from another. Quickly to you means good performance?

    Here's an example of...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Calling stored proc to insert record in one table

    Can you explain what you mean by 'quickly call' the SP? The code for inserting from one table to another is simple so I'm a bit stuck here as...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: data dublication

    Well, you need some way to make sure the data does not exist in the target table prior to inserting it. You could accomplish this by using an IF...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: data dublication

    Can you post your code?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: data dublication

    I am a bit confused as to what the problem is here. Can you explain a bit more on what your stored procedure is doing?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Open Query

    Well, this is a bit out of the box and I've not done this before, but it may be an option for you to try. You may be able...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Transaction log has filled disk drive.

    Is this a production DB? If so, you'll want to wait for down time to run the BACKUP LOG command with TRUNCATEONLY. Unless, of course, you don't care...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Transaction log has filled disk drive.

    Once you've backed up the log, you should be able to use DBCC SHRIINKFILE() on the log file. This will reduce the physical size of the log. How...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Update

    Yes.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: SQL server Performance Issues

    Good explanation of the self-blocking processes. Also, for your deadlocks, here's a good link to help :http://www.sqlservercentral.com/articles/Performance+Tuning+and+Scaling/tracingdeadlocks/1324/

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 1,546 through 1,560 (of 3,232 total)