Search code examples
asp.netvisual-studiooracle10gvwdexpress

Visual Web Developer 2010 Express - limitations on accessing remote databases?


I'm using Visual Web Developer 2010 Express on my laptop to run some ASP.Net which is trying to access an Oracle database on another machine.

I've having some difficulties executing ...

SqlConnection myConnectionTest = new SqlConnection(s);

... and before I went any further I thought I should check .... does VWD2010 impose some sort of limitations on accessing remote databases ?

[Not sure if this is relevant the connectionStrings entry to oracle is using a TNS-less connection string like this :

<add name="ABC" connectionString="providerName="OraOLEDB.Oracle";Data Source=//foo.bar.com:1521/dev10.foo.bar.com;User Id=auserid;Password=apwd;"/>

Solution

  • According to connectionstrings.com, a TSN-less connection string has the form:

    Provider=OraOLEDB.Oracle;Data Source=(DESCRIPTION=(CID=GTU_APP)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myHost)(PORT=myPort)))(CONNECT_DATA=(SID=MyOracleSID)(SERVER=DEDICATED)));User Id=myUsername;Password=myPassword;
    

    Is 'providerName' also accepted?