By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,402 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,402 IT Pros & Developers. It's quick & easy.

problem in connection string of oracle

P: n/a
Hi, I'm trying to connect to my Oracle 10g Database

i m facing the problem of connection string, following code is that i use,
please tell me how to use the connection string for accessing the oracle
database from a remote location and from local machine, at both places i m
getting the problem. tell me how to set the server name, data sourse of a
remote server to acces tha data from a client on a diffrent machine.
I used this code:

protected Oracle.DataAccess.Client.OracleConnection con;

protected Oracle.DataAccess.Client.OracleCommand orcmd;

protected Oracle.DataAccess.Client.OracleDataReader orcreader;
private void Page_Load(object sender, System.EventArgs e)



con.ConnectionString="Server=Sct-hasan;User Id=sys;Password=sa;Data
orcmd= new Oracle.DataAccess.Client.OracleCommand(cmdQuery);


orcmd.Connection= con;


orcreader= orcmd.ExecuteReader();




thanx .bye

Mar 15 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
You have some of that string reversed.
Mar 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.