Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5991497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:23:43+00:00 2026-05-22T23:23:43+00:00

I am using SET ROWCOUNT because the value comes from a parameter into my

  • 0

I am using SET ROWCOUNT because the value comes from a parameter into my procedure.

SET ROWCOUNT @take 

SELECT * FROM Something

SET ROWCOUNT 0

Is it possible to another procedure executes at the same time and get the rowcount setting, or is it perfectly safe to use it on a stored procedure?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:23:44+00:00Added an answer on May 22, 2026 at 11:23 pm

    Rowcount is specific to your current scope, so you are safe there. However, Books Online tells me this (which may or may not affect your needs):

    Using SET ROWCOUNT will not affect
    DELETE, INSERT, and UPDATE statements
    in the next release of SQL Server. Do
    not use SET ROWCOUNT with DELETE,
    INSERT, and UPDATE statements in new
    development work, and plan to modify
    applications that currently use it.
    Also, for DELETE, INSERT, and UPDATE
    statements that currently use SET
    ROWCOUNT, we recommend that you
    rewrite them to use the TOP syntax.
    For more information, see DELETE
    (Transact-SQL), INSERT (Transact-SQL),
    or UPDATE (Transact-SQL).

    TOP can use variables too and now can be used in INSERT,UPDATE and DELETE statments. (Hey I learned something new today.) Look up how to use TOP with variables in Books online.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the benefit of using SET XACT_ABORT ON in a stored procedure?
I have an insert statement: insert into parentTbl select firstId, secondId, thirdId, dateTm from
I am using: set constraints all deferred; (lots of deletes and inserts) commit; This
I'm executing stored procedures using SET FMTONLY ON, in order to emulate what our
In our application we are using set of images as slides. If we click
I have a class where I'm using __set . Because I don't want it
I have a parent class which contains a child object. I am using set
In plain English, what are the disadvantages and advantages of using SET TRANSACTION ISOLATION
Simple question, but I haven't found a good explanation on google. When using Set
Using get/set seems to be a common practice in Java (for various reasons), but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.