ibm-information-center/dist/eclipse/plugins/i5OS.ic.ddp_5.4.0.1/rbal1dlt.htm

73 lines
4.9 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="task" />
<meta name="DC.Title" content="Delete an SQL package using the Delete SQL Package (DLTSQLPKG) command" />
<meta name="abstract" content="You can use the Delete Structured Query Language Package (DLTSQLPKG) command to delete one or more SQL packages. You must enter the (DLTSQLPKG) command on the iSeries server where the SQL package being deleted is located." />
<meta name="description" content="You can use the Delete Structured Query Language Package (DLTSQLPKG) command to delete one or more SQL packages. You must enter the (DLTSQLPKG) command on the iSeries server where the SQL package being deleted is located." />
<meta name="DC.subject" content="application program, deleting an SQL package, SQL package, deleting" />
<meta name="keywords" content="application program, deleting an SQL package, SQL package, deleting" />
<meta name="DC.Relation" scheme="URI" content="rbal1sqlpack.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/dltsqlpkg.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/sbmrmtcmd.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal1dlt" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Delete an SQL package using the Delete SQL Package (DLTSQLPKG) command</title>
</head>
<body id="rbal1dlt"><a name="rbal1dlt"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Delete an SQL package using the <span class="cmdname">Delete SQL Package (DLTSQLPKG)</span> command</h1>
<div><p>You can use the <span class="cmdname">Delete Structured Query Language Package
(DLTSQLPKG)</span> command to delete one or more SQL packages. You must
enter the (<span class="cmdname">DLTSQLPKG</span>) command on the <span class="keyword">iSeries™ server</span> where
the SQL package being deleted is located.</p>
<div class="section"> <p>You must have *OBJEXIST authority for the SQL package and at
least *EXECUTE authority for the collection where it is located.</p>
<p>There
are also several SQL methods to drop packages: </p>
<ul><li>If you have the <span class="keyword">DB2<sup>®</sup> UDB Query Manager and SQL Development Kit</span> licensed
program installed, use Interactive SQL to connect to the application server
(AS) and then drop the package using the SQL DROP PACKAGE statement.</li>
<li>Run an SQL program that connects and then drops the package.</li>
<li>Use Query Management to connect and drop the package.</li>
</ul>
<p>The following command deletes the SQL package PARTS1 in the SPIFFY
collection: </p>
<pre>DLTSQLPKG SQLPKG(SPIFFY/PARTS1)</pre>
<p>To
delete an SQL package on a remote <span class="keyword">iSeries server</span>,
use the <span class="cmdname">Submit Remote Command (SBMRMTCMD)</span> command to run
the <span class="cmdname">Delete Structured Query Language Package (DLTSQLPKG)</span> command
on the remote server. You can also use display station pass-through to sign
on the remote server to delete the SQL package. If the remote server is not
an <span class="keyword">iSeries server</span>, pass through to
that server using a remote workstation program and then submit the Delete
SQL Package command local to that server.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1sqlpack.htm" title="After an SQL package is created, you can manage it the same way you manage other objects on the iSeries server, with some restrictions.">Manage an SQL package</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/dltsqlpkg.htm">Delete Structured Query Language Package (DLTSQLPKG) command</a></div>
<div><a href="../cl/sbmrmtcmd.htm">Submit Remote Command (SBMRMTCMD) command</a></div>
</div>
</div>
</body>
</html>