I have a select statement which returns a variable number of rows. I have included it in a user-defined table function, and it works ok.
What I want to do is number each returned record consecutively, in a manner similar to Oracle's rownum function. From various searches I understand that there is no direct equivalent in sql server 2000.
Does anyone have a reference to a multi statement UDF that can do this, or better still, sample code?
Regards
T
What I want to do is number each returned record consecutively, in a manner similar to Oracle's rownum function. From various searches I understand that there is no direct equivalent in sql server 2000.
Does anyone have a reference to a multi statement UDF that can do this, or better still, sample code?
Regards
T