PC Review


Reply
Thread Tools Rate Thread

Best Practices for Data Access

 
 
KA Kueh
Guest
Posts: n/a
 
      26th Dec 2007
Dear all,

I need to design an smart client application that can run on mulitple and
plugable backend like MS SQL, Oracle or MySQL. Also the smart client is
accessing the database from the internet. What is the best approach?
Thanks.

Regards,
Kueh.


 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      26th Dec 2007
Hi kueh,

> I need to design an smart client application that can run on mulitple and
> plugable backend like MS SQL, Oracle or MySQL. Also the smart client is
> accessing the database from the internet. What is the best approach?


Maybe you can hire a consultant, however don't expect to get a cheap answer
on this in a newsgroup message and for sure you won't get the overal Best
Practice. That simply does not exist.

Cor

 
Reply With Quote
 
msdngroup
Guest
Posts: n/a
 
      26th Dec 2007
You may see the site http://www.udaparts.com/document/articles/dialupdb.htm


"KA Kueh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear all,
>
> I need to design an smart client application that can run on mulitple and
> plugable backend like MS SQL, Oracle or MySQL. Also the smart client is
> accessing the database from the internet. What is the best approach?
> Thanks.
>
> Regards,
> Kueh.
>



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      26th Dec 2007
I don't know if there is a "best" approach, but I'd look at using a
DBProviderFactory in a separated data layer to keep the data layer as
independent of the data as possible.


"KA Kueh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear all,
>
> I need to design an smart client application that can run on mulitple and
> plugable backend like MS SQL, Oracle or MySQL. Also the smart client is
> accessing the database from the internet. What is the best approach?
> Thanks.
>
> Regards,
> Kueh.
>



 
Reply With Quote
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      26th Dec 2007
Since you want multiple backends, you will want to set up a factory pattern
over the actual data access, so you can use configuration to set the
database. If you want to simplify things, you can use sprocs with the same
name in each "product" of your factory method, but this will not work for
all databi you may try (yes, I know databi is not a real word), as some do
not support sprocs.

As for how to design it, it can depend on the nature of the application. For
maintainability and extensibility, dofactory.com has a reference
architecture with their framework (pretty inexpensive). There are cases
where you might alter the pattern, however.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"KA Kueh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear all,
>
> I need to design an smart client application that can run on mulitple and
> plugable backend like MS SQL, Oracle or MySQL. Also the smart client is
> accessing the database from the internet. What is the best approach?
> Thanks.
>
> Regards,
> Kueh.
>



 
Reply With Quote
 
KA Kueh
Guest
Posts: n/a
 
      27th Dec 2007
Dear all,

Thanks for all the replies. I will take a look at all the suggestions.


"KA Kueh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear all,
>
> I need to design an smart client application that can run on mulitple and
> plugable backend like MS SQL, Oracle or MySQL. Also the smart client is
> accessing the database from the internet. What is the best approach?
> Thanks.
>
> Regards,
> Kueh.
>



 
Reply With Quote
 
William Vaughn
Guest
Posts: n/a
 
      29th Dec 2007
While Greg is right, IMHO this is a tough nut to crack. Any attempt at this
will yield a VERY complex application and programming regimens. Frankly, I
have not seen many (very few in fact) sucessful implementations of this
approach. Most end in failure--overcome by the differences between the
various backends. Consider that you would have to write your applications to
be totally DBMS agnostic--ignoring the features that make one better/more
useful than another. This approach also means you would have N backup
strategies, N management strategies, N sets of stored procedures that cannot
leverage the features of the backend--assuming the backend even supported
SPs. While Oracle and SQL Server both support SPs, they work very
differently. While both are "ANSI-compliant" there are significant
differences. Yes, it's theoretically possible to implement but IMHO probably
N squared more complex to implement than similar but separate applications.

--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________
"KA Kueh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear all,
>
> I need to design an smart client application that can run on mulitple and
> plugable backend like MS SQL, Oracle or MySQL. Also the smart client is
> accessing the database from the internet. What is the best approach?
> Thanks.
>
> Regards,
> Kueh.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data availability best practices? Jim Hubbard Microsoft C# .NET 3 24th Mar 2006 04:57 AM
Data availability best practices? Jim Hubbard Microsoft VB .NET 3 24th Mar 2006 04:57 AM
Data availablility best practices? Jim Hubbard Microsoft Dot NET 2 24th Mar 2006 03:15 AM
.NET Compact Framework: Data Access Best Practices for Sometimes Connected Devices www.ttdown.com Microsoft Dot NET Compact Framework 0 10th Oct 2003 03:02 AM
Best Practices Question - Data Access gb Microsoft C# .NET 5 4th Sep 2003 12:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 AM.