473,387 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to make an Comercial Aplicaction database independant (refrase)

I'm refrasing a question I posted earlier because I didn't explain myself.

I need an efficient way to make an especific comercial application able to
use whatever database the
client prefers a main database, even after the initial installation.
It's a Balanced Scorecard System. And though the structure remains the same,
the client should be able to choose its database (MySQL, SQLServer, Acces,
etc).

Thanks,
Gustavo De la Espriella
Nov 19 '05 #1
5 1301
If you know your application is always only going to use SQL Server as its
persistent storage format, you can safely go ahead and program using the
SQLClient objects - SQLConnection, SQlDataAdapter, SqlCommand and so forth.
However it can be beneficial to write code more generically so that it
utilitizes the underlying base classes rather than the specific derived
child classes. For example you can write a generic handler that would work
with either a SQLConnection object or an OLEDbConnection object. Simply
write the code in your common handler so that it refers only to the
underlying base classes. Then you can pass specific derived objects to the
common handler, and the same code will work with both types.

BTW, the FMS Total .NET Sourcebook has code to do this, and much, much,
more. Please visit: http://www.fmsinc.com/dotnet/SourceBook/

Hope this helps you.
--
Gopal Rangaswamy
Microsoft Certified Solutions Developer
FMS, Inc.
<http://www.fmsinc.com/consulting>

"Gustavo De la Espriella" <qq@qqq.qq.qq> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
I'm refrasing a question I posted earlier because I didn't explain myself.

I need an efficient way to make an especific comercial application able to
use whatever database the
client prefers a main database, even after the initial installation.
It's a Balanced Scorecard System. And though the structure remains the same, the client should be able to choose its database (MySQL, SQLServer, Acces,
etc).

Thanks,
Gustavo De la Espriella

Nov 19 '05 #2

..NET framework 2.0 will support pluggable data access drivers.
With 1.1, it's still pretty messy.

-Oleg.

"Gustavo De la Espriella" <qq@qqq.qq.qq> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
I'm refrasing a question I posted earlier because I didn't explain myself.

I need an efficient way to make an especific comercial application able to
use whatever database the
client prefers a main database, even after the initial installation.
It's a Balanced Scorecard System. And though the structure remains the
same, the client should be able to choose its database (MySQL, SQLServer,
Acces, etc).

Thanks,
Gustavo De la Espriella

Nov 19 '05 #3
Hello

Take a look to Data Abstract, currently for Delphi but will be available for
..NET soon
http://www.remobjects.com/page.asp?id={A1FEB4A5-CC12-4FFF-9C47-7116910DCBB8}
http://www.remobjects.com/page.asp?id={680DEBDB-413A-48D9-AF59-9D3E3FE48F82}

I hope this help you.
Mauricio.

"Gustavo De la Espriella" <qq@qqq.qq.qq> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
I'm refrasing a question I posted earlier because I didn't explain myself.

I need an efficient way to make an especific comercial application able to
use whatever database the
client prefers a main database, even after the initial installation.
It's a Balanced Scorecard System. And though the structure remains the same, the client should be able to choose its database (MySQL, SQLServer, Acces,
etc).

Thanks,
Gustavo De la Espriella

Nov 19 '05 #4
you should implement the database factory model. while this pattern is easy
to develop, supporting multiple databases requires some hard decisions. not
all databases support the same features or sql syntax, so you will need to
decide on how to handle - lowest common code, specialized code for each
database, etc.

-- bruce (sqlwork.com)

"Gustavo De la Espriella" <qq@qqq.qq.qq> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
| I'm refrasing a question I posted earlier because I didn't explain myself.
|
| I need an efficient way to make an especific comercial application able to
| use whatever database the
| client prefers a main database, even after the initial installation.
| It's a Balanced Scorecard System. And though the structure remains the
same,
| the client should be able to choose its database (MySQL, SQLServer, Acces,
| etc).
|
| Thanks,
| Gustavo De la Espriella
|
|
Nov 19 '05 #5
Hello Gustavo De la Espriella,

See my response to your original post. I describe an implementation using
AbstractFactory and DataMapper to acheive this.

--
Matt Berther
http://www.mattberther.com
I'm refrasing a question I posted earlier because I didn't explain
myself.

I need an efficient way to make an especific comercial application
able to
use whatever database the
client prefers a main database, even after the initial installation.
It's a Balanced Scorecard System. And though the structure remains the
same,
the client should be able to choose its database (MySQL, SQLServer,
Acces,
etc).
Thanks,
Gustavo De la Espriella


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Douglas | last post by:
Dumb question on the mysql mailing list but what database should I learn, for education and interest? Free and with the possibility of making me more employable would be my only criteria. Douglas
4
by: cvillard | last post by:
I have a couple questions I hope someone might be able to answer, or rather point me in the correct direction. I am an independant developer and I am working on a small CRM for small businesses....
4
by: Don Grover | last post by:
Im looking for advice on migrating from asp to asp.net. If someone can answer a few questions please. 1) What time frames should I allow for getting upto speed in asp/vb .net from a comercial...
5
by: Gustavo De la Espriella | last post by:
Hi, What's a good way to make an application automatically choose between SQLClient, ODBC, Oracle and OleDB depending on user's choice? Thanks, Gustavo De la Espriella
1
by: bmt | last post by:
I intend to set up a large database with PostgreSQL: about 1.3 TB, very basic queries (but 1500 per second at peak charge), and most probably only a single one index. The overall application, which...
0
by: Dimitar | last post by:
Hi, I have a program in C/C++, with embedded SQL, with a single thread of execution. I am trying to establish two database connections, to the same database, so I can have concurrent,...
5
by: DelphiAddict | last post by:
Hi. Has anyone looked into generic factoring for making database independant applications? (Framework 2.0) I have, but I'm in the starting fase. What I do know is that if you only write...
6
by: carsonbj | last post by:
I have an issue where the below operation works on a little-endian architecture but not on a big-endian architecture. I was under the impression that pointer arithmetic is architecture independant...
18
by: Phil | last post by:
I'm looking for some advice on choosing a suitable database for a new application. It's going to be written in VB. I have a lot of experience with VB6, but I now have a copy of VB2005 Express, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.