+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    54

    t-sql select by row number

     
    I am making a program which selects a row from a database based on its row number, who can i do that using a sored procedure?

    I googled about it a lot but I found nothing

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    267

    sql server 2005?

    are you using sql server 2005?

    SELECT
    RecordID,
    RecordName,
    Row_Number() Over (Order By RecordName ASC) AS ROWID

    FROM MyTable
    ORDER BY RecordID ASC;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Saints Row 2 Ammo Help!
    By Guitarlegend0101 in forum General Gaming Discussion
    Replies: 0
    Last Post: May 27th, 2009, 05:10 PM
  2. (SQL Server 2008) Exporting Databases to 'SQL INSERT' statements
    By gberz3 in forum Applications and Operating Systems
    Replies: 0
    Last Post: May 2nd, 2009, 11:46 PM
  3. Row height differences in IE and FF
    By Super Nick in forum Webmastering and Programming
    Replies: 1
    Last Post: July 18th, 2006, 01:38 PM
  4. Two bad 6600GT's in a row???
    By DanU in forum Graphics Cards and Displays
    Replies: 5
    Last Post: February 13th, 2006, 11:14 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews