Click to See Complete Forum and Search --> : MTS & VB
efrat
Apr 4th, 2000, 01:23 PM
Hi all
what is state less?
if i develope with store procedure
its a pure middle -tier?
wfrat
Clunietp
Apr 4th, 2000, 01:41 PM
Hello Efrat!
A stateless component is one that only contains functions or subs, not any properties.
The advantage of using stateless components in an MTS application is that because your objects do not have any properties (state), MTS does not have to retain any object information between calls from your client, so the object can be destroyed as soon as a function/sub has been executed. Because the object is immediately destroyed, there is no additional overhead on the server to retain that instance of the component in memory.
What do you mean by "pure" middle tier?
Lehitraot!
Tom
Clunietp
Apr 4th, 2000, 02:03 PM
Shalom Efrat! I found some useful links for you:
http://msdn.microsoft.com/training/free/chapters/mwd68/Topics/mwd9800581.htm
http://msdn.microsoft.com/library/partbook/asp20/holdingstate.htm
A more insightful view
http://msdn.microsoft.com/library/periodic/period99/instincts1299.htm
efrat
Apr 4th, 2000, 03:18 PM
Pure its meen .
If I use Store procedure and not sql query like select..
Where will be the Data Layer ?
Lehitraot Haver Yakar
Efrat
Clunietp
Apr 4th, 2000, 10:29 PM
The data access layer does not have to issue a SELECT statement to be considered the data access layer.
The data access layer has all database specific code in it. It will connect to the DB, then get a recordset, perform an update, execute a stored procedure, or anything else.
The point of the data access layer is that if you were to change databases, you would only have to change your data access layer component (and NOT your business objects). You would then, however, have to rewrite your stored procedures for that DBMS, or if you use plain SQL in your data access layer, you would have to slightly modify it, but to a lesser extent.
I use stored procedures because my database will not likely change, and I get the performance benefits as well...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.