G
Guest
Is there a difference in how SQL Server 7 and SQL 2000 processes SQL passed
from a program by an ADO command object. Reason I ask is I rewrote a couple
applications a couple years ago were the SQL statements were inline. I
basically took the SQL statements and put them into stored procs, were there
were variables in the code I used SQL parameters in the stored procs. I got
some amazing performance results by switching to stored procs. The coding
was done in VB6 using ADO.
Now using SQL 2000 and VB.NET there appears to be little or no performance
difference between using stored procs and inline sql.
Any thoughts, I kinda would like to know so if I ever would deal with SQL
Server 7 again, I might only use Stored Procs over inline sql, where SQL 2000
and 2005 I could use either. Could It be the version of SQL or ADO being
used or a combination of both? By the way there were no hardware changes on
the servers or the network that could have caused the speed up.
Thanks
Kent
from a program by an ADO command object. Reason I ask is I rewrote a couple
applications a couple years ago were the SQL statements were inline. I
basically took the SQL statements and put them into stored procs, were there
were variables in the code I used SQL parameters in the stored procs. I got
some amazing performance results by switching to stored procs. The coding
was done in VB6 using ADO.
Now using SQL 2000 and VB.NET there appears to be little or no performance
difference between using stored procs and inline sql.
Any thoughts, I kinda would like to know so if I ever would deal with SQL
Server 7 again, I might only use Stored Procs over inline sql, where SQL 2000
and 2005 I could use either. Could It be the version of SQL or ADO being
used or a combination of both? By the way there were no hardware changes on
the servers or the network that could have caused the speed up.
Thanks
Kent