Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Connecting</strong></p> <p>To connect to a SQL Server database instance from Emacs:</p> <pre><code>M-x sql-ms RET M-x sql-mode </code></pre> <p>You will be prompted for standard connection information specifically the following: </p> <ul> <li>User </li> <li>Password</li> <li>Server</li> <li>Database</li> </ul> <p>For SQL Server Authentication, type in the necessary user and password info. However, if connecting via Windows Authentication, then press RETURN for both user and password leaving them blank.</p> <p><strong>Viewing Output Results</strong></p> <p>Note that to see the text of any output results in the *SQL* buffer, the 'go' statement should be called at some point. A couple of ways of doing this.</p> <p>For example, this sql statement will execute but it will not show any result text in the *SQL* buffer in its current format:</p> <pre><code>select 'foo' as bar </code></pre> <p>However, if a 'go' is appended to the end:</p> <pre><code>select 'foo' as bar go </code></pre> <p>the following will be displayed in the *SQL* buffer:</p> <pre><code> bar ----- foo (1 row affected) </code></pre> <p>Alternatively, if you do not want to have 'go' statements littering the text of your SQL script then call 'go' on the fly to see all output results since the last time that the previous 'go' statement was sent to the sql process:</p> <pre><code>C-c C-s go RET </code></pre> <p>This is helpful if you need to view any error messages that might not initially show in the *SQL* buffer.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload