Re: DBD::ADO and CommandTimeout

From: PerlDiscuss - Perl Newsgroups and mailing lists (gEckenro_at_BellSouth.net)
Date: 09/26/04

  • Next message: Pierre Henon: "Réf. : RE: connect to oracle database as sysdba form windows"
    Date: 25 Sep 2004 23:00:41 -0000
    To: dbi-users@perl.org
    
    

    Hi David,
    I coded the connection stuff a little different. I too was having
    timeouts thrown back when the result sets were large. The same query
    would take almost three minutes in a query window. So I set the
    CommandTimeout to zero as described in the cpan doc. Looks like this for
    me:
            if($info->{user}) # this DSN requires username / pass | Oracle DSN work this
    way
                    {
                            $dbh = DBI->connect( "dbi:ADO:$info->{'dsn'}",$info->{'user'},
                            $info->{'pass'}, "CommandTimeout=0" ) or $x = 1;
                            print "\t--->Use of SQL Server Authentication.\n";
                    }
                    else # this DSN uses OS Authentication
                    {
                            # print "ado connection\n";
                            $dbh = DBI->connect( "dbi:ADO:$info->{'dsn'}","CommandTimeout=0" ) or
    $x = 1;
                            print "\t--->Use of NT Authentication Connection.\n";
                    }

    Anyhow, it looks like it is working !!!!

    George


  • Next message: Pierre Henon: "Réf. : RE: connect to oracle database as sysdba form windows"

    Relevant Pages

    • Re: ASP - FROM statement slows down connection to database
      ... Open your database in Access, switch to the Queries tab, create a new query ... in Design View without choosing a table, swtich to SQL View, paste the sql ... connection string rather than using an ... recordset open statements. ...
      (microsoft.public.inetserver.asp.db)
    • Re: Update checking
      ... My thought was to use a simple query with a "username" param ... concurrency exceptions happen if the data you queried has ... > was and basically let the user work in a similar offline mode. ... Where does connection pooling come ...
      (microsoft.public.dotnet.framework.adonet)
    • Re: MS Access looks for .mdb rather than Progress schema
      ... # Same query previously worked in Progress 8.x using SQL89. ... This entry allows you to keep your existing code written with the ODBC ... BTW, if you put all of the connect information into the connect string, ... I also tried putting the whole thing in the connection string: ...
      (microsoft.public.access.modulesdaovba)
    • Re: OpenDataSource & stored procedure
      ... recognises the ODBC escape syntax. ... You shouldn't need the connection parameter since Word gets it from the ... return multiple result sets - enough to confuse software such as MS Query ... >>> The call works in MSQuery but won't return the data to Word. ...
      (microsoft.public.word.mailmerge.fields)
    • Re: Is yahoo being hijacked?
      ... I get no server response when query ... > Connection: close ...
      (misc.invest.stocks)