Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've thrown the DLL in question at reflector and it's given me back the code at the bottom of this post, sadly there's nothing immediately obvious in the code that makes it easy to work out why it's stopped working for you (wouldn't it be nice if Microsoft shipped debug symbols with anything they produce that's written against the CLR?).</p> <p>There are a couple of places where the code makes me wonder if you might have a corrupted "recently used servers" list or something similar, perhaps you could try following the steps listed in <a href="https://stackoverflow.com/questions/1059105/how-to-remove-server-name-items-from-history-of-sql-server-management-studio">this question</a> to clear them out and see if that helps.</p> <pre><code>private void OpenConnectionDialogWithGlobalConnectionInfo() { if ((ServiceCache.GlobalConnectionInfo != null) &amp;&amp; (ServiceCache.GlobalConnectionInfo.Count != 0)) { try { using (ConnectionDialog dialog = new ShellConnectionDialog()) { IDbConnection connection; dialog.ImportRegisteredServersOnFirstLaunch = true; dialog.AddServer(new SqlServerType()); UIConnectionInfo connectInfo = ServiceCache.GlobalConnectionInfo[0].Copy(); if (dialog.TryToConnect(this.PopupOwner, ref connectInfo, out connection) == DialogResult.OK) { this.ScriptFactory.CreateNewBlankScript(ScriptType.Sql, connectInfo, connection); } } } catch (Exception exception) { ExceptionMessageBox box = new ExceptionMessageBox(new ApplicationException(SRError.FailedToCreateNewSqlScript, exception)); box.Caption = SRError.MessageBoxCaption; box.Show(this.PopupOwner); } } ServiceCache.GlobalConnectionInfo = null; } </code></pre>
    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