Forum Moderators: open

Message Too Old, No Replies

Data Access Applicaton Block

Why are you using them?

         

Easy_Coder

5:48 pm on May 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Microsoft considers use of this api to be a 'Best Practice' but why have you decided to the data access application block?

- Was it to reduce redundant code?
- To have a consistent data access that could easily be maintained?
- Did you need to have application portability?

For me I'm curious about the portability benefits. The Database class lets you hook into MS SQL, Oracle or DB2 but will you still get good performance when it ports to say oracle or DB2 if you've written and optimized the initial implementation for ms sql?

TheNige

8:29 pm on May 25, 2005 (gmt 0)

10+ Year Member



We've only started to use them, but the reasons you give are some of why we have....less redundant code and a standard access method.

As for as using with something else besides SQL server I can only guess, but as far as I know the application blocks are really just functions and methods that still use the underlying data provider that is required for access to the type of database that you are using. So if you use the Oracle stuff it will still use the Oracle data provider.