Results 1 to 5 of 5

Thread: MTS & VB

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    y
    Posts
    141
    Hi all
    what is state less?
    if i develope with store procedure
    its a pure middle -tier?

    wfrat

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    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

  3. #3

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    y
    Posts
    141

    Pure 3-Tier

    Pure its meen .

    If I use Store procedure and not sql query like select..
    Where will be the Data Layer ?

    Lehitraot Haver Yakar

    Efrat

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width