269 results found
-
Format selected code
Formatting a section (selected code block) with CTRL+K, CTRL+Y). This would allow me to highlight a section of a proc and format it to my liking and leave the (abomination) of the proc body untouched.
3 votes -
Option to place Table names on the same line as the keyword
Currently, no matter what settings are applied, table names are always placed on a new line, for example:
SELECT
ID,
ThingFROM
TableNameJOIN
OtherTableName
ON blah=mooWHERE
something <> something elseMy personal preference is for:
SELECT
ID,
ThingFROM TableName
JOIN OtherTableName
ON blah=mooWHERE something <> something else
Please can we have an option to achieve table names on the same line as their action (FROM / JOIN)
13 votesThis feature is now included in the new SQL Prompt 8.0. For additional information see: http://documentation.red-gate.com/display/SP8/SQL+Prompt+8.0+release+notes
You can get the latest version of SQL Prompt from http://www.red-gate.com/products/sql-development/sql-prompt/
Thank you for your help!
-
Allow renaming of variables easily
In the T-SQL editor it'd be really good if you could rename variables easily. In VS, if you use Resharper clicking on a variable and hitting F2 allows you to rename that variable and all occurrences of it easily. It even searches strings and comments and offers these as an option
22 votesThis is included in SQL Prompt 6.4, which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/
-
Enable prompting within a raiserror()
For any attempt to use Intellisense within a RAISERROR() there is no prompting - list says "No suggestions".
Sample:
RAISERROR('Not at 12hrs UTC - time is %s',0,1,@<<Nothing-here>>) WITH NOWAITAlso reported as a defect on the SQL Prompt Forum
2 votesThe latest version of Prompt should give you suggestions within a RAISEERROR
-
Automatic semicolons
Include an option when reformatting SQL to automatically add semicolons at the end of each statement if they are missing.
While in most cases SQL Server 2005 and 2008 don't require this, the 2008 docs mention that a future version might.
and it may also be helpful if trying to move code from SQL Server 200x to a dialect which does require them.85 votesThis is included in SQL Prompt 6.4, which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/
-
Display the scale and precision (length) of data types like numeric and varchar in pop-up hint windows
Display the scale and precision (length) of data types like numeric and varchar in pop-up hint windows. This would be a very helpful feature to keep data types consistent throughout a database if one doesn't want to set up a user data type for each and every column that stores data types with additional parameters like, for instance, the scale and precision.
11 votesThis feature was released in version 7.3 of SQL Prompt.
If there are any missing features please let us know by creating a new suggestion.
Kind Regards,
The Prompt Team -
Add support for the ROWS|RANGE clause (part of the OVER clause enhancements) in SQL Server 2012
SQL Prompt does not recognize the new ROWS | RANGE keyword additions to the OVER clause in SQL Server 2012
6 votesROWS and RANGE are supported in SQL Prompt 6
-
Line up type declarations
I would like an option to align the type declarations, for example when declaring the columns in a table variable I currently get:
DECLARE @MyExample TABLE
(
MyCol1 INT ,
MyOtherCol VARCHAR(10)
)Which I would quite like to see laid out as:
DECLARE @MyExample TABLE
(
MyCol1 INT ,
MyOtherCol VARCHAR(10)
)The same is true for all other places where I'm declaring, so the parameters for a procedure for example
12 votesThis feature is now included in the new SQL Prompt 8.0. For additional information see: http://documentation.red-gate.com/display/SP8/SQL+Prompt+8.0+release+notes
You can get the latest version of SQL Prompt from http://www.red-gate.com/products/sql-development/sql-prompt/
Thank you for your help!
-
Don't expand wildcard within EXISTS
Don't expand wildcard occurrences within EXISTS clause.
WHERE EXISTS(SELECT * FROM tab1)
should not expand to
WHERE EXISTS(SELECT col1, col2, col3 FROM tab1)5 votesSQL Prompt 6.2 doesn’t expand wild cards in exists statements, you can download it from http://www.red-gate.com/products/sql-development/sql-prompt/
-
Add support for spatial functions/methods
Need Intellisense for the spatial functions and geography/geometry data types, especially since they are case sensitive, and annoyingly a mixture of upper and lowercase.
7 votesThis is included in SQL Prompt 6.4, which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/
-
Ability to set "Show schemas" as the default option for the candidate list
When object names appear in the candidate window for an autocomplete, the schemas are not shown by default. Clicking on the the arrow in the bottom left of the window will show them, but this setting is not remembered so you have to do it each time. Also there's no keyboard shortcut that I can find to do this. Add the ability to set this popup to show the schema names by default.
7 votesThis is included in SQL Prompt 6.3, which can be downloaded from http://www.red-gate.com/products/sql-development/sql-prompt/
-
Please provide intellisense even when not in the current database
In SSMS when accessing a table that is not in the current database (using the three part convention) then no intellisense is coming up for the fields (such as in the where clause)
1 voteSQL Prompt now supports suggestions from other databases when using the three part convention.
Kind Regards,
The Prompt Team
-
Bring back native SSMS intellisense when disabling SQL prompt
When disabling SQL prompt (or when a trial ends) the default SSMS intellisense is not getting back to work.
This is especially important since there are a lot areas that the native SSMS intellisense is much better than SQL prompt (I will try to post all of them), so one might try to take advantage of it.3 votesThis is included in SQL Prompt 6.4, which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/
-
format join
I would like the ability to get Format SQL to handle my JOIN formatting - I like to have my JOINs look like this:
SELECT
(columns)
FROM
sys.tables t
INNER JOIN
sys.indexes i ON t.OBJECTID = i.objectidThat is: I want to have my tables being joined lined up with the (intended) table in the FROM clause, and I like to have my JOIN condition on the same line as the joined table.
Right now, I cannot seem to get this to work - the table name and join condition are always stuck onto the same line as…
7 votesThis feature was released in version 8 of SQL Prompt.
If there are any missing features please let us know by creating a new suggestion.
Kind Regards,
The Prompt Team -
Script Object as ALTER feature should not use cached scripts
Please see forum thread http://www.red-gate.com/MessageBoard/viewtopic.php?t=14749
I ran into what I would consider a serious issue with the Script Object as ALTER feature. A few hours earlier I had changed a stored procedure script and executed the Alter script so the change was now "active".
A few hours later, within the same SSMS application (but different query window) I used the right-click Script Object option as a shortcut so I didn't have to scroll through a very long list in Object Explorer... Unfortunately it scripted the OLD version of the procedure and not the one changed hours earlier.
Now, I know…
2 votesAs of SQL Prompt 5.2.8, Script as ALTER will always fetch the script directly from the database.
-
Give us a configurable option to "Always show table schema in suggestions list"
We use a separate schema (z_audit) to capture data changes from dbo tables as a complete audit trail. The tables in each schema are named the same. Every time I come to the suggestions list, I either take it as read that the top table listed is in the dbo schema, or must click that little arrow at bottom-left to "show schema", involving having to grab the mouse just to expose the schema when we're supposed to be efficiently keying; no mousing involved unless we need to use a different suggestions tab...
An option that toggles this to OUR preference…
3 votesThis is included in SQL Prompt 6.3, which can be downloaded from http://www.red-gate.com/products/sql-development/sql-prompt/
-
Enhance the Format SQL to recognize the WITH clause.
When the WITH clause is specified in the FROM clause on a JOIN, Format SQL pushes the join condition out to the WITH.
Like this:
FROM
TableA WITH (NOLOCK)
JOIN TableB WITH (NOLOCK)
ON TableA.ID = TableB.IDI would like it to behave like it does when the WITH is not present
FROM
TableA WITH (NOLOCK)
JOIN TableB WITH (NOLOCK)
ON TableA.ID = TableB.ID7 votesThis is included in SQL Prompt 6.4, which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/
-
Supprt Quoted identifiers for prompting
If you go
SELECT * FROM sys.tables AS t
or
SELECT * FROM sys.tables AS [t]then intellisense will happily carry on working correcly, with t. now showing object members.
However
SELECT * FROM sys.tables AS "t"
and
SELECT * FROM sys.tables AS 't'both cause the intellisense to give up for the rest of the batch. All four identifier markups are valid (for now) and should be treated equally...
1 voteSQL Prompt 6.3 resolves quoted identifiers correctly
-
improve performance in SSMS when CTE statements are in the script
Or maybe an option to disable parsing of statements using CTEs. My keyboard takes seconds to respond when several CTEs are in the script.
5 votesWe’ve just released SQL Prompt 6.1 which shouldn’t slow down typing when CTEs are used
-
Turn Off Schema Collection
I'd like to enable schema collection when I'm writing code, and disable it when I'm doing adhoc queries. Why: We have 100 identical databases with 1900 tables in each database. When I run a query that pulls data from each database sqlprompt starts collecting schema data from all 100 databases, then it runs out of memory and crashes.
The "Turn Off Prompting" option does not help.example:
select id,customer from DB1.dbo.orders where date > @d
union select id,customer from DB2.dbo.orders where date > @d
...etc...4 votesThis is included in SQL Prompt 6.4, which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/
- Don't see your idea?