473,395 Members | 1,341 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,395 software developers and data experts.

ODBC DSN Connection

Using ODBC DSN connection in ASP.net does not work, but same code will
execute properly as a Windows application, is this the result of .NET Code
Access Security, since user DSNs are registry based?

What would be required to allow (ASP.net) Web Application to use ODBC DSN
connection?

Bravo security (what a concept),

Karl Mikesell MCSE
Nov 18 '05 #1
2 1759
Hi Karl,

First, I have to wonder why you would want to use an ODBC DSN, as ODBC is a
wrapper for OLE DB, and almost every major database product out there has
OLE DB drivers nowadays. Be that as it may...

You are correct that you are dealing with a permissions issue here, and that
it is related to the fact that System DSNs are stored in the registry. The
user accoount under which your ASP.Net app is running must have permission
to read that registry key in order to use a System DSN.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Karl A Mikesell" <mu*****@ieee.org> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl...
Using ODBC DSN connection in ASP.net does not work, but same code will
execute properly as a Windows application, is this the result of .NET Code Access Security, since user DSNs are registry based?

What would be required to allow (ASP.net) Web Application to use ODBC DSN
connection?

Bravo security (what a concept),

Karl Mikesell MCSE

Nov 18 '05 #2
Thank you for confirming so quickly. The DSN in question is not a database,
it is a proprietary device interface (yet another legacy device), just
trying to hook into it. This is were Web Services helps greatly.

Thank again.

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eC**************@tk2msftngp13.phx.gbl...
Hi Karl,

First, I have to wonder why you would want to use an ODBC DSN, as ODBC is a wrapper for OLE DB, and almost every major database product out there has
OLE DB drivers nowadays. Be that as it may...

You are correct that you are dealing with a permissions issue here, and that it is related to the fact that System DSNs are stored in the registry. The
user accoount under which your ASP.Net app is running must have permission
to read that registry key in order to use a System DSN.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Karl A Mikesell" <mu*****@ieee.org> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl...
Using ODBC DSN connection in ASP.net does not work, but same code will
execute properly as a Windows application, is this the result of .NET

Code
Access Security, since user DSNs are registry based?

What would be required to allow (ASP.net) Web Application to use ODBC DSN connection?

Bravo security (what a concept),

Karl Mikesell MCSE


Nov 18 '05 #3

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

Similar topics

0
by: Sean Anderson | last post by:
ODBC under System DSN Setup Access Driver give it the DSN (Data Source Name) MSA Click on Select and point to the myfile.mdb (your database file)
5
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
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...
14
by: jj | last post by:
Is it possible to call a remote php script from within Access? I'm thinking something like: DoCMD... http://www.domain.com/scripts/dataquery.php DoCmd.OpenQuery "update_data", acNormal, acEdit...
5
by: Alec | last post by:
Hi All, I am currently trying to link in Access 97 to a table in a MSSQL 7 server. Initially the link is fine, however, when I close the access database and re-open it from the same network...
1
by: Paul | last post by:
Hello, I am converting an Access database on our network to a sql 2000 backend and keeping access as the front end. The access database has evolved and been a solution to collect data but now...
4
by: Dave | last post by:
Hey guys, I have an ODBC problem that has me stumped. I wrote a VBA script to run in Microsoft Excel that pulls data out of an application using that application's ODBC driver and puts it into...
9
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
2
by: 111mike | last post by:
Hello, Here's my problem. I cannot connect to mysql database using odbc string connections or dns. I keep getting a "cannot connect to mysql server localhost." I'm running windows XP Pro and...
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
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...
0
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...

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.