Results 1 to 5 of 5

Thread: limit record

  1. #1
    Join Date
    Oct 2004
    Location
    In cousin's house
    Posts
    303

    Unanswered: limit record

    hi everybody,

    Beside top statement what is the best statement used to limit the display the data?

    Thanks...

  2. #2
    Join Date
    Dec 2004
    Location
    York, PA
    Posts
    95
    Where

    Having

    Look them up in BOL
    Sorry to be terse
    some say it's a curse
    I know it's worse
    I'm just diverse

  3. #3
    Join Date
    Apr 2004
    Location
    Kansas City, MO
    Posts
    734
    You can also use SET ROWCOUNT, which can also be found in Books Online.
    MeanOldDBA
    derrickleggett@hotmail.com
    When life gives you a lemon, fire the DBA.

  4. #4
    Join Date
    Oct 2004
    Location
    In cousin's house
    Posts
    303
    thans for the replys guys, One more question here can I use set row count in my vb app without using stored procedure?

    thank

  5. #5
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Quote Originally Posted by popskie
    thans for the replys guys, One more question here can I use set row count in my vb app without using stored procedure?

    thank
    Sometimes you can, sometimes you can't. The SET ROWCOUNT command is a SQL Server specific command, that affects the current connection. If your application uses connection pooling, it is unsafe to use SET ROWCOUNT outside of a stored procedure.

    -PatP

Posting Permissions

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