99 lines
6.2 KiB
HTML
99 lines
6.2 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="copyright" content="(C) Copyright IBM Corporation 2005" />
|
|
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
|
|
<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="Query your database using the Run SQL Scripts interface" />
|
|
<meta name="abstract" content="The Run SQL Scripts window in iSeries Navigator allows you to create, edit, run, and troubleshoot scripts of SQL statements. When you have finished working with the scripts, you can save them to your PC." />
|
|
<meta name="description" content="The Run SQL Scripts window in iSeries Navigator allows you to create, edit, run, and troubleshoot scripts of SQL statements. When you have finished working with the scripts, you can save them to your PC." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcinavtasks.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcstopscript.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcjoblog.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcgensql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcsqlassist.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcdebug.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcsqlassist.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcjoblog.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcdebug.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcviewmultsql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafyintract.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzatcrunscript" />
|
|
<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>Query your database using the Run SQL Scripts interface</title>
|
|
</head>
|
|
<body id="rzatcrunscript"><a name="rzatcrunscript"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Query your database using the Run SQL Scripts interface</h1>
|
|
<div><p>The Run SQL Scripts window in <span class="keyword">iSeries™ Navigator</span> allows
|
|
you to create, edit, run, and troubleshoot scripts of SQL statements. When
|
|
you have finished working with the scripts, you can save them to your PC.</p>
|
|
<div class="section"><p>You can start the Run SQL Scripts interface by expanding the system
|
|
name, Databases, and right-clicking the database that you want to connect
|
|
to.</p>
|
|
<p>You can use the Examples list to build your scripts, manually create
|
|
your statement, retrieve the SQL for an existing object using the generate
|
|
SQL function, or build a script using SQL Assist. </p>
|
|
<p>You can check the
|
|
syntax of your SQL by clicking <span class="uicontrol">Check Syntax</span>. Additional
|
|
ways of debugging your programs and scripts include debugging
|
|
messages in the job log and starting the <span class="keyword">iSeries</span> System
|
|
debugger. When syntax checking is complete, you can save the script by selecting <strong>Save</strong> from
|
|
the <strong>File</strong> menu.</p>
|
|
<p>To run an SQL script, select one of the following
|
|
options from the <strong>Run</strong> menu:</p>
|
|
</div>
|
|
<ul><li><span><strong>All</strong> - Runs your SQL script from the beginning to the end.
|
|
If an error occurs and the <strong>Stop on Error</strong> option is turned on, the program
|
|
stops and the statement where the error occurred remains selected. </span></li>
|
|
<li><span><strong>From Selected</strong> - Starts your SQL script from the first statement
|
|
that is selected or from the current cursor position and continues to the
|
|
end of the script.</span></li>
|
|
<li><span><strong>Selected</strong> - Runs the statements that are selected.</span></li>
|
|
</ul>
|
|
<div class="section">The results are added to the end of the <strong>Messages</strong> tab. If the <strong>Smart
|
|
Statement Selection</strong> option on the <strong>Options</strong> menu is not checked,
|
|
the text that is selected is run as a single SQL statement.</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzatcstopscript.htm">Stop Run SQL Scripts</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcjoblog.htm">View the job log</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcgensql.htm">Generate SQL for objects</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcsqlassist.htm">Build SQL statements with SQL Assist</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcdebug.htm">Start the iSeries System Debugger</a></strong><br />
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzatcinavtasks.htm" title="This topic describes the database tasks you can perform using the iSeries Navigator interface.">iSeries Navigator database tasks</a></div>
|
|
</div>
|
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
|
<div><a href="rzatcsqlassist.htm">Build SQL statements with SQL Assist</a></div>
|
|
<div><a href="rzatcjoblog.htm">View the job log</a></div>
|
|
<div><a href="rzatcdebug.htm">Start the iSeries System Debugger</a></div>
|
|
<div><a href="rzatcviewmultsql.htm">Create a view combining data from multiple tables</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../sqlp/rbafyintract.htm">Using interactive SQL</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |