Difference between revisions of "DROP PROCEDURE"
Yvonne.milne (Talk | contribs) m (1 revision: SQL) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Removes a stored procedure from a database | Removes a stored procedure from a database | ||
− | |||
==Syntax== | ==Syntax== | ||
DROP PROCEDURE [<database>!]<procname> | DROP PROCEDURE [<database>!]<procname> | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ADATABASES()]], [[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE]], [[BACKUP DATABASE]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[CREATE DATABASE]], [[CREATE PROCEDURE]], [[CREATE TABLE]], [[CREATE INDEX]], [[CREATE VIEW]], [[DATABASE() | + | [[ADATABASES()]], [[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE]], [[BACKUP DATABASE]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[CREATE DATABASE]], [[CREATE PROCEDURE]], [[CREATE TABLE]], [[CREATE INDEX]], [[CREATE VIEW]], [[DATABASE()]], [[DBUSED()]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DISPLAY TABLES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST TABLES]], [[OPEN DATABASE]], [[PACK DATABASE]], [[REBUILD DATABASE]], [[REINDEX DATABASE]], [[RESTORE DATABASE]], [[SET AUTOCATALOG]], [[SET DATADIR]], [[SET EXCLUSIVE]], [[SET SQL]], [[SQL USE|USE]] |
− | + | ||
==Description== | ==Description== | ||
The DROP PROCEDURE command removes a stored procedure from a database and physically deletes the file. If the database name, <database>!, is specified, the stored procedure will be removed from that database, otherwise the stored procedure will be removed from the currently open database. If no database is open and no <database>! is specified, an error occurs. The <procname> can include the '.prg' file extension, but if this is not specified it will be assumed. | The DROP PROCEDURE command removes a stored procedure from a database and physically deletes the file. If the database name, <database>!, is specified, the stored procedure will be removed from that database, otherwise the stored procedure will be removed from the currently open database. If no database is open and no <database>! is specified, an error occurs. The <procname> can include the '.prg' file extension, but if this is not specified it will be assumed. | ||
− | |||
− | |||
− | |||
==Example== | ==Example== | ||
Line 23: | Line 17: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:SQL]] | [[Category:SQL]] | ||
[[Category:Commands]] | [[Category:Commands]] |
Revision as of 12:28, 10 February 2012
Contents
Purpose
Removes a stored procedure from a database
Syntax
DROP PROCEDURE [<database>!]<procname>
See Also
ADATABASES(), ADD TABLE, ALTER INDEX, ALTER TABLE, BACKUP DATABASE, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, CREATE DATABASE, CREATE PROCEDURE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DATABASE(), DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST TABLES, OPEN DATABASE, PACK DATABASE, REBUILD DATABASE, REINDEX DATABASE, RESTORE DATABASE, SET AUTOCATALOG, SET DATADIR, SET EXCLUSIVE, SET SQL, USE
Description
The DROP PROCEDURE command removes a stored procedure from a database and physically deletes the file. If the database name, <database>!, is specified, the stored procedure will be removed from that database, otherwise the stored procedure will be removed from the currently open database. If no database is open and no <database>! is specified, an error occurs. The <procname> can include the '.prg' file extension, but if this is not specified it will be assumed.
Example
OPEN DATABASE southwind DROP PROCEDURE creaxml