473,387 Members | 1,705 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.

Is ODBC useless, or OK in some circumstances?

For an application displaying read only data targeting a small audience it
would seem to me that using ODBC DSNs to delegate user authentication would
be quicker to develop than recreating that same authentication and
authorization within the app using dotnet data providers, though of course
ODBC is outdated and would be a deployment headache and would limit
scalability. But in certain cases, could it be considered professionally
acceptable to use ODBC these days in the .NET world?
Aug 25 '05 #1
5 2389
Sometimes you have to use ODBC if there is no other choice. However,
if you can use a native data provider or at least oledb I personally
would consider ODBC not acceptable. Just a bit more code to handle
user authentication and you can avoid the obvious ODBC DSN headaches
and limitations.

Aug 25 '05 #2
On Thu, 25 Aug 2005 08:04:05 -0700, "lastusernameleft" <la**************@discussions.microsoft.com>
wrote:

¤ For an application displaying read only data targeting a small audience it
¤ would seem to me that using ODBC DSNs to delegate user authentication would
¤ be quicker to develop than recreating that same authentication and
¤ authorization within the app using dotnet data providers, though of course
¤ ODBC is outdated and would be a deployment headache and would limit
¤ scalability. But in certain cases, could it be considered professionally
¤ acceptable to use ODBC these days in the .NET world?
¤

I would agree with Steve's response. If you can use a more up-to-date data provider, such as OLEDB
or native .NET (assuming they're stable), I wouldn't use ODBC.
Paul
~~~~
Microsoft MVP (Visual Basic)
Aug 25 '05 #3
I am in total agreement, except for the amount of time and effort it would
take to create proprietary database authentication/authorization within the
application. Maybe I'm missing something, but how would Windows Integrated
Authentication access database specific roles on different servers?

I made a small .NET app integrating various data sources, Oracle, SQL, Lotus
Notes, plus Active Directory, Event Logs, etc, into a singleview interface,
my purpose being quick turnaround (it was ready in 3 weeks), for a limited
audience (LAN admins and technicians), never intended to be scalable, just a
simple automation of common tasks, using readily available solutions (ODBC,
behind the scenes batch files and vb scripts, etc)

Now its very popular and the company I work for (a large one) wants to
architect the whole thing from the ground up, with new features, etc, which I
of course agree with. But they are considering entirely scrapping this
initial clunky version until the final product is ready, months away. This
current version is fast and stable, and most importantly gets the job done,
so my argument is that it is ok to live with a mish mash of new and old for a
limited time, till the new is ready, though some seem to think its entirely
unacceptable. Thanks for the feedback.

"Paul Clement" wrote:
On Thu, 25 Aug 2005 08:04:05 -0700, "lastusernameleft" <la**************@discussions.microsoft.com>
wrote:

¤ For an application displaying read only data targeting a small audience it
¤ would seem to me that using ODBC DSNs to delegate user authentication would
¤ be quicker to develop than recreating that same authentication and
¤ authorization within the app using dotnet data providers, though of course
¤ ODBC is outdated and would be a deployment headache and would limit
¤ scalability. But in certain cases, could it be considered professionally
¤ acceptable to use ODBC these days in the .NET world?
¤

I would agree with Steve's response. If you can use a more up-to-date data provider, such as OLEDB
or native .NET (assuming they're stable), I wouldn't use ODBC.
Paul
~~~~
Microsoft MVP (Visual Basic)

Aug 26 '05 #4
Sounds like a really handy application. Companies pay big bucks for
monitoring software that essentailly does the same thing with event
alerts. I also don't see why they would scrap your app until they have
something to replace it with.

I'm not sure what user authentication/authorization ODBC is providing
you other then storing a user/pass in the DSN. My point is that it's
only a few lines of code to grab a user/pass from the registry or some
other location and then your .net data provider would give you the same
functinoality as your ODBC DSN.

Regarding database roles, best practices suggest if you need to give
users different levels of access you should build application roles
rather then using database roles for several reasons. For example,
performance and scalability greatly suffers when you log every user
into the database with a seperate user acount. However, implementing
application roles requires coding and can be tricky, but essential to
writting enterprise grade apps. Just my 2 cents.

Steve.

Aug 26 '05 #5
Thanks for the feedback.

Actually my app doesn't have event alerts, it just allows the browsing of
System Event Logs, Security Logs, and Application logs on remote machines,
displays the AD memberships of the user, user/machine info, installed
software, etc. and lets an admin interact with the machines, nothing they
can't already do, just convenient in one place. And unfortunately I don't
have the ability to change rights from database roles since I am linking in
to existing enterprise database solutions, CRM and asset tracking systems,
the final polished product may alter acess behavior, but not me on my own.

Perhaps I'm overestimating the degree of difficulty in implementing
authentication, but you mentioned getting values from the registry, which
doesn't seem secure to me, and as I don't have admin access to the servers I
am linking to (I made this thing entirely on my own) I can't get any user
rights info from there as well, so I'm still at a loss as to how I would
synch the app credentials with the servers.

I hope this makes sense, I'm new to Windows Integrated Authentication,
finding my way around.
thanks


"steve" wrote:
Sounds like a really handy application. Companies pay big bucks for
monitoring software that essentailly does the same thing with event
alerts. I also don't see why they would scrap your app until they have
something to replace it with.

I'm not sure what user authentication/authorization ODBC is providing
you other then storing a user/pass in the DSN. My point is that it's
only a few lines of code to grab a user/pass from the registry or some
other location and then your .net data provider would give you the same
functinoality as your ODBC DSN.

Regarding database roles, best practices suggest if you need to give
users different levels of access you should build application roles
rather then using database roles for several reasons. For example,
performance and scalability greatly suffers when you log every user
into the database with a seperate user acount. However, implementing
application roles requires coding and can be tricky, but essential to
writting enterprise grade apps. Just my 2 cents.

Steve.

Aug 26 '05 #6

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

Similar topics

13
by: Graham | last post by:
I need a SQL Server or ODBC package for Python. Can anyone help please? Have search the Python packages under Database and there is no reference to either SQL Server or ODBC. Thanks Graham
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
0
by: vginders | last post by:
Hello, We have a legacy application which relies on an Access 97 database (upgrading is nog an option atm). As we are setting up a new server (Windows 2003), we started experiencing problems...
26
by: Michi Henning | last post by:
I've been having problem with destructors in the context of having ported C# code developed under .NET to Mono. What happens is that, on a dual-CPU machine, various parts of the code crash randomly...
5
by: lastusernameleft | last post by:
For an application displaying read only data targeting a small audience it would seem to me that using ODBC DSNs to delegate user authentication would be quicker to develop than recreating that...
4
by: Szymon Dembek | last post by:
Hi Recently I did some DB2 and ODBC coding in Visual FoxPro. I bumped on a problem I cannot resolve. When I issue a delete statement that deletes no rows (no rows qualify for the WHERE...
6
by: jags_32 | last post by:
We have spent days trying to perform a proof of concept and I am dissappointed with SSIS to say the least. We are trying to connect and fetch data from a Double Byte Progress database and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.