Get RowID on select query

Posted on 2009-12-22
Last Modified: 2012-05-08

 I'm working with Transact SQL 2005 and I'm trying to do a query with the the Row Index. But, I don't have the function Row_Index() or RowIndex().

What is the equivalent of Row_Index or Row_Number in Transact SQL 2005?

Question by:Albator666
    LVL 57

    Accepted Solution

    You have ROW_NUMBER() function in SQL Server 2005..

    Kindly let me know if you meant any other functions..
    LVL 5

    Expert Comment

    The question he asked was answered appropriately and correctly by an expert.  That person deserves the points for the answer.
    LVL 57

    Expert Comment

    by:Raja Jegan R
    Thanks BryanMI and Albator666.
    Wishing you both Happy Holidays..

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
    Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now