Re: URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C#

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Silvia Brunet Jones (SilviaBrunetJones_at_discussions.microsoft.com)
Date: 07/28/04


Date: Wed, 28 Jul 2004 13:48:02 -0700

yes the dsn is set up. I am not sure though how could I get away from it since that is the only way I am able to connect to the db

"Cowboy (Gregory A. Beamer) [MVP]" wrote:

> Did you set up the DSN on the server, as well.
>
> NOTE: If you can move away from DSNs, it is the wisest option, as they are
> perf pigs.
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> ************************************************
> Think Outside the Box!
> ************************************************
> "Silvia Brunet Jones" <SilviaBrunetJones@discussions.microsoft.com> wrote in
> message news:AA4539E5-2BF6-4B20-9C6F-B71E2371D6FD@microsoft.com...
> > ok this is the craziest thing every. I have a piece of code that connects
> to a dsn database. I have tested the connection two different ways
> >
> > ************************ONE
> > using ADODB;
> > ADODB.Connection dbSupra = new ADODB.ConnectionClass();
> > dbSupra.Open("DSN=112","urs","pss",0);
> > ************************TWO
> > using System.Data.OleDb;
> > OdbcConnection dbSupra = new OdbcConnection();
> > dbSupra.ConnectionString = "DSN=112;UID=urs;PWD=pss";
> > dbSupra.Open();
> >
> > run the web page from my development web server which is inside our
> network and works like a charm. PERFECT
> >
> > now I upload the exact same code to my production web server which is in
> between our network and a pix and =( doesnt work error
> > Exception Details: System.Runtime.InteropServices.COMException:
> Unspecified error WHY??????????!!!!!!!!!!
> >
> > now I did this crazy test I build an asp page using vbscript
> > <%@ language=VBSCRIPT%>
> > <%
> > set db=Server.CreateObject("adodb.Connection")
> > dbSupra.Open("DSN=112","urs","pss",0);
> >
> > this WORKS both in my dev web server and my production web server.
> >
> > So first i thought is was the firewall setting but then why does the
> vbscript code can connect to the server.
> >
> > PLEASE some enlightening would be appreciated
> >
> > Silvia Brunet Jones
> > Programmer Analyst, MCSD.NET\MCDBA
> >
>
>
>



Relevant Pages

  • Re: URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C#
    ... yes the dsn is set up what is another way arround connecting to it.? ... > to a dsn database. ... >> run the web page from my development web server which is inside our ... > vbscript code can connect to the server. ...
    (microsoft.public.dotnet.framework.adonet)
  • Web form w/ Access DB Security
    ... in the same folder to the web server and get it ... I tried setting up a DSN in the ODBC Data Source ... What configuration should I ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C#
    ... > run the web page from my development web server which is inside our ... between our network and a pix and =(doesnt work error ... vbscript code can connect to the server. ... > Silvia Brunet Jones ...
    (microsoft.public.dotnet.framework.adonet)
  • URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C#
    ... run the web page from my development web server which is inside our network and works like a charm. ... now I upload the exact same code to my production web server which is in between our network and a pix and =(doesnt work error ... this WORKS both in my dev web server and my production web server. ... So first i thought is was the firewall setting but then why does the vbscript code can connect to the server. ...
    (microsoft.public.dotnet.framework)
  • URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C#
    ... run the web page from my development web server which is inside our network and works like a charm. ... now I upload the exact same code to my production web server which is in between our network and a pix and =(doesnt work error ... this WORKS both in my dev web server and my production web server. ... So first i thought is was the firewall setting but then why does the vbscript code can connect to the server. ...
    (microsoft.public.dotnet.framework.adonet)