Numbering the Result Set - Like Rownum(ORACLE)

  • I am trying to migrate to SQL Server from Oracle and I have trouble finding an equivalent to ROWNUM (Oracle) in SQL Server. Is it possible in SQL Server 2000 to number the result set in a sequence?

    Thank You

    Anil K Godumagadda

  • There is no equivalent to ROWNUM in SQL. Take a look at this:

    http://support.microsoft.com/default.aspx?scid=KB;EN-US;q186133

  • Hi Anil,

    quote:


    I am trying to migrate to SQL Server from Oracle and I have trouble finding an equivalent to ROWNUM (Oracle) in SQL Server. Is it possible in SQL Server 2000 to number the result set in a sequence?


    same topic as in a different category. Crosspost?

    Cheers,

    Frank

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply