Binary Search in SQL Server 2008?
I recently learned about binary search in one of my classes at school, and it brought up a question in my head about accessing a database using Coldfusion. Lets say that I create a table in MS SQL Server 2008, and I assign the table column "id" to be the primary key with auto incrementing. If I were to perform the coldfusion statement SELECT * FROM myTable WHERE id = 'idOfRow', would a binary search be performed in this case since the id's are in sorted order?
Thanks,
Ben
