SELECT TOP... ?

Posts   
 
    
benles
User
Posts: 62
Joined: 02-May-2005
# Posted on: 31-May-2005 22:00:18   

Sorry, I could not find this using the search feature:

How do I use SelfServicing to do the following:

SELECT TOP 1 * FROM table ORDER BY id DESC

Thanks simple_smile

PS - is there any way to see the SQL string that was run by a query?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 31-May-2005 22:53:04   

benles wrote:

Sorry, I could not find this using the search feature:

How do I use SelfServicing to do the following:

SELECT TOP 1 * FROM table ORDER BY id DESC

Thanks simple_smile

PS - is there any way to see the SQL string that was run by a query?

Use OrderCollection.GetMulti(null, 1, sorter) simple_smile

You can see the queries generated if you use 1.0.2004.2, and switch on tracing on teh DQEs. See Troubleshooting and debugging in the 1.0.2004.2 documentation simple_smile

Frans Bouma | Lead developer LLBLGen Pro