 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
James D. Franchello Guest
|
Posted: Fri Apr 27, 2007 3:07 am Post subject: MySQL D2005 |
|
|
Hello,
Can anyone point me in the right direction for pulling together the things I
would need to write a very small D2005 .Net app that uses data in a MySQL
5.0 database? Any assistance, examples, etc would be greatly appreciated!
TIA,
James |
|
| Back to top |
|
 |
Guillem Guest
|
Posted: Fri Apr 27, 2007 8:11 am Post subject: Re: MySQL D2005 |
|
|
James D. Franchello wrote:
| Quote: | Hello,
Can anyone point me in the right direction for pulling together the
things I would need to write a very small D2005 .Net app that uses
data in a MySQL 5.0 database? Any assistance, examples, etc would be
greatly appreciated!
|
mmmmmm...
- data provider (driver): MySQL has one in their webpage for .NET. This
allows the connection between the database and your app.
- data access components: you could use BDP or ADO.NET, for example.
These components are used to manage the data in your app.
- data-aware components: These will allow you to actually show the data
to the user and let him/her interact with it. Can't tell much about
this in .NET as I'm more a Win32 guy.
Some people would argue that to program in a good OO-ish way you would
need an additional layer to completely separate GUI logic from business
logic.
If you could specify a little more what your issues are perhaps we
could be more specific.
--
Best regards :-)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam |
|
| Back to top |
|
 |
James D. Franchello Guest
|
Posted: Tue May 01, 2007 3:19 am Post subject: Re: MySQL D2005 |
|
|
Hello Guillem,
Sorry I didn't respond sooner - I have been away for a couple of days...
I have a very simple application that is based on a single table that has
very basic product information (product number, description, size, weight).
I need users to be able to look up a product by product number, add new
products, etc. I am having a hard time figuring out how to connect to the
MySQL database at all ... There is a MySQL ODBC driver available from their
site and I have used it to connect an MS Access database to the MySQL data.
But I can't seem to figure out how to get a D5 .Net application to talk to
it. Can you offer an insight into how to accomplish that?
Many thanks for your response,
James
"Guillem" <guillemvicens-nospam (AT) clubgreenoasis (DOT) com> wrote in message
news:4631ac74 (AT) newsgroups (DOT) borland.com...
| Quote: | James D. Franchello wrote:
Hello,
Can anyone point me in the right direction for pulling together the
things I would need to write a very small D2005 .Net app that uses
data in a MySQL 5.0 database? Any assistance, examples, etc would be
greatly appreciated!
mmmmmm...
- data provider (driver): MySQL has one in their webpage for .NET. This
allows the connection between the database and your app.
- data access components: you could use BDP or ADO.NET, for example.
These components are used to manage the data in your app.
- data-aware components: These will allow you to actually show the data
to the user and let him/her interact with it. Can't tell much about
this in .NET as I'm more a Win32 guy.
Some people would argue that to program in a good OO-ish way you would
need an additional layer to completely separate GUI logic from business
logic.
If you could specify a little more what your issues are perhaps we
could be more specific.
--
Best regards :-)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
|
|
|
| Back to top |
|
 |
Guillem Guest
|
Posted: Thu May 03, 2007 1:19 pm Post subject: Re: MySQL D2005 |
|
|
James D. Franchello wrote:
| Quote: | Hello Guillem,
Sorry I didn't respond sooner - I have been away for a couple of
days...
|
no problem, so have I :)
| Quote: |
I have a very simple application that is based on a single table that
has very basic product information (product number, description,
size, weight). I need users to be able to look up a product by
product number, add new products, etc.
|
ok
| Quote: | I am having a hard time
figuring out how to connect to the MySQL database at all ...
|
usually you install the correct provider/driver (.NET in your case) for
your database, drop a connection component onto your app, put the
correct connection string and that's it
Check this for the connection string
http://www.connectionstrings.com/
| Quote: | There is
a MySQL ODBC driver available from their site and I have used it to
connect an MS Access database to the MySQL data. But I can't seem to
figure out how to get a D5 .Net application to talk to it. Can you
offer an insight into how to accomplish that?
|
Do not use ODBC with a .NET app. There are 2 reasons for this:
- ODBC as data access layer is no longer developed by Microsoft. ADO
was designed to substitute it.
- ODBC is a Win32 (unmanaged) technology while .NET is a managed one.
It's not that simple to connect both.
Instead use a MySQL .NET provider. As I already told you, they have one
in their website.
http://www.mysql.com/products/connector/
Keep in mind the scheme of connection between your app and the database
will be like this:
MySQL db <----> MySQL .NET provider <---> Your .NET app
--
Best regards :-)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam |
|
| Back to top |
|
 |
James D. Franchello Guest
|
Posted: Thu May 03, 2007 11:12 pm Post subject: Re: MySQL D2005 |
|
|
Hello Guillem,
Thanks for your response! There are a couple of things I need to ponder and
look in to and I have a few questions that I want to formulate well before I
post them to you. I doubt that I will be able to do that before next Monday
so please keep an eye on this thread!
Many thanks for your suggestions and ideas! I'll be back....
James
"Guillem" <guillemvicens-nospam (AT) clubgreenoasis (DOT) com> wrote in message
news:463999d0$1 (AT) newsgroups (DOT) borland.com...
| Quote: | James D. Franchello wrote:
Hello Guillem,
Sorry I didn't respond sooner - I have been away for a couple of
days...
no problem, so have I :)
I have a very simple application that is based on a single table that
has very basic product information (product number, description,
size, weight). I need users to be able to look up a product by
product number, add new products, etc.
ok
I am having a hard time
figuring out how to connect to the MySQL database at all ...
usually you install the correct provider/driver (.NET in your case) for
your database, drop a connection component onto your app, put the
correct connection string and that's it
Check this for the connection string
http://www.connectionstrings.com/
There is
a MySQL ODBC driver available from their site and I have used it to
connect an MS Access database to the MySQL data. But I can't seem to
figure out how to get a D5 .Net application to talk to it. Can you
offer an insight into how to accomplish that?
Do not use ODBC with a .NET app. There are 2 reasons for this:
- ODBC as data access layer is no longer developed by Microsoft. ADO
was designed to substitute it.
- ODBC is a Win32 (unmanaged) technology while .NET is a managed one.
It's not that simple to connect both.
Instead use a MySQL .NET provider. As I already told you, they have one
in their website.
http://www.mysql.com/products/connector/
Keep in mind the scheme of connection between your app and the database
will be like this:
MySQL db <----> MySQL .NET provider <---> Your .NET app
--
Best regards :-)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|