dataContext.storedProcedure(params).Skip(4).Take(3) - where is it executed
-
Hi! let's assume that the sproc returnes 20 rows. well, i know that the sproc is going to be executed on the DB but will Skip and Take do their stuff after the data (20 rows) from the sproc is returned to the application or will linq "do it's magic" and call converted to sql statements Skip and Take on the DB and return only 3 rows to the application? thanks for any help
life is study!!!
-
Hi! let's assume that the sproc returnes 20 rows. well, i know that the sproc is going to be executed on the DB but will Skip and Take do their stuff after the data (20 rows) from the sproc is returned to the application or will linq "do it's magic" and call converted to sql statements Skip and Take on the DB and return only 3 rows to the application? thanks for any help
life is study!!!
You can check this yourself. Load up SQL Profiler and execute a trace on your database. Step through your LINQ code in debug mode and observe what SQL statements are being executed against the database from the trace output.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
Hi! let's assume that the sproc returnes 20 rows. well, i know that the sproc is going to be executed on the DB but will Skip and Take do their stuff after the data (20 rows) from the sproc is returned to the application or will linq "do it's magic" and call converted to sql statements Skip and Take on the DB and return only 3 rows to the application? thanks for any help
life is study!!!
Skip and Take will work on the data that has been returned from the stored procedure. There's no way that it could step into the SP and change its behaviour.
Deja View - the feeling that you've seen this post before.
-
Skip and Take will work on the data that has been returned from the stored procedure. There's no way that it could step into the SP and change its behaviour.
Deja View - the feeling that you've seen this post before.
-
You can check this yourself. Load up SQL Profiler and execute a trace on your database. Step through your LINQ code in debug mode and observe what SQL statements are being executed against the database from the trace output.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-