CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2003
    Location
    Brazil
    Posts
    335

    Commiting in Blocks

    I´m new to Sysbase and I´m working on a stored procedure that I need to commit on blocks of 1000 rows. Is there any parameter that I can set for example <BlockCommit=1000> ? if not, Is there any better solution than using a cursor?

    Any help will be appreciated.

    Thank you.

    PS.: I´m using HP-UX

  2. #2
    Join Date
    Jun 2002
    Location
    Clane, Ireland
    Posts
    766

    Re: Commiting in Blocks

    I don't about about Sysbase, but in SQL 2000 you can create a numeric variable and increment it. You can then check this, and when it reaches a set value, issue a commit statement, then reset the integer back to zero.

    HTH
    JP

    Please remember to rate all postings.

  3. #3
    Join Date
    Feb 2005
    Location
    "The Capital"
    Posts
    5,306

    Re: Commiting in Blocks

    Probably, you can use SET ROWCOUNT statement but you should be careful to skip the last ROWCOUNT number of rows in the subsequent call.

    Here is a little documentation about how to use it - SET ROWCOUNT

    Hope this helps.

  4. #4
    Join Date
    Feb 2003
    Location
    Brazil
    Posts
    335

    Re: Commiting in Blocks

    Exterminator, If this code works it is exately what I want. I´ll try it.

    Thank you all for replies.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured