in reply to Re: Setting CommandTimeout
in thread Setting CommandTimeout
$RS = $Conn->Execute( $sql,CommandTimeout=120);
you get an error
Can't modify constant item in scalar assignment But the line $Conn->CommandTimeout ( 120 );
Worked when compiling. But still did not change the CommandTimeout value.
<%@ LANGUAGE = PerlScript%> <html> <body> <% $Conn = $Server->CreateObject("ADODB.Connection"); $Conn->Open( "Provider=SQLOLEDB;User ID=user;Password=pswd;Initial Cat +alog=db;Data Source=server" ); $Conn->CommandTimeout(120); %> Command Timeout is now =<% =$Conn->CommandTimeout%> <% $RS = $Conn->Execute( "SELECT 19000000+max(yymmdd) FROM tehachapi. +.bso688d" ); $yymmdd=$RS->Fields(0)->{Value}; $RS->Close; $Conn->Close; %>
This is what the is printed
Command Timeout is now =30
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Setting CommandTimeout
by amitvalia (Novice) on May 05, 2016 at 22:40 UTC | |
by NetWallah (Canon) on May 06, 2016 at 00:47 UTC |