Microsoft KB Archive/67623

= INF: ISQL or OSQL Lines That Have Already Been Typed in Can Be Edited =

Article ID: 67623

Article Last Modified on 2/14/2005

-

APPLIES TO


 * Microsoft SQL Server 4.21a Standard Edition
 * Microsoft SQL Server 6.0 Standard Edition
 * Microsoft SQL Server 6.5 Standard Edition
 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q67623



You can edit ISQL or OSQL lines once you have typed them in by following the instructions below:  You must have a &quot;SET EDITOR= \ &quot; line in your OS/2 CONFIG.SYS or MS-DOS AUTOEXEC.BAT file. For example:

SET EDITOR=C:\BIN\M.EXE

 Type &quot;ed&quot; at any line number prompt.

This allows you to edit all of your ISQL or OSQL lines, back to the last GO. Lines prior to the last GO are, of course, inaccessible for editing.

You can also call your editor from the first line &quot;following&quot; a GO (&quot;1>&quot;) command and re-edit your previous query.

You can also use this technique to add any boilerplate lines you want to import.

Keywords: KB67623

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.