Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mystery solved
Message
 
À
06/11/2021 10:36:19
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Dépannage
Titre:
Divers
Thread ID:
01682634
Message ID:
01682635
Vues:
60
Hi,
 =SQLSETPROP(0, "QueryTimeOut", 0) && for ODBC and all connections

  loCommand.CommandTimeout = 60 && for OLE DB
MartinaJ

>A high volume application that has been running carefree for over 15 years crashed recently with this command:
>
>DELETE FROM billing where inv_date = @invdate
>
>It ran under VFP for10 years and was converted to .NET several years ago but the command was exactly the same under both modes.
>
>The error was that the command was timing out.
>
>This table has been growing steadily over the past 15 years and contains several million rows.
>
>The SQL server timeout setting was set to no limit but research told me that .NET has its own limits and that the shorter one governs.
>This change in .NET solved the issue:
> this.oCommand.CommandTimeout = 60;
>
>Is there a similar setting for VFP?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform