How can we help you today? How can we help you today?

SQL Prompt 6.4 beta (Now closed)

The stable release announcement can be found here.

Beta closed - thanks to everyone who took part!

The SQL Prompt beta includes:
  • Insert semicolons (UserVoice)
  • Execute current statement (UserVoice)
  • BEGIN...END block highlighting (UserVoice)
  • Rename variables (UserVoice) and aliases (UserVoice)
  • Improved support for aliases in UPDATE (UserVoice)
  • Improved loading dialog box
  • Startup performance improvement
  • Single suggestion pop-up improvement
  • Qualify object names improvements
  • Suggestions for additional object types
  • Format SQL now matches object case (UserVoice)

Version history
6.4.0.622 - 12th September
  • Fix for quotes being stripped after a format SQL (Forum post)
  • Fix for incorrect INSERT column highlighting with subqueries in values list
6.4.0.618 - 10th September
  • More improvements to expand wildcards indentation
  • Support for connecting to Azure restricted accounts
  • The error dialog is suppressed for when login fails due to username/password
  • Fix for SP-4277 ("textViewMonitor already attached to a TextLinesMonitor")
  • A message box is now displayed if the user doesn't have permission to re-use the password from the query's connection in Prompt
6.4.0.609 - 8th September
  • Improved handling of dot completion key with suggestions containing dots (Uservoice)
  • Improved indentation when expanding wildcards
  • Fix for qualify object names with semi-ambiguous columns (Forum post)
6.4.0.602 - 8th September
  • Fix for connection details not being auto-populated in VS2010 (Forum post)
  • Fix for semicolon being inserted in the wrong position (Forum post)
  • Fix for temp table columns not being suggested (Forum post)
  • More object types are now suggested from create statements in script
6.4.0.583 - 3rd September
  • Limit added for maximum script size that Prompt will cache suggestions for (the default is 5MB)
  • Datatypes are suggested if running in a disconnected query
  • Fix for suggestions box sometimes displaying a red X
6.4.0.574 - 2nd September
  • Suggestions improved for longer scripts (UserVoice, UserVoice and UserVoice)
  • Nullability of columns now shown in tooltips, suggestions and object definition box (UserVoice and UserVoice)
  • Improved support for table-valued variables and parameters (UserVoice)
  • Now suggests stored procedures from script before they've been created in the database (UserVoice)
  • Fix for occasional wrong qualification if two tables in different schemas share the same name and column names
  • Fix for missing suggestions in CTE if an alias name clashes with CTE name
6.4.0.537 - 26th August
  • Highlighting columns and data in INSERT statements (UserVoice)
  • Improvements to snippet suggestions after aliases (UserVoice)
  • Partial matching enabled for snippets (UserVoice)
  • Added Remove Square Brackets feature to remove unnecessary square brackets from a script
  • Fix for find invalid objects with table valued function (Forum post)
  • Fix for expanding wildcards with inserted/deleted tables in OUTPUT statement (Forum post)
  • Fix for tab not always expanding wildcards (Forum post)
  • Fix for object tooltips on hover not displaying in Visual Studio
6.4.0.506 - 18th August
  • Added option for "Indent BEGIN...END blocks" (Forum post and UserVoice)
  • Grouped similar commands together in SQL Prompt menu
  • Both keywords are now highlighted for BEGIN TRY...END TRY matching
  • Query hint option IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX is now suggested
6.4.0.500 - 15th August
  • Fix for snippet being expanded with tab while suggestions list is displayed (Forum post)
  • Fix for qualify object names with table valued variables (Forum post)
  • Suggestions added for FEDERATION related keywords on Azure
  • Synonym population won't request base types unless "Load referenced databases" is on (which could have been causing slow loading or timeouts)
6.4.0.478 - 13th August
  • Tweaked the text highlighting for modified text
6.4.0.476 - 13th August
  • Identifiers will now be recased to match the case used in the database with Apply Casing Options and Format SQL (UserVoice)
  • Text modified due to casing options is now highlighted
  • Added option to limit number of tabs that will be reopened on startup (the default is 20) (UserVoice)
  • No longer try to avoid alias name clashes with stored procedure names (UserVoice)
  • Fix for Insert Semicolons causing a duplicate semicolon in DECLARE CURSOR and SET CURSOR statements
  • Fix for occasional duplicate columns in wildcard expansion
6.4.0.457 - 8th August
  • Fix for duplicate columns sometimes being suggested
  • Fix for selection changing after a format SQL
6.4.0.449 - 7th August
  • Methods now suggested for geometry and geography clr types (UserVoice)
  • Native intellisense is now re-enabled when Prompt suggestions are disabled (UserVoice)
  • Tables and views suggested if CREATE statement in script
  • ON <owner_name> now auto completed for DISABLE/ENABLE TRIGGER and ALTER/DROP INDEX
  • Removed invalid keyword suggestions after a WAITFOR
  • Faster SSMS command initialization during startup
  • Fix for parameter suggestions missing after an EXEC statement (Forum post)
6.4.0.404 - 1st August
  • Fix for bug introduced in 6.4.0.402's installer where Prompt might not install correctly to SSMS or Visual Studio.
    If you're missing Prompt from the previous build then installing the latest build should bring it back. Sorry for the inconvenience!
6.4.0.402 - 1st August
  • Installer options to install to SSMS and/or Visual Studio (UserVoice)
  • Fix for Qualify Object Names adding in an alias qualification to an UPDATE statement incorrectly
  • Static method suggestions added to hierarchyid
6.4.0.397 - 31st July
  • Triggers in ALTER TABLE suggestions are now filtered by the table (UserVoice)
  • Columns in CREATE TABLE statement are suggested for PRIMARY and FOREIGN keys
  • CLR methods suggested for hierarchyid
  • Fix for contained database users with windows authentication
  • Fix for formatting error with "GO 10"
  • Potential fix for double dot syntax (Forum post)
  • Minor performance (~20%) and memory (~10%) improvements for database suggestions
  • Suggestions for additional object types
    • Sequences (UserVoice)
    • Check constraints
    • Queues (Uservoice)
    • Services
    • Contracts
    • Message types
    • Routes
    • Xml schema collections
6.4.0.300 - 18th July
  • Comments are now preserved when completing ALTERs (UserVoice and Forum post)
  • Support for connecting as a user on contained database (Used to display "Login failed for user...")
  • Execute to cursor added as Ctrl+Shift+F5 (Forum post)
6.4.0.292 - 17th July
  • Fix for execute current statement not selecting the correct text (Forum post)
  • Execute current statement now works when connected to an Azure server
  • $USER$ snippet placeholder will now resolve to the connected user rather than the windows user
  • Caret stays in the same location after a Format SQL if positioned at start of line (Forum post)
6.4.0.286 - 16th July
  • Scroll position is now maintained after applying Format SQL (Forum post)
  • Fix for ON being misaligned if table hints are used in a join clause (UserVoice)
6.4.0.284 - 16th July
  • No longer freezes when disabling/enabling suggestions during a database load
6.4.0.282 - 15th July
  • Generated aliases are now enclosed in square brackets if option set (UserVoice)
  • If enclose square brackets is off Prompt will avoid generating aliases that match keywords
  • Qualify object names and apply casing options are now only applied to the selected text (rather than entire line)
6.4.0.279 - 14th July
  • Added an option to limit the maximum script size that tab history will save (defaults to 1MB)
  • Fixes for qualify object names with columns (Forum post)
6.4.0.266 - 10th July
  • Added Alt+Shift+F5 to execute current batch (this is in addition to Shift+F5 to execute current statement)
  • Columns and datatypes in object definition box are now sortable (Forum post)
  • Fix for too many suggestions (Forum post)
6.4.0.256 - 7th July
  • Snippet manager now keeps edited and created snippets in view after refreshing list
  • Database loading dialog now has a tooltip on hover to show database names when multiple databases are loading
6.4.0.255 - 3rd July
  • Reduced locking on UI thread during database loading (hopefully fixing the forum post below)
6.4.0.249 - 3rd July
  • Generated comments are placed on the same line as data in INSERT statements if "Place commas at start" has been set (UserVoice and UserVoice)
6.4.0.245 - 2nd July
  • Minor fix for default schema syntax on system databases having too many suggestions
  • Character limit removed from create snippet text box
  • Qualify object names improvements:
    • New option for qualifying with aliases (UserVoice)
    • Changes are now highlighted
    • No longer displays errors if temporary tables are created in the script
    • Now uses the existing suggestion cache rather than recaching some objects
    • Will replace table qualification with its alias if table has been aliased
6.4.0.206 - 23rd June
  • INSERT and SELECT formatting tweak is now optional (Forum post)
  • Column suggestions are now displayed for a table alias rather than a table of the same name (Forum post)
6.4.0.204 - 20th June
  • Parameter info tooltip is now only displayed after typing (or with the shortcut ctrl+shift+space) and can be hidden with escape
  • Fix for columns suggestions not filtered by alias (Forum post)
  • Table keyword now cased as a datatype in declare statements and table valued functions (Forum post)
6.4.0.184 - 9th June
  • Fix for some assemblies not being digitally signed correctly (causing false positives with anti-virus software)
6.4.0.177 - 9th June
  • Rename alias improvements
  • Now hides green highlights after inserting semicolons if suggestions are disabled
  • Support for suggestions using default schema syntax (eg "master..sp_help")
  • System objects shown if fully qualified to system database
  • SSMS built in intellisense disabled on startup if prompt is enabled (Forum post)
  • INSERT and SELECT formatting tweak (Forum post)
6.4.0.167 - 4th June
  • No longer throws exception with connection coloring in certain circumstances
6.4.0.165 - 4th June
  • Initial release

Feedback
If you have any problems with this release, please post them on this forum.

If you have any suggestions for improvements, please post them on our suggestions forum so other users can vote for them.
Aaron L
0

Comments

78 comments

  • theit8514
    Aaron Law wrote:
    Hi theit8514,

    Thanks for letting us know about this.
    Unfortunately we're not able to recreate this locally at the moment so to help us in recreating it I wanted to check which version of windows you're running and also which .Net frameworks are installed on your VM?
    Also, can you think of anything else that we might need to do to trigger it here? Maybe connecting to a specific server or running multiple instances of SSMS?

    Thanks,
    Aaron.

    I am using Windows 8 and NET 4.5.1, running SSMS 2012. As for the triggers, I'm not really sure. I went back and reviewed the Event Log for application crashes and noted the 3 times that the application crashed, and then reviewed the SQL Prompt log files for those time periods and that warning message appeared each time. Other than that, it only happens after I have SSMS open for a long time, then close it. I have installed the latest version and am encountering a lot of other issues since doing so (I've submitted one through the bug reporter about an INNER JOIN crash), but have not yet experienced that issue again.
    theit8514
    0
  • Aaron L
    Thanks for the extra info theit8514!

    I just saw your error report and it looks like it was the same thing bug that was causing the suggestion box to display a red X in the previous build, hopefully we have this fixed in 6.4.0.583.
    I'm sorry to hear you've hit other issues too, could you provide any more details on what you've hit?

    Thanks,
    Aaron.
    Aaron L
    0
  • Aaron L
    Hi ephraim,

    We can now recreate the semicolon in the wrong place (it looks like it only happens for certain server versions) and should get a fix out later today.
    We're investigating suggestions in VS at the moment. It's worked for us in a few of the environments we've tried so I have a feeling its version specific too, which version of VS are you using?

    Thanks,
    Aaron.
    Aaron L
    0
  • ephraim
    I'm using Visual Studio 2010 Premium... Connecting to SQL 2008 database (Also doesn't work connecting to SQL 2012 database)
    ephraim
    0
  • theit8514
    Aaron Law wrote:
    Thanks for the extra info theit8514!

    I just saw your error report and it looks like it was the same thing bug that was causing the suggestion box to display a red X in the previous build, hopefully we have this fixed in 6.4.0.583.
    I'm sorry to hear you've hit other issues too, could you provide any more details on what you've hit?

    Thanks,
    Aaron.

    I have a long script which Prompt will not present any suggestions for Temporary tables after a certain point in the file. The script is an ALTER PROCEDURE script. I have my ParserLookBackDistance set to 30000, but it doesn't seem to be working. It recognizes that the temporary table exists, but when I try to access suggestions for the alias, nothing shows up. In addition, when I hover over the alias definition name, it shows "Unresolved alias (table)", whereas if I look at an actual table alias it shows "c (table)". Let me know if I need to submit the code for analysis.
    theit8514
    0
  • Aaron L
    ephraim, I think we might have been able to recreate it here and we're investigating a fix now, thanks for your help.

    theit8514, if you could forward the script to aaron.law@red-gate.com that'd be awesome! I think there must be a bit of syntax in there that Prompt doesn't understand and it might have reset it's parse (losing the temp table) to recover.
    Aaron L
    0
  • Aaron L
    Hi ephraim,
    I've got a private build for you which hopefully fixes both the suggestions in VS2010 and the semicolon on the exec statement. Let me know if this fixes it for you and we'll roll the changes into our next beta.

    Thanks,
    Aaron.

    Edit: Just found another case where VS2010 won't work, i'm looking into a fix now.
    Edit2: I've updated the private build link to include another fix for VS2010. Hopefully everything should be working now!
    Aaron L
    0
  • theit8514
    Thanks Aaron, got your email reply.

    There is one other thing I was hoping you could look into. If you have the option set to trigger Insertions on the Dot key, the first linked server is expanded when trying to type an IP address.

    IE: Two linked server, 10.1.1.100 and 10.1.2.200.

    If I type "[10." the first server gets expanded automatically. In order for me to type most link server IP addresses I now have to press ESC before a dot.
    theit8514
    0
  • KevinGreiner
    I'm having some trouble with SQL Format fixing the case of column names.

    Our c# app uses DataSets which require data coming from SQL Server to match the DataSet column names case-sensitive.

    I want to reformat but I want an option to not change column names to match the SQL column name. It appears there would be room on the Format -> Styles -> Case tab.
    KevinGreiner
    0
  • Aaron L
    Hi theit8514,
    I think I saw your request on UserVoice for this but could you explain the logic a bit more on when you'd expect us to ignore the dot as a completion key setting? Would it be only if the selected suggestion has a dot in it?

    Hi Kevin,
    I'll put in a checkbox for it in our next beta release (it's currently in the layout options as <UseObjectDefinitionCase>). We were originally having difficulties coming up with scenarios where you wouldn't want the columns to match the database casing, so now we'll have a reason behind the checkbox.

    Thanks for all the feedback!
    Aaron.
    Aaron L
    0
  • ephraim
    problems fixed. thanks Aaron
    ephraim
    0
  • theit8514
    Aaron Law wrote:
    Hi theit8514,
    I think I saw your request on UserVoice for this but could you explain the logic a bit more on when you'd expect us to ignore the dot as a completion key setting? Would it be only if the selected suggestion has a dot in it?

    I think that if the next character in the top suggestion is an insertion character (ie a dot in this case, but I can see a comma in the case of using a port number in a linked server), then that suggestion won't insert automatically. That would handle the case where you type 10./192./etc, but still handle wanting to autocomplete with a dot for a URL that is partially typed.
    theit8514
    0
  • Aaron L
    That makes sense - I'll see if I can get a version today and see how it feels to use in practice. Hopefully I can get it in today since we want to move onto just bug fixes for the rest of the week. I'll let you know how I get on :)
    Aaron L
    0
  • ephraim
    This fails qualify object names..

    select *
    from table1 as r
    where skey in (select top 1 skey from dbo.table2)
    ephraim
    0
  • Aaron L
    Hi ephraim,
    Thanks for pointing this out. It looks like it's complaining it could be ambiguous as for the subquery you can have either "table2.skey" or "r.skey" and the query would work. Obviously in this case you meant to use the table2 one so the latest beta (6.4.0.609) should qualify with it.

    Hi theit8514,
    The latest build should ignore the completion key if the next character in the current suggestion matches it. Let us know if this works for you!

    Thanks,
    Aaron.
    Aaron L
    0
  • ephraim
    Aaron, I've corrected my sql to make it clearer
    select *
    from dbo.table1 as t1
    where skey in (select top 1 t2.skey from dbo.table2 as t2 )

    The qualify object names command is balking at the unqualified outer query.
    In this case, the skey has to be from t1, right? So, my question is why does it balk?
    Ephraim
    ephraim
    0
  • Aaron L
    Hi Ephraim,
    I think this should be fixed in the latest build - are you still seeing the error with 6.4.0.609?
    Aaron L
    0
  • ephraim
    yes, fixed, thanks ephraim
    ephraim
    0

Add comment

Please sign in to leave a comment.