i can not use TNS file or oracle databse in my client pc. how can i do this ??
Please help .
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 19, 2013, 11:06 PM EDT
http://docs.oracle.com/cd/B28359_01/appdev.111/b28844/using_aspnt.htm#autoId0
download it:
http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index.html
mark it as answered if its help you.
Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 19, 2013, 11:30 PM EDT
Using TNS
Data Source=TORCL;User Id=myUsername;Password=myPassword;
Using integrated security
Data Source=TORCL;Integrated Security=SSPI;
Using ODP.NET without tnsnames.ora
Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MyOracleSID)));User Id=myUsername;
Password=myPassword;
shakila jannat16 reputationPosted Jun 19, 2013, 11:36 PM EDT
Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MyOracleSID)));User Id=myUsername; Password=myPassword;
this code in my app.config file it gives me
error:Object reference not set to an instance of an object what should i do???
:(
Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 20, 2013, 12:43 AM EDT
if yes then write the result,,is it working or not when you put it direct in your pgmm,
write the code that you are using ..