Solved

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

Posted on 2009-07-14
3
2,397 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 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