Solved

How to resolve error "Keyword not supported: 'dsn'" when connecting to oracle db

Posted on 2009-07-14
3
2,208 Views
Last Modified: 2012-05-07
I am trying to connect to an oracle database (9i) through ASP.NET C# (2.0)
My DSN is as follows, DSN=DB_CONNECT;uid=mrtest;pwd=password87;Connect Timeout=120

Whenever i run the program and it gets to the line below,
SqlConnection conn = new SqlConnection(connstr);

i get an error message of "Keyword not supported: 'dsn'"
Can somebody tell me how to resolve this?
0
Comment
Question by:dayiku
3 Comments
 
LVL 16

Accepted Solution

by:
The_Kirschi earned 65 total points
ID: 24848476
0
 
LVL 12

Assisted Solution

by:Nirmalan Nagenthiran
Nirmalan Nagenthiran earned 60 total points
ID: 24848510
0
 

Author Comment

by:dayiku
ID: 24849642
Thanks, that helped me a lot.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now