Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / DataGrid / February 2007

Tip: Looking for answers? Try searching our database.

Where is the processing done -  VS2005 Web development

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AAJ - 27 Feb 2007 09:21 GMT
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
AAJ - 27 Feb 2007 09:27 GMT
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

> Hi all
>
[quoted text clipped - 37 lines]
>
> Andy
Eliyahu Goldin - 27 Feb 2007 10:53 GMT
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.

Signature

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

> On looking further with sql profiler it looks as my parameters are all
> passed to the SQL Server and the processing is done there
[quoted text clipped - 46 lines]
>>
>> Andy
AAJ - 27 Feb 2007 11:32 GMT
Many thanks

Andy

> 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
[quoted text clipped - 50 lines]
>>>
>>> Andy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.