Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ROWNUM is sql 2000

Posted on 2001-08-02
4
Medium Priority
?
434 Views
Last Modified: 2012-06-27
Hi,

Whats the pseudocolumn for getting the rowid's of a table in sql 2000

Thanks
0
Comment
Question by:nirmalas
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 200 total points
ID: 6347514
This doesn't exists (unfortunately) in SQL Server (neither 7 nor 2000...).

Workaround:
insert all the rows into a table, which has an additional row with identity property...

Now, there exist only 2 main usages for the rownum:
1) displaying this in the client application: this job can be done by the client application itself...
2) returning only rows 1..n : use the SELECT TOP n * FROM ... syntax

Cheers
0
 

Expert Comment

by:CleanupPing
ID: 9281902
nirmalas:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 9776239
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Award points to angelIII

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Anthony
EE Cleanup Volunteer


0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
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 SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

782 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