Results 1 to 8 of 8

Thread: Data Access Layer & Data Layer

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    244

    Data Access Layer & Data Layer

    what is the difference between Data Access Layer & Data Layer??

  2. #2
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: Data Access Layer & Data Layer

    Nothing
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    244

    Re: Data Access Layer & Data Layer

    Quote Originally Posted by DNA7433
    Nothing
    how..........?there is difference. can u plz explain ur point of view more

  4. #4
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: Data Access Layer & Data Layer

    Oh you know what, I know what you mean now. The Data Layer is your database. The Data Access Layer is a layer of code in your program that encapsulates and handles all interaction with the database
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    244

    Re: Data Access Layer & Data Layer

    Quote Originally Posted by DNA7433
    Oh you know what, I know what you mean now. The Data Layer is your database. The Data Access Layer is a layer of code in your program that encapsulates and handles all interaction with the database

    yes that what i want to confirm, what abt ODBC etc i think it's separate middle layer

  6. #6
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: Data Access Layer & Data Layer

    ODBC is a data access technology that your code inside the Data Access Layer can utilize to connect to your data source. Same as ADO.

    Your DAL is specific to each project while technologies such as ADO work for any project without modification.
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    244

    Re: Data Access Layer & Data Layer

    Quote Originally Posted by DNA7433
    ODBC is a data access technology that your code inside the Data Access Layer can utilize to connect to your data source. Same as ADO.

    Your DAL is specific to each project while technologies such as ADO work for any project without modification.

    ok, now coming to the purpose of my question, when say 3-tier architecture

    1. Presentation Layer
    2. Business Layer
    3. Data Layer

    but in coding perspective; we define 3-tier architecture

    1. Presentation Layer
    2. Business Logic Layer
    3. Data Access Layer

    one cay say; why are you saying two different layers at 3 place!!! since there is a difference in b/w two. how should we satify them??

  8. #8
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: Data Access Layer & Data Layer

    3-tier architecture is when there is a machine running the database, another machine running the server side functionality (business layer) and each user runs the presentation layer on his computer. Splitting it up accross computers allows the application to scale more easily (when your number of users increases) because you can add more computers to say just the business layer to process the requests. In a web scenario you can have several machines for the database, several machines handling web requests using your business layer (which in turn use the database machines) and the presentation layer is the user's browser. The business and data access layers of the software usually run on the same machine.

    3-layer architecture in software is exactly as you say. The presentation layer is where the code for the user interface goes, business logic layer is where your business objects go, and data access layer is where the code to transfer data between the database and your business objects go.

    I hope that helps.
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

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