Quantcast
Channel: Rss Feed - SSMSBoost Add-in discussion board - Forum
Viewing all 825 articles
Browse latest View live

How to edit INSERT INTO template so that each value has column name next to it as a comment?

$
0
0
Sometimes I have a table with tens of columns and I have a select query which selects all the columns. I use the INSERT INTO template for the query result. It's hard to know which value belongs to what column. To make the inserts easier to read, I want to add the column name next to each value as a comment and on a separate line.

I tried to edit the INSERT INTO template and change the {values} template to:
{Value}, --{ColumnName}
and a value separator as \r\n

This works until the last column which creates a syntax error because there's an extra comma and closing parenthesis on the same line. I don't want the extra comma and the closing parenthesis needs to be on its own line.

Current wrong output:
.....
34, -- LastColumnName)

I want it to be:
....
34 -- LastColumnName
)


How do I make the template work so it doesn't create syntax errors?
Go to last post

License???

$
0
0
I installed SSMS boost for SQL 2016.

When I attempt to go to about\license to generate the machine key, it's greyed out.

What am I doing wrong?
Go to last post

SQL Formatting

$
0
0
I was going along well using the poor man's but I can no longer format my sql correctly. No matter how I adjust the format options I get my sql formatted one way only. I'm using SSMS 2014 and SSMS Boost 2.19. Any suggestions?
Go to last post

SSMSBoost 2014 says I need to install latest version but I already have it

$
0
0
Originally Posted by: dvenardos Go to Quoted Post
I am having the same problem with the 2012 Edition; downloading the latest version and neither re-installing nor uninstall / install resets the counter.


I'm having the same issue. I run two instances of SSMS under two differnt domain accounts. I upgraded SQL 2012 Community version from the previous to 2.19.5952.29737 but it still says I have to install the latest version. I saw the recommendation to install the beta but (a) it doesn't make sense because I already installed the latest version over an older one as instructed, and (b) I rely on SSMS for production support and cannot risk a beta add-in.

What do I have to do to get 2.19.5952.29737 Community to work? If I uninstall it will reinstalling work, or will it leave registry-droppings behind that bring me back to where I am now after interrupting my work for an hour?
Go to last post

SSMSBoost v3.0 Beta (2008,2012,2014,2016)

$
0
0
Updated Beta was uploaded today. See links in the head post.
Improvements:

-Fixed issue with "recent tabs", when connections were sometimes restored in disconnected state
-Added {StartTime} and {EndTime} tokens to execution complete notification
-Added "NULL Count" counter to grid aggregates and improved behavior on NULL values.
Go to last post

SSMSBoost 2014 says I need to install latest version but I already have it

$
0
0
Originally Posted by: GaryN Go to Quoted Post
Originally Posted by: dvenardos Go to Quoted Post
I am having the same problem with the 2012 Edition; downloading the latest version and neither re-installing nor uninstall / install resets the counter.


I'm having the same issue. I run two instances of SSMS under two differnt domain accounts. I upgraded SQL 2012 Community version from the previous to 2.19.5952.29737 but it still says I have to install the latest version. I saw the recommendation to install the beta but (a) it doesn't make sense because I already installed the latest version over an older one as instructed, and (b) I rely on SSMS for production support and cannot risk a beta add-in.

What do I have to do to get 2.19.5952.29737 Community to work? If I uninstall it will reinstalling work, or will it leave registry-droppings behind that bring me back to where I am now after interrupting my work for an hour?


Hello Gary,
currently you have only 2 ways:
If you want to stay with 2.19 , you have to buy professional license. The version will never expire.
Beta 3.0 will allow you to use SSMSBoost in community mode. Beta is already well tested and has release candidate status.
Go to last post

Feature Request: Button to toggle expand / collapse comma list

$
0
0
Thank your for the proposal. We plan a feature for such transformations. You proposal will be considered.
Go to last post

How to edit INSERT INTO template so that each value has column name next to it as a comment?

$
0
0
Hello Tony,
well, currently this is not possible... I have added your case to our to-do list, but cannot currently say when we will implement this.
By the way: SSMSBoost allows to jump between column names and insert values. Try CTRL+Shift+UP/Down arrow, when cursor is located on Value or Column name.
Go to last post

Unable to add License in Beta version

$
0
0
Everything is Ok. In Beta version the licensing is disabled. It will be re-enabled after the release.
Go to last post

SQL Formatting

$
0
0
Can you please provide a short sample here: which statement do you try to format and which options do you change ?
Go to last post

Disable Feature Usage Statistics

$
0
0
Hi Adam,
you probably have Beta 3.0 which is running in trial mode. With the release of 3.0 and activation in Community or Pro mode it will not be shown anymore. Generally it is showing only in trial mode.
Go to last post

Problem getting keyboard shortcut to work

$
0
0
Here you go. Thanks for your reply!

Microsoft SQL Server Management Studio 13.0.16100.1
Microsoft Analysis Services Client Tools 13.0.1700.441
Microsoft Data Access Components (MDAC) 10.0.10586.0
Microsoft MSXML 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 9.11.10586.0
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.3.10586
Go to last post

Feature Request: Select Default Database in Object Explorer

$
0
0
When I open a file before SSMS opens, the connection for the file will use the default database. If I open SSMS first, and then open a file, the connection just uses the master database. Can SSMSBoost have a feature to automatically select the default database when SSMS first opens, so that files that I open afterwards will use my default database that I have set up?
Go to last post

SSMSBoost v3.0 Beta (2008,2012,2014,2016)

$
0
0
Many thanks for the latest update.
I can confirm that the 'recent tabs' now restore correctly. (using 2014 version SSMSBoost)
Go to last post

Disable Feature Usage Statistics

$
0
0
Since the community edition has been deprecated, and is no longer runnable after our current license period expires, can you fix the next release of Beta 3.0 so that we can disable the display of the "Feature Usage Statistics" window on startup?
Go to last post

company purchased with PO; No e-mail associated

$
0
0
Our corporate office purchased two pro licenses witha PO and we have keys but cannot activate...
How is this done??

Company; Berkley Technology Services, Delaware USA
Go to last post

SSMSBoost v3.0 Beta (2008,2012,2014,2016)

$
0
0
Originally Posted by: Joã Go to Quoted Post
In SSMS 2016, I can't define shortcuts in the Shortcuts & Macros tab.
It happens either I choose "Shortcut - force override" or not.
Thank you.


I'm having this issue as well.
Go to last post

Feature request: extended functionality for script templates

$
0
0
Hi,

New to SSMSBoost, and LOVE it. I wish I'd known about it years ago, it could have saved me hundreds of hours!

The script template feature is great and very powerful, but there doesn't appear to be a way to create very useful UPDATE statements from it. What's missing is the ability to build a WHERE clause that targets a primary key column's value. I'd like to build the following with a template:

Code:
UPDATE <table name parameter> SET column = value, column = value, ... WHERE <Key column parameter> = <Key column's value>


This would be useful for updating data in one table from another one on a different (remote/unlinked) server. I can do everything except the "[KeyValue]" part, see the template XML below.

I'm not entirely sure how this might be implemented, because you're relying on the value being in the grid somewhere, and you can't always assume it's in the first column.

I think my suggestion would be to:
(a) create a new parameter value type which is a dropdown list of column names the user can select, and
(b) in the {Rows} definition allow a template to access either that parameter's column name or value for the current row

So in the case of my attached template, when run the user would type the table name and select from a list of columns in the current grid (whether or not that column is in any of the selected regions), and the output would be a list of update statements in the form above.

Caveat: If you script the entire grid as described above this will include the key column (possibly an identity), which will form part of the updates in the SET statement, which is NOT what you want ("UPDATE T SET [Id] = X, ... WHERE [Id] = X"). An additional feature should allow you to exclude columns from the {Columns} enumeration (and, while we're at it, rows from the {Rows} enumeration, say where a column is null?)

Paul

--

Script XML:
Quote:
<?xml version="1.0" encoding="utf-16"?>
<GridScripterTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>UPDATE by Id</Name>
<SaveGranularity>Entire</SaveGranularity>
<SavePath>C:\Users\phutchison\AppData\Roaming\SSMSBoost\{Year}{Month}{Day}_{Hour}{Minute}{Second}.txt</SavePath>
<OpenWithApplication />
<InvokeParametersReplacement>true</InvokeParametersReplacement>
<DefaultClipboardFormat>Text</DefaultClipboardFormat>
<Document>{Selections}</Document>
<Selection>{Rows}</Selection>
<SelectionsSeparator>\r\n\r\n</SelectionsSeparator>
<Header />
<HeadersSeparator>, </HeadersSeparator>
<Row>UPDATE [&lt;Destination tablename, sysname, Enter table name here&gt;] SET {Values}
WHERE [&lt;Key column, sysname, Enter key column for update&gt;] = [X]
</Row>
<RowsSeparator>\r\n</RowsSeparator>
<ColumnName>[{ColumnName}]</ColumnName>
<ColumnNamesSeparator>, </ColumnNamesSeparator>
<Value>[{ColumnName}] = {Value}</Value>
<ValuesSeparator>, </ValuesSeparator>
<StringFormatter>
<Pattern>'{Value}'</Pattern>
</StringFormatter>
<NStringFormatter>
<Pattern>N'{Value}'</Pattern>
</NStringFormatter>
<IntegerFormatter>
<Pattern>{Value}</Pattern>
<Format>D</Format>
</IntegerFormatter>
<DoubleFormatter>
<Pattern>{Value}</Pattern>
<Format>G</Format>
</DoubleFormatter>
<CurrencyFormatter>
<Pattern>CAST({Value} as MONEY)</Pattern>
<Format>G</Format>
</CurrencyFormatter>
<DateTimeFormatter>
<Pattern>CAST('{Value}' as DATETIME)</Pattern>
<Format>yyyyMMdd HH:mm:ss.fff</Format>
</DateTimeFormatter>
<DateFormatter>
<Pattern>CAST('{Value}' as DATE)</Pattern>
<Format>yyyyMMdd</Format>
</DateFormatter>
<TimeFormatter>
<Pattern>CAST('{Value}' as TIME)</Pattern>
<Format>HH:mm:ss.fff</Format>
</TimeFormatter>
<BooleanFormatter>
<Pattern>{Value}</Pattern>
<TrueString>1</TrueString>
<FalseString>0</FalseString>
</BooleanFormatter>
<GuidFormatter>
<Pattern>CAST ('{Value}' as uniqueidentifier)</Pattern>
<Format />
</GuidFormatter>
<BinaryFormatter>
<Pattern>{Value}</Pattern>
</BinaryFormatter>
<XmlFormatter>
<Pattern>{Value}</Pattern>
</XmlFormatter>
<SpatialFormatter>
<Pattern>'{Value}'</Pattern>
<AsText>true</AsText>
</SpatialFormatter>
<NullString>NULL</NullString>
<UseInvariantCulture>true</UseInvariantCulture>
<MaxCharsPerValue>0</MaxCharsPerValue>
<ValuesEncodeMethod>SqlEncode</ValuesEncodeMethod>
</GridScripterTemplate>


Go to last post

Disable Feature Usage Statistics

$
0
0
This window will only appear several times about 1 week prior to trial or community version expiration. Kind of reminder, that the whole add-in will stop working soon if you do not update the application or get the Community license.
In other cases it does not show (at least not supposed to).
Go to last post

Problem getting keyboard shortcut to work

$
0
0
Any activity on this issue?

I have confirmed that the formatting command is correct by adding this command to the SSMSBoost toolbar. When I click the toolbar button, the query text is properly formatted. Therefore, my only issue now is getting the keyboard shortcut to work. I have experimented with the default (Ctrl-Shift-F) and other combinations to no effect. As a related note, NONE of the keyboard shortcuts seem to work (for other functions). Is there something I need to "enable" for all SSMSBoost shortcut keys to work?

Again, I would appreciate any suggestions anyone might have. Thanks in advance!
Go to last post
Viewing all 825 articles
Browse latest View live