1 Surly: Surly may refer to: One of the Seven Duffs in The Simpsons cartoon Surly Bikes, Bloomington, MN, USA Surly Brewing Company, Brooklyn Center, MN, USA. Surly Brewing Company: The Surly Brewing Company is a Brooklyn Center, Minnesota-based craft brewery, noted for well-reviewed beers and primarily canning, rather than bottling. 2  Surly Bob: For the former sports bar in Yellowknife see Surly Bob's Surly Bob is a 19th-century English children's novel by Luisa C. Silke.
It may not be easy in SQL Server 2000. SQL Server 2005 provides ROW_NUMBER() function which is pretty useful for this kind of requirement. I guess, with SQL server 2000 you dont have many options. 1. Create a memory table which has an identity column.Insert values to the memory table and then select it from there.QL Server 2005 provides ROW_NUMBER() function which is pretty useful for this kind of requirement. I guess, with SQL server 2000 you dont have many options. 1. Create a memory table which has an identity column.
But the SQL server introduces a new function called row_number() . This function assigns a unique row number starting from 1 to number of records. The following is the statement which is the SQL Server 2005 equivalent of the above query set: This statement doesn't use the temp table.So, the fetch will be faster than the previous approach. As in the previous approach, if you want to start the row number from 100, you can use: In addition to the row_number() function, SQL Server 2005 also introduces the function rank() .his statement doesn't use the temp table. So, the fetch will be faster than the previous approach. As in the previous approach, if you want to start the row number from 100, you can use: In addition to the row_number() function, SQL Server 2005 also introduces the function rank() .