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

  • Aaron L
    I've put attempt #2 up, hopefully this is 99.9% perfect ;) it'll still move the cursor if it's in the middle of a load of whitespace that changes as it doesn't have a reference point, but hopefully it's a rare enough case not to bother you too much!

    Shift+F5 should be fixed now too.

    The options window closing is very odd - I can't recreate it here, even on slow VMs. On closing the options form Prompt will try to save out the options to their xml files. Do you have your settings files saving anywhere out of the ordinary (e.g. a network drive) or have you remapped your localappdata directory? I'm wondering if this is somehow related to the slowdown you were seeing with the refresh - is that still occurring?

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

    We'll have this out later this week.

    Best regards,

    David
    Cool. I have been thinking a bit more on it. I notice that when you right-click in the SSMS query window, there are the options to run current statement or run current batch. Might be overloading to have options to "run to cursor" and "run current batch to cursor". Not sure if there are enough keys on the keyboard to include shortcuts for them using the F5 key (there is still shift-ctrl-F5. I guess there is shift-ctrl-alt-F5 :-) ).
    dbbishop
    0
  • Aaron L
    Hi dbbishop,

    Execute to cursor should be in the latest beta build (6.4.0.300). It's bound to Ctrl+Shift+F5 - you're right that we're running out of space/keyboard shortcuts for all these commands! :)

    We decided it was getting a little bit too cluttered on the right click menu with all these in there, so we've just left execute current statement there and the rest are as keyboard shortcuts.
    Aaron L
    0
  • nigeltrevor
    Hi there, on the 6.4 beta, intellisense seems to not come up for "external" databases without an owner supplied

    select * from [table_name] comes up correctly
    select * from [database_name].[owner].[table_name] comes up correctly
    select * from [database_name]..[table_name] is not recognised at all, but used to work in 6.3

    Is this a known issue?

    Thanks
    nigeltrevor
    0
  • Aaron L
    Hi nigeltrevor,

    We did put in a fix for resolving the double dot syntax to the default schema so this could have been a knock on from that. For the very basic case of a default schema of dbo it seems to be working for me at the moment:
    pKXpzgn.png

    Could you check what result you get back if you run SELECT SCHEMA_NAME(); both on the external database and the current database?

    Thanks,
    Aaron.
    Aaron L
    0
  • nigeltrevor
    Aaron Law wrote:
    Could you check what result you get back if you run SELECT SCHEMA_NAME(); both on the external database and the current database?

    I get "NULL"

    lXDqoFl.png
    nigeltrevor
    0
  • Aaron L
    Thanks!

    NULL should be defaulting to dbo, and just to double check do you get different suggestions if you have:

    select * from [database_name].[dbo].<cursor here>
    compared to
    select * from [database_name]..<cursor here>
    Aaron L
    0
  • nigeltrevor
    No probs
    Aaron Law wrote:
    select * from [database_name].[dbo].<cursor here>

    I get the normal list of tables if I do this (works as expected)
    Aaron Law wrote:
    select * from [database_name]..<cursor here>

    I only get the prompt for snippets here

    T8znoi6.png
    nigeltrevor
    0
  • Aaron L
    Very strange,
    I'm still not able to recreate it here but I'll have a look through the code and see if I can figure out why they would differ. Thanks for reporting it!
    Aaron L
    0
  • KevinGreiner
    Confirmed that "Format SQL" doesn't move the cursor anymore except when in the middle of several lines of white space which is fine. Don't know why I didn't report this months ago! Thanks for fixing this!

    Confirmed that Shift-F5 is fixed as well.

    The options window closes fine now. It may have been related to several slow network drives that I use via a VPN. I've noticed file save/open dialogs responding slowly in other apps as well. A reboot fixed the problem.
    KevinGreiner
    0
  • Aaron L
    Hi nigeltrevor,

    Could you give the latest beta (6.4.0.397) a try and see if it fixes the missing suggestions with a double dot for you?

    Thanks,
    Aaron.
    Aaron L
    0
  • nigeltrevor
    Aaron Law wrote:
    Could you give the latest beta (6.4.0.397) a try and see if it fixes the missing suggestions with a double dot for you?

    Hi Aaron, yes this fix has done the job - intellisense across databases now works as before and as expected.

    Many thanks!

    Nigel
    nigeltrevor
    0
  • jsreynolds1
    The latest Aug 1 release .zip file seems to be corrupted. I can get many other zip files to extract fine, but not this one.

    <<<EDIT>>>

    Let me answer my own question: Avast was stopping it (blindly and silently due to my settings) from extracting. I had to disable Avast for 10 minutes in order to install. The extraction and installation went fine thereafter.
    jsreynolds1
    0
  • KevinGreiner
    Found a new problem although it may not be with SQL Prompt.

    In Snippet Manager, edit a snippet. Then click "Find out more" at the bottom of the form. I get a new browser window with a 404 page.
    KevinGreiner
    0
  • Aaron L
    Hi jsreynolds1,

    Thanks for the heads up, it does sound odd especially if it let you run the installer afterwards without a problem. We occasionally get our dlls marked as false positives as our obfuscator has been used by some viruses but normally having it digitally signed solves that (which the installer is)
    Aaron L
    0
  • Aaron L
    Hi Kevin,

    The help link uses our help redirect system which hadn't been set up for 6.4 yet as it's still in beta, I'll have a look into see if we can get it redirecting correctly today. (it should be pointing to http://documentation.red-gate.com/displ ... g+snippets)

    Edit: Should be fixed now!
    Aaron L
    0
  • jsreynolds1
    Aaron,

    Here are two screenshots of the latest Avast software scan log (real-time protection) which was preventing me from installing. Hopefully this might help?

    Picture1
    Picture2
    jsreynolds1
    0
  • Aaron L
    Thanks for the extra info – from the first picture it looks like Avast has marked it as suspicious, I had a quick search online and it seems like a few people have been getting false positives marked as Win32:Evo-gen [Susp].

    There's a chance it's just a one off for that specific build but if it's still causing problems when we get closer to releasing a stable build we'll see if Avast can add it to a whitelist.

    The second picture looks like the remnants of an old install (under Downloaded Installations) which wasn't digitally signed properly and should be safe to delete.
    Aaron L
    0
  • theit8514
    I am no longer able to get a list of parameters for a procedure when positioned directly after a procedure call or a comma after the last parameter of a procedure call. http://i.imgur.com/Phq5gWk.png

    Running 6.4.0.404 (went back to 6.3 to test if that feature was there and it appears it was http://i.imgur.com/W0qVc7H.png)
    theit8514
    0
  • Aaron L
    Hi theit8514,

    Thanks for reporting this, it looks like it was broken in 6.4.0.397. We've got a fix for it internally and should be able to get a new build out for you tomorrow.

    Thanks,
    Aaron.

    Edit: This should be fixed in the latest build (6.4.0.449)
    Aaron L
    0
  • MikeyC
    I just found a bug in the current release and beta version of SQL Prompt.

    The problem is if you have a snippet with the same name as what you have typed. for example:

    SELECT MIN(DO<cursor>

    At this point the suggestions come up with the snippet highlighted, if I arrow down to select a column, for example "DOE", and hit tab the snippet is inserted instead of the selected column name.
    MikeyC
    0
  • Aaron L
    Hi CodantiM,
    Thanks for reporting this! I think it's due to where prompt will expand wildcards and snippets when tab is pressed and it's expanding the "do" as a snippet here instead of letting the suggestion popup handle it.
    I think I've got a fix for you in this private build (6.4.0.499) if you wouldn't mind giving it a try?

    Thanks,
    Aaron.
    Aaron L
    0
  • MikeyC
    Aaron,

    Thank you very much for the quick fix, it does indeed fix the problem for me.
    MikeyC
    0
  • Aaron L
    Thanks for the confirmation - I'll make sure the fix is included in our next release.
    Aaron L
    0
  • theit8514
    I'm not sure if this is related to SQL Prompt, but I installed the 537 version on the 27th and have had three crashes since then when closing SSMS. I have updated to the latest build, but wanted to report this anyways because I did not see anything in the change log mentioning it.

    In the SQL Prompt log, I get this warning message:
    01 Sep 2014 06:07:17,217 [1] WARN RedGate.SQLQueryKeeper.TabWatcher - Exception trying to log document information
    System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Shell.Interop.IVsPersistDocData'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{D5D49C61-1C0B-4EA1-9ADB-A79FB1DBC7B5}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
    at Microsoft.VisualStudio.Platform.WindowManagement.DTE.DocumentWindow.get_DocData()
    at Microsoft.VisualStudio.Platform.WindowManagement.DTE.DocumentWindow.get_ObjectKind()
    at Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase.<get_ObjectKind>b__2a()
    at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)
    at Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase.get_ObjectKind()
    at RedGate.SQLQueryKeeper.TabWatcher.LogDocumentInformation(Document document, Boolean documentClosing)

    And then once I close the application:
    Faulting application name: Ssms.exe, version: 2011.110.5058.0, time stamp: 0x537406e3
    Faulting module name: KERNELBASE.dll, version: 6.2.9200.16864, time stamp: 0x531d2be6
    Exception code: 0xc0020001
    Fault offset: 0x00010f22
    Faulting process id: 0x12e4
    Faulting application start time: 0x01cfc64cf67abaf2
    Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe
    Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
    Report Id: 1cbc2309-32cf-11e4-be79-000c295d77cf
    Faulting package full name:
    Faulting package-relative application ID:

    I only have the developer bundle installed, no other extensions. I do not get the Red-Gate exception dialog appearing. The only indicator is SSMS restarting.


    Edit: well, I may be going crazy. I'm in the middle of rebuilding my development machine VM and this error cropped up on the new machine. The crash shows up in the Event log on the old VM, but I don't remember seeing it. I think maybe I have it configured to not restart crashed applications.
    theit8514
    0
  • Aaron L
    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.
    Aaron L
    0
  • ephraim
    exec dbo.test @... = 1 with recompile

    does not put the semicolon in the right place
    ephraim
    0
  • Aaron L
    Hi ephraim,

    I just gave it a go and I get the semicolon at the end of the statement (which I think is correct):
    P1krm5X.png
    Are you seeing something different?

    Thanks,
    Aaron.
    Aaron L
    0
  • ephraim
    I get this:
    exec dbo.test @test= 1; with recompile
    ephraim
    0
  • ephraim
    table intellisense not working in visual studio.. I get no suggestions... Works fine in SSMS
    ephraim
    0

Add comment

Please sign in to leave a comment.