HighTechTalks DotNet Forums  

Where is the processing done - VS2005 Web development

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss Where is the processing done - VS2005 Web development in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AAJ
 
Posts: n/a

Default Where is the processing done - VS2005 Web development - 02-27-2007 , 04:21 AM






Hi all

I use datagrids bound to Objectdatasources in turn bound to datatables

Every thing works Ok, but I'm curious on how it actually works.

I have a view in my SQL Server 2000 database. i.e. vw_KPITurnAround

I connect to the view via a XSD data table with something like

SELECT ... FROM vw_KPITurnAround


If I want to filter the data then within the data table I add a table
adapter i.e.

SELECT ...FROM dbo.vw_KPITurnAround WHERE (InspectionDate
BETWEEN @StartDate AND @EndDate)

and pass the startDate and endDate parameters via my business code.

What I would like to know is

is the string in the table adapter passed to the SQL server and the
processing takes place there

e.g. SELECT ...FROM dbo.vw_KPITurnAround WHERE (InspectionDate
BETWEEN @StartDate AND @EndDate) ->@StartDate AND @EndDate passed to
Database server

or

is all the data in the table brought back in one hit to my application,

i.e.
SELECT ... FROM vw_KPITurnAround

and the processing between dates done here?

thanks for any info

Andy



Reply With Quote
  #2  
Old   
AAJ
 
Posts: n/a

Default Re: Where is the processing done - VS2005 Web development - 02-27-2007 , 04:27 AM






On looking further with sql profiler it looks as my parameters are all
passed to the SQL Server and the processing is done there

can any one confirm this is true

cheers again

Andy


"AAJ" <a.a.com> wrote

Quote:
Hi all

I use datagrids bound to Objectdatasources in turn bound to datatables

Every thing works Ok, but I'm curious on how it actually works.

I have a view in my SQL Server 2000 database. i.e. vw_KPITurnAround

I connect to the view via a XSD data table with something like

SELECT ... FROM vw_KPITurnAround


If I want to filter the data then within the data table I add a table
adapter i.e.

SELECT ...FROM dbo.vw_KPITurnAround WHERE (InspectionDate
BETWEEN @StartDate AND @EndDate)

and pass the startDate and endDate parameters via my business code.

What I would like to know is

is the string in the table adapter passed to the SQL server and the
processing takes place there

e.g. SELECT ...FROM dbo.vw_KPITurnAround WHERE
(InspectionDate BETWEEN @StartDate AND @EndDate) ->@StartDate AND
@EndDate passed to Database server

or

is all the data in the table brought back in one hit to my application,

i.e.
SELECT ... FROM vw_KPITurnAround

and the processing between dates done here?

thanks for any info

Andy




Reply With Quote
  #3  
Old   
Eliyahu Goldin
 
Posts: n/a

Default Re: Where is the processing done - VS2005 Web development - 02-27-2007 , 05:53 AM



That's right, the selects are run against the database. If you filter with
the FilterExpression property, it will take place on the web server inside
the application.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"AAJ" <a.a.com> wrote

Quote:
On looking further with sql profiler it looks as my parameters are all
passed to the SQL Server and the processing is done there

can any one confirm this is true

cheers again

Andy


"AAJ" <a.a.com> wrote in message
news:uHhqpClWHHA.528 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Hi all

I use datagrids bound to Objectdatasources in turn bound to datatables

Every thing works Ok, but I'm curious on how it actually works.

I have a view in my SQL Server 2000 database. i.e. vw_KPITurnAround

I connect to the view via a XSD data table with something like

SELECT ... FROM vw_KPITurnAround


If I want to filter the data then within the data table I add a table
adapter i.e.

SELECT ...FROM dbo.vw_KPITurnAround WHERE (InspectionDate
BETWEEN @StartDate AND @EndDate)

and pass the startDate and endDate parameters via my business code.

What I would like to know is

is the string in the table adapter passed to the SQL server and the
processing takes place there

e.g. SELECT ...FROM dbo.vw_KPITurnAround WHERE (InspectionDate
BETWEEN @StartDate AND @EndDate) ->@StartDate AND @EndDate passed to
Database server

or

is all the data in the table brought back in one hit to my application,

i.e.
SELECT ... FROM vw_KPITurnAround

and the processing between dates done here?

thanks for any info

Andy






Reply With Quote
  #4  
Old   
AAJ
 
Posts: n/a

Default Re: Where is the processing done - VS2005 Web development - 02-27-2007 , 06:32 AM



Many thanks

Andy

"Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN (AT) mMvVpPsS (DOT) org> wrote in
message news:OfiIe3lWHHA.4860 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Quote:
That's right, the selects are run against the database. If you filter with
the FilterExpression property, it will take place on the web server inside
the application.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"AAJ" <a.a.com> wrote in message
news:eFBm9FlWHHA.1636 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
On looking further with sql profiler it looks as my parameters are all
passed to the SQL Server and the processing is done there

can any one confirm this is true

cheers again

Andy


"AAJ" <a.a.com> wrote in message
news:uHhqpClWHHA.528 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Hi all

I use datagrids bound to Objectdatasources in turn bound to datatables

Every thing works Ok, but I'm curious on how it actually works.

I have a view in my SQL Server 2000 database. i.e. vw_KPITurnAround

I connect to the view via a XSD data table with something like

SELECT ... FROM vw_KPITurnAround


If I want to filter the data then within the data table I add a table
adapter i.e.

SELECT ...FROM dbo.vw_KPITurnAround WHERE (InspectionDate
BETWEEN @StartDate AND @EndDate)

and pass the startDate and endDate parameters via my business code.

What I would like to know is

is the string in the table adapter passed to the SQL server and the
processing takes place there

e.g. SELECT ...FROM dbo.vw_KPITurnAround WHERE (InspectionDate
BETWEEN @StartDate AND @EndDate) ->@StartDate AND @EndDate passed to
Database server

or

is all the data in the table brought back in one hit to my application,

i.e.
SELECT ... FROM vw_KPITurnAround

and the processing between dates done here?

thanks for any info

Andy








Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.