Hello!

I'm still new with MS SQL and I tried to use the SQLEXEC() function to
execute the STORED PROCEDUREs I coded at the SQL Server but when I tried to
use the remote views I found out that its much faster than the SQLEXEC
function.

So I would like to ask for any suggestions about this, if the using the
remote views in updating the data at the SQL Server is much faster compared
to using the SQLEXEC function.

Thank you.

Ryan Paradela

Re: back end data faster updates by Anders

Anders
Mon Sep 17 03:55:02 PDT 2007

A problem when you try and make these tests is that SQL Server, just like
VFP, caches data and queries plans so that running the same query, even when
switching between remote views and SPT calls, tends to run faster for each
repetition.
-Anders

"Yan" <Yan@discussions.microsoft.com> wrote in message
news:FEFFEE0F-19AC-4997-85EC-791FECB7579D@microsoft.com...
> Hello!
>
> I'm still new with MS SQL and I tried to use the SQLEXEC() function to
> execute the STORED PROCEDUREs I coded at the SQL Server but when I tried
> to
> use the remote views I found out that its much faster than the SQLEXEC
> function.
>
> So I would like to ask for any suggestions about this, if the using the
> remote views in updating the data at the SQL Server is much faster
> compared
> to using the SQLEXEC function.
>
> Thank you.
>
> Ryan Paradela



Re: back end data faster updates by Yan

Yan
Tue Sep 18 18:10:04 PDT 2007

I see, but which would you prefer to use. SPT calls, or using remote views? I
have been developing complex applications and this year we just started to
use SQL Server. Ever since I was employed as a developer I only used VFP. So
now that I have this opportunity to learn SQL Server I have been wondering
which would be better, in terms of data retrieval and update, to use remote
views or SPT calls.

Thanks Anders!


Ryan Paradela



"Anders Altberg" wrote:

> A problem when you try and make these tests is that SQL Server, just like
> VFP, caches data and queries plans so that running the same query, even when
> switching between remote views and SPT calls, tends to run faster for each
> repetition.
> -Anders
>
> "Yan" <Yan@discussions.microsoft.com> wrote in message
> news:FEFFEE0F-19AC-4997-85EC-791FECB7579D@microsoft.com...
> > Hello!
> >
> > I'm still new with MS SQL and I tried to use the SQLEXEC() function to
> > execute the STORED PROCEDUREs I coded at the SQL Server but when I tried
> > to
> > use the remote views I found out that its much faster than the SQLEXEC
> > function.
> >
> > So I would like to ask for any suggestions about this, if the using the
> > remote views in updating the data at the SQL Server is much faster
> > compared
> > to using the SQLEXEC function.
> >
> > Thank you.
> >
> > Ryan Paradela
>
>
>

Re: back end data faster updates by Dan

Dan
Wed Sep 19 09:04:13 PDT 2007

I'd be surprised if remote views were actually faster than SPT. They're
really exactly the same, except the remote view puts a fancy GUI on the
front of the process and issues a lot of commands that you don't have to
type, many of which aren't strictly necessary every time through. You can
turn on ODBC logging to actually see these commands happening.

(If you're not sending updates, why set UpdateTables? Views do that, and
more.)

They're exactly the same technology.

MVP Andy Kramek espouses a very metadata-driven approach to data handling
(which I like a lot), where his own code accesses back-end data. That pretty
much precludes remote views because the code is manufactured on the fly.
Check it out at http://www.tightlinecomputers.com/ -- there should be a
white papers section.

Dan


Yan wrote:
> I see, but which would you prefer to use. SPT calls, or using remote
> views? I have been developing complex applications and this year we
> just started to use SQL Server. Ever since I was employed as a
> developer I only used VFP. So now that I have this opportunity to
> learn SQL Server I have been wondering which would be better, in
> terms of data retrieval and update, to use remote views or SPT calls.
>
> Thanks Anders!
>
>
> Ryan Paradela
>
>
>
> "Anders Altberg" wrote:
>
>> A problem when you try and make these tests is that SQL Server, just
>> like VFP, caches data and queries plans so that running the same
>> query, even when switching between remote views and SPT calls, tends
>> to run faster for each repetition.
>> -Anders
>>
>> "Yan" <Yan@discussions.microsoft.com> wrote in message
>> news:FEFFEE0F-19AC-4997-85EC-791FECB7579D@microsoft.com...
>>> Hello!
>>>
>>> I'm still new with MS SQL and I tried to use the SQLEXEC() function
>>> to execute the STORED PROCEDUREs I coded at the SQL Server but when
>>> I tried to
>>> use the remote views I found out that its much faster than the
>>> SQLEXEC function.
>>>
>>> So I would like to ask for any suggestions about this, if the using
>>> the remote views in updating the data at the SQL Server is much
>>> faster compared
>>> to using the SQLEXEC function.
>>>
>>> Thank you.
>>>
>>> Ryan Paradela



Re: back end data faster updates by Yan

Yan
Sun Sep 23 16:48:01 PDT 2007

Thank you both for the responses. I'm still on the learning process.


Ryan Paradela



"Dan Freeman" wrote:

> I'd be surprised if remote views were actually faster than SPT. They're
> really exactly the same, except the remote view puts a fancy GUI on the
> front of the process and issues a lot of commands that you don't have to
> type, many of which aren't strictly necessary every time through. You can
> turn on ODBC logging to actually see these commands happening.
>
> (If you're not sending updates, why set UpdateTables? Views do that, and
> more.)
>
> They're exactly the same technology.
>
> MVP Andy Kramek espouses a very metadata-driven approach to data handling
> (which I like a lot), where his own code accesses back-end data. That pretty
> much precludes remote views because the code is manufactured on the fly.
> Check it out at http://www.tightlinecomputers.com/ -- there should be a
> white papers section.
>
> Dan
>
>
> Yan wrote:
> > I see, but which would you prefer to use. SPT calls, or using remote
> > views? I have been developing complex applications and this year we
> > just started to use SQL Server. Ever since I was employed as a
> > developer I only used VFP. So now that I have this opportunity to
> > learn SQL Server I have been wondering which would be better, in
> > terms of data retrieval and update, to use remote views or SPT calls.
> >
> > Thanks Anders!
> >
> >
> > Ryan Paradela
> >
> >
> >
> > "Anders Altberg" wrote:
> >
> >> A problem when you try and make these tests is that SQL Server, just
> >> like VFP, caches data and queries plans so that running the same
> >> query, even when switching between remote views and SPT calls, tends
> >> to run faster for each repetition.
> >> -Anders
> >>
> >> "Yan" <Yan@discussions.microsoft.com> wrote in message
> >> news:FEFFEE0F-19AC-4997-85EC-791FECB7579D@microsoft.com...
> >>> Hello!
> >>>
> >>> I'm still new with MS SQL and I tried to use the SQLEXEC() function
> >>> to execute the STORED PROCEDUREs I coded at the SQL Server but when
> >>> I tried to
> >>> use the remote views I found out that its much faster than the
> >>> SQLEXEC function.
> >>>
> >>> So I would like to ask for any suggestions about this, if the using
> >>> the remote views in updating the data at the SQL Server is much
> >>> faster compared
> >>> to using the SQLEXEC function.
> >>>
> >>> Thank you.
> >>>
> >>> Ryan Paradela
>
>
>

Re: back end data faster updates by swdev2

swdev2
Fri Sep 28 11:37:50 PDT 2007

Stored Procedure time vs Remote View Time ?
Sorry, you are trying to compare apples and oranges.

What does the Stored Procedure Do ?
Are you using parameterized Remote Views or something silly like
'select * from RyansTable' ???

Also - remember that indices are important, and you should expose yerself to
the theory of
RDBMS - At least read the CJ Date book 'An Introduction to Database
Systems' -
see Amazon's link for more info
http://www.amazon.com/Introduction-Database-Systems-Eighth/dp/0321197844/ref
=pd_bbs_1/104-8118666-4061508?ie=UTF8&s=books&qid=1191000626&sr=8-1

Mondo Regards [Bill]

--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Yan" <Yan@discussions.microsoft.com> wrote in message
news:FEFFEE0F-19AC-4997-85EC-791FECB7579D@microsoft.com...
> Hello!
>
> I'm still new with MS SQL and I tried to use the SQLEXEC() function to
> execute the STORED PROCEDUREs I coded at the SQL Server but when I tried
to
> use the remote views I found out that its much faster than the SQLEXEC
> function.
>
> So I would like to ask for any suggestions about this, if the using the
> remote views in updating the data at the SQL Server is much faster
compared
> to using the SQLEXEC function.
>
> Thank you.
>
> Ryan Paradela