Hi
I have a web app that needs to be able to use either SQL Server or MS
Access - depending upon the installation. I want to avoid having
unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as
OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer
that returns recordsets.
Thanks
Mike 11 1578
Yes. (You can use OLEDB for both database types.)
Robin S.
------------------
<sa*********************@yahoo.comwrote in message
news:11*********************@f1g2000cwa.googlegrou ps.com...
Hi
I have a web app that needs to be able to use either SQL Server or MS
Access - depending upon the installation. I want to avoid having
unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as
OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer
that returns recordsets.
Thanks
Mike
OK, thanks for that.
RobinS wrote:
Yes. (You can use OLEDB for both database types.)
Robin S.
------------------
<sa*********************@yahoo.comwrote in message
news:11*********************@f1g2000cwa.googlegrou ps.com...
Hi
I have a web app that needs to be able to use either SQL Server or MS
Access - depending upon the installation. I want to avoid having
unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as
OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer
that returns recordsets.
Thanks
Mike
Dont listen to this guy, he just posts messages around these groups
trying to cause trouble and give people the wrong information.
You need to create a custom "Data Access Class" that obscures the type
of database that you are connecting to. OLEDB is way too slow (100
times slower than a native SQL Server connection).
To be honest with the limitations of the .net data tools (IE: no
generic dataReader etc) - you are probably better to keep life simple.
I don't mean to be blasphemous but just import ADO (COM) and use that -
at least it has MoveNext.
The Grand Master
"Visual Basic 6.0 Jihad" sa*********************@yahoo.com wrote:
Hi
I have a web app that needs to be able to use either SQL Server or MS
Access - depending upon the installation. I want to avoid having
unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as
OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer
that returns recordsets.
Thanks
Mike
We both know that's not true. You are the one who is flaming people,
as anyone can tell by your history. You could at least maintain
a modicum of class and not tell lies about other people.
Robin S.
-----------------
"Master Programmer" <ma***************@outgun.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Dont listen to this guy, he just posts messages around these groups
trying to cause trouble and give people the wrong information.
You need to create a custom "Data Access Class" that obscures the type
of database that you are connecting to. OLEDB is way too slow (100
times slower than a native SQL Server connection).
To be honest with the limitations of the .net data tools (IE: no
generic dataReader etc) - you are probably better to keep life simple.
I don't mean to be blasphemous but just import ADO (COM) and use that -
at least it has MoveNext.
The Grand Master
"Visual Basic 6.0 Jihad" sa*********************@yahoo.com wrote:
>Hi
I have a web app that needs to be able to use either SQL Server or MS Access - depending upon the installation. I want to avoid having unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer that returns recordsets.
Thanks Mike
the perforamnce of using OLEDB with SQL is pretty poor on all reports.
<sa*********************@yahoo.comwrote in message
news:11**********************@j72g2000cwa.googlegr oups.com...
OK, thanks for that.
RobinS wrote:
>Yes. (You can use OLEDB for both database types.)
Robin S. ------------------ <sa*********************@yahoo.comwrote in message news:11*********************@f1g2000cwa.googlegro ups.com...
Hi
I have a web app that needs to be able to use either SQL Server or MS
Access - depending upon the installation. I want to avoid having
unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as
OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer
that returns recordsets.
Thanks
Mike
To be honost I've never had any performance trouble using OleDb with
SQL server - it all depends on what you're doing and how often. The OP
should do some speed checks between the two (SQLClient and OleDb) and
see if the difference is enough to warrant using OleDb for Access, and
SQLClient for SQL Server or just using OleDb for both.
Also, if I'm not mistaking, isn't the OleDb class just a wrapper for
"classic" ADO? If so you wouldn't gain much (if anything) by using ADO
instead of ADO.Net
Thanks,
Seth Rowe
Rotsey wrote:
the perforamnce of using OLEDB with SQL is pretty poor on all reports.
<sa*********************@yahoo.comwrote in message
news:11**********************@j72g2000cwa.googlegr oups.com...
OK, thanks for that.
RobinS wrote:
Yes. (You can use OLEDB for both database types.)
Robin S.
------------------
<sa*********************@yahoo.comwrote in message
news:11*********************@f1g2000cwa.googlegrou ps.com...
Hi
I have a web app that needs to be able to use either SQL Server or MS
Access - depending upon the installation. I want to avoid having
unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as
OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer
that returns recordsets.
Thanks
Mike
We use a custom class we wrote in house that puts all our data access
in a wrapper. That way, the whole shop uses the same syntax for data
access regardless of the backend. We use it for access to Oracle, SQL
Server (2000 and 2005), DB2, and even MySql when we want a disconnected
database. The Enterprise Library Data Access is nice and we gave some
consideration to it before committing to "roll our own", but the
support for DB2 was lacking (unless you purchase additional product
from IBM) and there was no support for MySql. It's worth looking at
any way.
As for "Master Programmer"'s comments.... that's a bit like the pot
calling the kettle black. He's one of 2 that are constantly trying to
stir up trouble, disregard his comments. For a quick sampling of his
typical childish rants, look at some of these posts (there are plent
others): http://groups.google.com/group/micro...1a354a0360e19e http://groups.google.com/group/micro...33cc9c33358562 http://groups.google.com/group/micro...d479d77fe43e53 http://groups.google.com/group/micro...3a4a8dcaf35681
Robin;
can it; MP is always right
Just use ADO; that's my vote.
ADO.net is _CRAP_
-Aaron
RobinS wrote:
We both know that's not true. You are the one who is flaming people,
as anyone can tell by your history. You could at least maintain
a modicum of class and not tell lies about other people.
Robin S.
-----------------
"Master Programmer" <ma***************@outgun.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Dont listen to this guy, he just posts messages around these groups
trying to cause trouble and give people the wrong information.
You need to create a custom "Data Access Class" that obscures the type
of database that you are connecting to. OLEDB is way too slow (100
times slower than a native SQL Server connection).
To be honest with the limitations of the .net data tools (IE: no
generic dataReader etc) - you are probably better to keep life simple.
I don't mean to be blasphemous but just import ADO (COM) and use that -
at least it has MoveNext.
The Grand Master
"Visual Basic 6.0 Jihad" sa*********************@yahoo.com wrote:
Hi
I have a web app that needs to be able to use either SQL Server or MS
Access - depending upon the installation. I want to avoid having
unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as
OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer
that returns recordsets.
Thanks
Mike
MP is not always right. He has the right to post
whatever opinions he has about technical issues.
He does *not* have the right to tell lies about
me and to slur my character.
Robin S.
--------------------------
<aa*********@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Robin;
can it; MP is always right
Just use ADO; that's my vote.
ADO.net is _CRAP_
-Aaron
RobinS wrote:
>We both know that's not true. You are the one who is flaming people, as anyone can tell by your history. You could at least maintain a modicum of class and not tell lies about other people.
Robin S. ----------------- "Master Programmer" <ma***************@outgun.comwrote in message news:11**********************@79g2000cws.googlegr oups.com...
Dont listen to this guy, he just posts messages around these groups
trying to cause trouble and give people the wrong information.
You need to create a custom "Data Access Class" that obscures the type
of database that you are connecting to. OLEDB is way too slow (100
times slower than a native SQL Server connection).
To be honest with the limitations of the .net data tools (IE: no
generic dataReader etc) - you are probably better to keep life simple.
I don't mean to be blasphemous but just import ADO (COM) and use that -
at least it has MoveNext.
The Grand Master
"Visual Basic 6.0 Jihad" sa*********************@yahoo.com wrote: Hi
I have a web app that needs to be able to use either SQL Server or MS Access - depending upon the installation. I want to avoid having unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer that returns recordsets.
Thanks Mike
nor do you of him
-aaron
RobinS wrote:
MP is not always right. He has the right to post
whatever opinions he has about technical issues.
He does *not* have the right to tell lies about
me and to slur my character.
Robin S.
--------------------------
<aa*********@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Robin;
can it; MP is always right
Just use ADO; that's my vote.
ADO.net is _CRAP_
-Aaron
RobinS wrote:
We both know that's not true. You are the one who is flaming people,
as anyone can tell by your history. You could at least maintain
a modicum of class and not tell lies about other people.
Robin S.
-----------------
"Master Programmer" <ma***************@outgun.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Dont listen to this guy, he just posts messages around these groups
trying to cause trouble and give people the wrong information.
You need to create a custom "Data Access Class" that obscures the type
of database that you are connecting to. OLEDB is way too slow (100
times slower than a native SQL Server connection).
To be honest with the limitations of the .net data tools (IE: no
generic dataReader etc) - you are probably better to keep life simple.
I don't mean to be blasphemous but just import ADO (COM) and use that -
at least it has MoveNext.
The Grand Master
"Visual Basic 6.0 Jihad" sa*********************@yahoo.com wrote:
Hi
I have a web app that needs to be able to use either SQL Server or MS
Access - depending upon the installation. I want to avoid having
unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as
OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer
that returns recordsets.
Thanks
Mike
Granted. And I haven't. I have just stated that I
disagreed with him. At least, that's what I've tried
to do. Since I don't know him, or you, I can't say
anything about either of you except in regards to
your behavior in this newsgroup.
Robin S.
-----------------
<aa*********@gmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
nor do you of him
-aaron
RobinS wrote:
>MP is not always right. He has the right to post whatever opinions he has about technical issues. He does *not* have the right to tell lies about me and to slur my character.
Robin S. -------------------------- <aa*********@gmail.comwrote in message news:11**********************@80g2000cwy.googlegr oups.com...
Robin;
can it; MP is always right
Just use ADO; that's my vote.
ADO.net is _CRAP_
-Aaron
RobinS wrote: We both know that's not true. You are the one who is flaming people, as anyone can tell by your history. You could at least maintain a modicum of class and not tell lies about other people.
Robin S. ----------------- "Master Programmer" <ma***************@outgun.comwrote in message news:11**********************@79g2000cws.googlegr oups.com...
Dont listen to this guy, he just posts messages around these
groups
trying to cause trouble and give people the wrong information.
You need to create a custom "Data Access Class" that obscures
the type
of database that you are connecting to. OLEDB is way too slow
(100
times slower than a native SQL Server connection).
To be honest with the limitations of the .net data tools (IE: no
generic dataReader etc) - you are probably better to keep life
simple.
I don't mean to be blasphemous but just import ADO (COM) and use
that -
at least it has MoveNext.
The Grand Master
"Visual Basic 6.0 Jihad" sa*********************@yahoo.com wrote: Hi
I have a web app that needs to be able to use either SQL Server or MS Access - depending upon the installation. I want to avoid having unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as OLEDBDatareader in lots of parts of the app)
Could I not just avoid this and use OLEDB for both database types?
Whats the best way - OLEDB or to create some kind of data access layer that returns recordsets.
Thanks Mike
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Hamed |
last post by:
Hello
I have employed as a developer in a software company that its team uses
FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to
migrate to VS.NET. There is a project...
|
by: Johann Blake |
last post by:
I am looking for a good solution on how to implement data access in an
application so that there is a clean separation between the data access
layer, the business layer and the GUI layer. I am...
|
by: jqpdev |
last post by:
Hello all...
I'm coming from a Borland Delphi background. Delphi has a specific
component called a Data Module. In the designer the Data Module behaves
like a windows form. A developer can...
|
by: headware |
last post by:
I'm relatively new to ASP.NET and ADO.NET, but I have a basic design
question regarding the use of web services and APS.NET applications.
Right now we have an application that uses web services to...
|
by: asad |
last post by:
hello, how ru all
pls tell me how can i create DAL and how can i use it in my ASP.NET pages
thanks
|
by: Demetri |
last post by:
I have a question / concern regarding the new suggested way of creating a
data access layer in an n-tier application. Typically, a web application
specifically, using the SOA (Service Oriented...
|
by: pratham |
last post by:
Hi!
I'm making a database application and i heard from a friend that it is
more
proffecional and easy to do this with bussines objects. Can anyone tell
me
where i can find more info on bussines...
|
by: Martin Hughes |
last post by:
Hi guys,
I was wondering if anyone could give me some advice.
I am looking to develop an ASP.NET application that will enable several workstations to access real time telemetry data received...
|
by: =?Utf-8?B?UGV0ZXI=?= |
last post by:
I'm confused about Data Access Layer and Data Object Layer. How are they
related? Which layer will be affected when the underlying database structure
is changed? Which layer will be affect when...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
| |