473,465 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Databases ... which way is the best?

Hi all.

This is a bit of a newbie type question.

I am trying to figure out what is the best way to connect to a database;
ado.net, odic others?

I've found a couple of examples that show you how to connect to the
"Northwind" database, using oledb??

Do these actually query the database files directly or do they use a
database engine like Access, MS SQL Server, or MySQLD?

I'm eventually trying to interface with the MySQL server (or at least a
MySQL database) as opposed to the MS SQL Server ...

I totally confused as to what is the best way and why.
--
Regards
Luke
------
Q: What does FAQ stand for?
A: We are Frequently Asked this Question, and we have no idea.
------
Nov 20 '05 #1
9 1752
Cor
Hi Luke,

This is more a question for the newsgroup

Microsoft.public.dotnet.framework.adonet

My opinion is that
If you have a native connector: use that (SQLconnection by instance)
A point for the choise of this connector is if it will always be a database
using this connector

If not and you can use OleDb than OleDb
(if you look at this links you will see there are it seems an endless part
of connectors, but when you have a special it sometimes is not)

http://www.connectionstrings.com/

http://www.able-consulting.com/ADO_Conn.htm

And than if you needs another approach ODBC

I hope this helps.

Cor
This is a bit of a newbie type question.

I am trying to figure out what is the best way to connect to a database;
ado.net, odic others?

I've found a couple of examples that show you how to connect to the
"Northwind" database, using oledb??

Do these actually query the database files directly or do they use a
database engine like Access, MS SQL Server, or MySQLD?

I'm eventually trying to interface with the MySQL server (or at least a
MySQL database) as opposed to the MS SQL Server ... I totally confused as to what is the best way and why.


Nov 20 '05 #2

"Cor" <no*@non.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
Hi Luke,

This is more a question for the newsgroup

Microsoft.public.dotnet.framework.adonet


Noted. I will lurk on that group for a while.

I spose I was more wondering which was better in terms of performance
etc.

as well as implementation.

Thanks for the links.

Luke.
Nov 20 '05 #3
Hey Luke,
"Luke Vogel" <Luke.Vogel@not_a_real_address> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi all.

This is a bit of a newbie type question.

I am trying to figure out what is the best way to connect to a database;
ado.net, odic others?

ADO.NET allows you to easily manipulate data from a variety of data
providers, the package just happens to include oledb,odbc,sql,and oracle
drivers
I've found a couple of examples that show you how to connect to the
"Northwind" database, using oledb??

Oledb is used quite often with Microsoft because not everyone has SQL
Server, and with 3 major data engines (Access, MSSQL, MSDE) they provide a
way for the same codebase to commuincate with different engines. Thats why
you see oledb a lot.
Do these actually query the database files directly or do they use a
database engine like Access, MS SQL Server, or MySQLD?

Well, with access I'm not sure, because I don't understand exactly how
access works from a query/driver level. (You read an mdb, but not sure
where the data engine comes from)

MSSQL and MySQL you query the database engine itself.
I'm eventually trying to interface with the MySQL server (or at least a
MySQL database) as opposed to the MS SQL Server ...

With mysql you'll end up using oledb/odbc because there is no direct support
from microsoft on mysql. But there are numerous drivers out there for MySQL
(there is one that does MySQL and PostGreSQL, pretty nice.)
I totally confused as to what is the best way and why.
I do'nt know if there is a "best way"


--
Regards
Luke
------
Q: What does FAQ stand for?
A: We are Frequently Asked this Question, and we have no idea.
------

Nov 20 '05 #4
"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Hey Luke,
"Luke Vogel" <Luke.Vogel@not_a_real_address> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi all.

This is a bit of a newbie type question.

I am trying to figure out what is the best way to connect to a database; ado.net, odic others?

ADO.NET allows you to easily manipulate data from a variety of data
providers, the package just happens to include oledb,odbc,sql,and

oracle drivers
Ok,I know what SQL and Oracle are .... what does oledb and odbc stand
for?

If I understand correctly, odbc is used as a kind of proxy
adapter/filter to interface between the app and the datasource. Does
that mean there would be a performance hit or reduced capability for
multiple users?

I've found a couple of examples that show you how to connect to the
"Northwind" database, using oledb??


Oledb is used quite often with Microsoft because not everyone has SQL
Server, and with 3 major data engines (Access, MSSQL, MSDE) they

provide a way for the same codebase to communicate with different engines. That's why you see oledb a lot.
I was just reading that oledb is used for just about any data source
whereas the sqlclient namespace classes are optimised for MS SQL Server
2000 databases.

Do these actually query the database files directly or do they use a
database engine like Access, MS SQL Server, or MySQLD?


Well, with access I'm not sure, because I don't understand exactly how
access works from a query/driver level. (You read an mdb, but not

sure where the data engine comes from)

MSSQL and MySQL you query the database engine itself.
Ok,so you must have the appropriate dbms installed for the app to work.
Someone told me you only need to copy the database file and the .net
framework would do the rest ... clearly wrong.

I'm eventually trying to interface with the MySQL server (or at least a MySQL database) as opposed to the MS SQL Server ...


With mysql you'll end up using oledb/odbc because there is no direct

support from Microsoft on mysql. But there are numerous drivers out there for MySQL (there is one that does MySQL and PostGreSQL, pretty nice.)


Yep, I found one on the MySQL site and there was another mature project
on sourceforge.net

I totally confused as to what is the best way and why.

I don't know if there is a "best way"


lol, I'm starting to think you're right.

Thanks for your response, it was helpful.

Luke.
Nov 20 '05 #5

"Luke Vogel" <Luke.Vogel@not_a_real_address> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Hey Luke,
"Luke Vogel" <Luke.Vogel@not_a_real_address> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi all.

This is a bit of a newbie type question.

I am trying to figure out what is the best way to connect to a database; ado.net, odic others?

ADO.NET allows you to easily manipulate data from a variety of data
providers, the package just happens to include oledb,odbc,sql,and

oracle
drivers


Ok,I know what SQL and Oracle are .... what does oledb and odbc stand
for?


OLEDB = Object Linking and Embedding Data Base connectivity... I'm pretty
sure thats right.

ODBC - Open DataBase Connectivity.

Both of em are micrisoft standards for interacting with Databases to a
common source. ODBC was the first one, and now OLEDB is quickly taking over
as a more stable/speedy infrastructure.

Personally, I only use SQL, thats because I hate access, and don't really
have a need for mySQL (No Stored Procedures, no thank you.) and last time I
used the PostGres drivers I wasn't impressed (this was over a year ago
though.. so a lot has changed, I just bought a copy of SQL Server and went
from there. i was content)

And i can't really afford oracle. Have done some Sybase work, but that was
in Java.
If I understand correctly, odbc is used as a kind of proxy
adapter/filter to interface between the app and the datasource. Does
that mean there would be a performance hit or reduced capability for
multiple users?

Yeah, its what it does. Its a set of rules basically that both DB Vendors
and product vendors have to follow so that everyone is "guarunteed" to work.

Second, Databases are always going to have a performance hit of some kind.
Especially with more than one user accessing it (unless you have multiple
processors, and even then, once you reach that threshold of user/processor
ratio (or hell, even user/task) your having a "perfomance hit", the question
is, what is the users toleration level. =)

Isn't CS fun? =)
I've found a couple of examples that show you how to connect to the
"Northwind" database, using oledb??

Oledb is used quite often with Microsoft because not everyone has SQL
Server, and with 3 major data engines (Access, MSSQL, MSDE) they

provide a
way for the same codebase to communicate with different engines.

That's why
you see oledb a lot.


I was just reading that oledb is used for just about any data source
whereas the sqlclient namespace classes are optimised for MS SQL Server
2000 databases.


Yep, and your correct.
Do these actually query the database files directly or do they use a
database engine like Access, MS SQL Server, or MySQLD?

Well, with access I'm not sure, because I don't understand exactly how
access works from a query/driver level. (You read an mdb, but not

sure
where the data engine comes from)

MSSQL and MySQL you query the database engine itself.


Ok,so you must have the appropriate dbms installed for the app to work.
Someone told me you only need to copy the database file and the .net
framework would do the rest ... clearly wrong.


In a pipe dream. MSSQL for example has some of the most advanced Data
mining routines ever conceived (no, they didn't make them, they bought them,
integerated them, paid other people, other people didn't like it after
awhile so they sued them.

Whoops, slipped into Rant mode.. my apologies.

So no, .NET framework doesn't take care of it, would kinda defeat the purpse
of selling SQL Server for $1400 and giving away the framework wouldn't it?
=)

Good luck to you, it's a good time. =)
I'm eventually trying to interface with the MySQL server (or at least a MySQL database) as opposed to the MS SQL Server ...


With mysql you'll end up using oledb/odbc because there is no direct

support
from Microsoft on mysql. But there are numerous drivers out there for

MySQL
(there is one that does MySQL and PostGreSQL, pretty nice.)


Yep, I found one on the MySQL site and there was another mature project
on sourceforge.net

I totally confused as to what is the best way and why.

I don't know if there is a "best way"


lol, I'm starting to think you're right.

Thanks for your response, it was helpful.

Luke.

Nov 20 '05 #6
"CJ Taylor" <no****@blowgoats.com> wrote
"MSSQL for example has some of the most advanced Data mining routines
ever conceived ..."
What algorithms are those?

-Will Dwinnell
http://will.dwinnell.com
Nov 20 '05 #7
I don't know... I just read about them and a law suit that happened like 6-8
months ago regarding it. I'm googling right now if I can find the case.

But here is what I remember of the article (I think it was CNET), some
company in California or Washington State had developed some really slick
data mining routines for SQL Server or something like it.

Like many microsoft products, Microsoft bought these routines and used them
in SQL 2k from what I understand but only licensed Microsoft itself, not
microsoft and its customers... So there was all these rumors/happenings
going on that this other company was going to sue all MS customers...

So in the mix, there was a few articles about the fact it was over Data
Mining routines.. And how advanced they were. hence my comments. =)

Here is an article that is sorta about it.. doesn't go into depth about the
issue though.. wlel, I've read 3 paragraphs.

http://www.control.com/1026168741/index_html


"Will Dwinnell" <pr******@bellatlantic.net> wrote in message
news:2b**************************@posting.google.c om...
"CJ Taylor" <no****@blowgoats.com> wrote
"MSSQL for example has some of the most advanced Data mining routines
ever conceived ..."
What algorithms are those?

-Will Dwinnell
http://will.dwinnell.com

Nov 20 '05 #8
"CJ Taylor" <no****@blowgoats.com> wrote:
"MSSQL for example has some of the most advanced Data mining routines
ever conceived ..."
Will Dwinnell asked:
"What algorithms are those?"
"CJ Taylor" <no****@blowgoats.com> responded:
"I don't know... I just read about them and a law suit that happened
like 6-8
months ago regarding it. ... Here is an article that is sorta about
it.. doesn't go into depth about the issue though.. wlel, I've read 3
paragraphs.

http://www.control.com/1026168741/index_html"

The article to which you refer only uses the term "data mining" once,
and then in a rather vague way ("Some of the descriptions sounded like
the type of data mining which I think is being used on historical data
in large scale SCADA systems..."). I am actually less interested in
the lawsuit than in how advanced the algorithms are. Do you have any
other references?

-Will Dwinnell
http://will.dwinnell.com
Nov 20 '05 #9
I'll try to find some, I just use that article for reference to "Generally"
describe what I was talking about. I am not saying I know anything about
the algorithms just what I've heard (my fisherman's story if you will.. .
"Data mining Algortihms THIS BIG! Jaws like a shark and fins like a
turtle..." =)

I am in no way claiming to be an expert of the SQL File structure, just
thinking with the amount of information that is stored in a SQL database
within a single file, there has to be some pretty advanced sh*t going on
there to make it that fast. Same with Oracle.

As stated before, I will try to find stuff on them, but no guaruntees...
"Will Dwinnell" <pr******@bellatlantic.net> wrote in message
news:2b**************************@posting.google.c om...
"CJ Taylor" <no****@blowgoats.com> wrote:
"MSSQL for example has some of the most advanced Data mining routines
ever conceived ..."
Will Dwinnell asked:
"What algorithms are those?"
"CJ Taylor" <no****@blowgoats.com> responded:
"I don't know... I just read about them and a law suit that happened
like 6-8
months ago regarding it. ... Here is an article that is sorta about
it.. doesn't go into depth about the issue though.. wlel, I've read 3
paragraphs.

http://www.control.com/1026168741/index_html"

The article to which you refer only uses the term "data mining" once,
and then in a rather vague way ("Some of the descriptions sounded like
the type of data mining which I think is being used on historical data
in large scale SCADA systems..."). I am actually less interested in
the lawsuit than in how advanced the algorithms are. Do you have any
other references?

-Will Dwinnell
http://will.dwinnell.com

Nov 20 '05 #10

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

Similar topics

10
by: andrea_gavana | last post by:
Hello NG, I am still quite a newbie with Python (I intensely use wxPython, anyway). I would like to know what are, in your opinions, the best/faster databases that I could use in Python (and, of...
1
by: puppet_sock | last post by:
I guess this is an architecture question. The question is: If I've got two (or more) Oracle databases, when does it make sense to integrate them into a single database, and when should they be...
0
by: Cara | last post by:
LAST CALL FOR VOTES (of 2) unmoderated group comp.databases.etl Newsgroups line: comp.databases.etl Extraction, transformation, loading issues. Votes must be received by 23:59:59 UTC, 12 Dec...
0
by: Cara Altman | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.databases.etl This is a formal Request For Discussion (RFD) for the creation of a world-wide unmoderated Usenet newsgroup...
3
by: Amit | last post by:
Hi when I try to run LIST ACTIVE DATABASES AT DBPARTITIONNUM <partnum> or LIST ACTIVE DATABASES GLOBAL, I always get an error message. Does anyone know why? I'm on v8 fp 5 output : db2 => list...
49
by: Mike MacSween | last post by:
I frequently hear that there isn't a commercially available dbms that fully implements the relational model. Why not? And which product comes closest. Mike MacSween
2
by: John Dann | last post by:
Apologies if this isn't the best group - maybe someone can suggest a more appropriate one - I can't immediately see anything on ado.net. I need to store a significant amount of data (say 1-10MB)...
10
by: Br | last post by:
We have a product that is being used by a client to outsource salary packaging. They therefore run several instances of our database, one for each of their clients. There is now a requirement to...
8
by: situ | last post by:
Hello all, i have Database1 and database2, is it possible to make database connection to database2 by running stored procedure on database1. Thanks and Regards Situ
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.