Hi,
I've got this pretty big query (lots of fields and inner join).
Running the query takes between 2 and 4 seconds.
But, i only want to get 1 row.
I tried TOP 1 or SET ROWCOUNT 1 but those just make my query run in about 30secs!
Is there something i'm missing here? I want to get 1 row only.
Is there another way of doing this?
Thanks.
(And i thought this'd be simple!) hehe
I've got this pretty big query (lots of fields and inner join).
Running the query takes between 2 and 4 seconds.
But, i only want to get 1 row.
I tried TOP 1 or SET ROWCOUNT 1 but those just make my query run in about 30secs!
Is there something i'm missing here? I want to get 1 row only.
Is there another way of doing this?
Thanks.
(And i thought this'd be simple!) hehe