Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 PHP Extension Manual » Connection Functions » edb_freecachedprocs |
edb_freecachedprocs(<ConnectionHandle>, [<DatabaseName>]) <ConnectionHandle> = Handle of connection returned by edb_connect function <DatabaseName> = Name of open database that contains cached functions/procedures to free
TRUE if successful, or FALSE if there are any errors
<?php // The following script connects to an ElevateDB // Server and database, executes a series of queries, // and then calls the edb_freecachedstmts() and // edb_freecachedprocs() functions to free any cached // SQL statements and functions/procedures. This is for // example purposes only - you would not normally do // this because it defeats the the purpose of the // SQL statement and function/procedure caching. $con = edb_connect("type=remote;charset=Ansi;address=127.0.0.1;"+ "uid=Administrator;pwd=EDBDefault;database=Test;"+ "stmtcachesize=32;proccachesize=32"); if (!$con) { die("Could not connect: " . edb_errmsg()); } edb_execsql($con,"SELECT * FROM customer WHERE State='FL' AND "+ "TotalOrders(CustNo) > 10"); edb_execsql($con,"SELECT * FROM customer WHERE State='NY' AND "+ "TotalOrders(CustNo) > 10"); edb_execsql($con,"SELECT * FROM customer WHERE State='CA' AND "+ "TotalOrders(CustNo) > 10"); edb_freecachedstmts($con); edb_freecachedprocs($con); edb_disconnect($con); ?>
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |