Link to home
Start Free TrialLog in
Avatar of jbaird123
jbaird123

asked on

ROWID pseudo column for SQL Server?

Is there any kind of ROWID (as is the case with Oracle) pseduo column that can be used for SQL Server?
Avatar of sventhan
sventhan
Flag of United States of America image

Not that I know of. But you could generate rowids using a row_number() function.
Avatar of Paul Jackson
Avatar of jbaird123
jbaird123

ASKER

sventhan:

It looks like your example shows how to generate a sequence - similar to the Oracle ROWNUM feature.  I'm looking for something similar to the ROWID feature that can be used in the where clause of a SQL query like this:
 
update tablename
set fieldname='asdfadsfasdf'
where rowid = <<some value>>

Is there anything like that at all?
ASKER CERTIFIED SOLUTION
Avatar of Sharath S
Sharath S
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also,  since you didn't specify a version, ROW_NUMBER is not available in SQL Server 2000.
>> Also,  since you didn't specify a version, ROW_NUMBER is not available in SQL Server 2000.

8080_Diver -  The question is in SQL Server 2008 zone.
Sorry, cross-wired the question I was looking at.  :-/
Thank you.