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?
Not that I know of. But you could generate rowids using a row_number() function.
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
8080_Diver - The question is in SQL Server 2008 zone.
Sorry, cross-wired the question I was looking at. :-/
ASKER
Thank you.