Exemple #1
0
        /// <summary>
        /// Drop table from database without using recycling.
        /// </summary>
        /// <param name="tableName">Table name</param>
        /// <returns>Return true for success</returns>
        public bool DropTableInstantly(string tableName)
        {
            if (databaseId > 0)
            {
                lock (SyncRoot)
                {
                    VistaDBAPI.ivdb_SelectDb(databaseId);
                    VistaDBAPI.ivdb_DropTableInstantly(tableName);

                    return(true);
                }
            }
            else
            {
                return(false);
            }
        }