$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
In reply to Re^2: Setting CommandTimeout
by amitvalia
in thread Setting CommandTimeout
by amitvalia
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |