SSMS Syntax Colours - ssms

I'm currently using DataGrip IDE which has it's own SQL syntax colour scheme. I'm used to the syntax colour scheme used in SSMS (e.g. Blue for Keywords; Green for Comments etc.) and I would like to use these in DataGrip - in order to do this I need to know the RGB or Hex colour codes from SSMS, so I can assign them in DataGrip Settings.
So far I've tried:
Trawling the 'net but still no luck after going through 50+ results (most of the results are about customising SSMS colour scheme)
Checking the relevant MS page which only lists simple colour names, without any codes
Getting pictures of SQL text from the 'net and using a colour picker, but the text is too small to get an accurate colour from the pixels
Unfortunately I'm not able to install SSMS just to see if I can pull the colour codes from there as my laptop is administered centrally (work PC) with tight security rules.
Does anyone have an RGB/Hex reference sheet with the SSMS syntax colours? Or can you recommend how to get these?

Related

Settings for matching words box hightlight and odd green/blue bar to the right

I have troubles finding settings for these two things, as I just want them removed.
I'm using WebStorm 2017.3 EAP, but afaik, this would be the same in the other IntelliJ products.
Both issues are on both themes, however the default theme, be bounding box is not as apparent.
The white bounding box that appears on matching words (around services in the screenshot. I just want it dimmed a bit.
This looks like this is only Material UI, but could be related settings.
Far right green border. It's there in some files not in others, and I can't figure out what it actually represents. Some times it's blue. I just want it removed.
Note: This is not the no the hard wrap guide line, as I removed that already.
I've really tried looking through all settings, but I think I might not be using the correct terminology.
Thank you on beforehand, this is driving me nuts.
Edit: Updated images and with default theme + material theme eap.
Edit: Solved problem number 1. It's `Editor -> Color Scheme -> General -> Code -> Identifier under caret

Use Fixed-Width Font in Teradata SQL Assistant Query Window?

Really simple ask:
Teradata SQL Assistant's default font for code is variable-width. This is frustrating for formatting and readability reasons, among others. Is it possible to change the font to Courier New or something similar in the Query window? Google searches, perusing the options menus, and looking up the Teradata docs have yielded nothing...
Please help me code in monospaced font!
This is one of the first things I always do, +1 for Courier New :-)
You can also find this in the SQL Assistant's help, no need for Google.
View menu (or right click in the query window) -> Set Font
And then you can also use the editor in Column Mode:
Alt+Drag Mouse or Shift+Alt+arrow key

copy query from sql developer with format

How can I copy queries from Oracle SQL Developer with format. Unlike Toad the query format is lost as I paste it in any document.
I am referring to font formatting.
Not (yet) supported in 4.x.
Your best shot is to vote/rate it up: "Copy to clipboard" should include HTML and/or RTF clipboard formats
As a workaround, if you really, really want it bad - you might try out long and tedious path of using "Print" option in color to some PDF printer, then copying it from there (some programs like Preview on Mac OS X preserve formatting while copying from PDF)
There is an extension called "Copy As HTML/RTF". But version 4.x doesn't support extensions. Only 3.x and earlier versions support them.
if you are talking about Highlight Format, I can suggest you to use one plugin in Notepad++, which preserves the Font color as in Notepad++ when you copy to Microsoft Word.
You can visit this site: Copy Notepad++ text with formatting?
SSMS has the same issue. With SSMS, it appears that there is a 10,045 byte limit. At 10,046 char/bytes, the sql format changes to text. There are two ways to resolve this issue that I know of so far.
Select all the sql text in the query window, open the word doc, and drag the text over to word instead of copy/pasting it.
Break your copy/paste text into sections less than 10,045 bytes and paste to word code section by code section. In other words, select sections of the sql text that are smaller than 10,045 bytes and copy/paste multiple times into word instead of the whole query at once.

Formatting multiple fields at once in RDL or RDLC

Over the years, I've been working with SSRS reports (RDL and RDLC) but I have not found a solution to this problem: Let's say I have x number of fields in my report. I would like to highlight all the fields at once and modify the background-color, foreground-color, font and font size, for all fields at the same time.
Is this possible? I've searched on the web and I've experimented with the report designer, and I have not found anything that allows me to do this (other than modifying the underlying XML directly, which is not an option).
Select all the controls in the designer and press F4 for properties. Change the background color, font etc.
It is possible to just select all fields and go to properties->format->paste from another fields format. That's it.

SQL Reporting Services: Why does my report shrink when it's emailed?

I created a simple report and uploaded it to my report server. It looks correct on the report server, but when I set up an email subscription, the report is much narrower than it is supposed to be.
Here is what the report looks like in the designer. It looks similar when I view it on the report server: [http://img58.imageshack.us/img58/4893/designqj3.png]
Here is what the email looks like: [http://img58.imageshack.us/img58/9297/emailmy8.png]
Does anyone know why this is happening?
This issue is fixed in SQL Server 2005 SP3 (it is part of cumulitive update package build 3161)
Problem issue described below.
http://support.microsoft.com/kb/935399
Basically Full Outlook 2007 Client Uses MS Word HTML Rendering Engine (Which Makes Web Archive Report Looked Jacked Up).
NOTE: Web Outlook 2007 Client Uses IE HTML Rendering Engine (Which makes Web Archive Report Look Okay).
We have installed the patch on DB housing Reporting Services and it does fix the issue. Emails look all nice and fancy now.
I notice that the screenshots show Outlook 2007. Perhaps you're not aware that Microsoft somewhat hobbled the HTML capabilities of Outlook in 2007, and now it uses the Word HTML engine, and not the more advanced Internet Explorer one? Might this explain the lacklustre appearance?
http://www.sitepoint.com/blogs/2007/01/10/microsoft-breaks-html-email-rendering-in-outlook/
I got around this problem by doing the
following:
Add a Page Header to the report
Add a line to the page header. Set the width of the line to the
desired page width.
Set the line colour to white (eg to hide the line)
Hope this helps someone else,
Following on from girlC0d3r's solution, images aren't always guaranteed to be shown in an email.
A better solution to widening the report to prevent the content from wrapping is to have a long unbroken string of characters with no whitespace.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
By giving the text the same color as the background of the email (e.g. white) they'll widen the report and be invisible to the user.
I don't see anything but my first guess is that the fonts are vastly different. The designer has one font and the email is a flat, no-frills kind of thing with a simple font. Without concrete examples, this is just a guess.
I don't think it's a font thing, because the text is being wrapped a lot, and it looks about the same size.
The images show in my preview, but not in the final post. So, here are links to them.
Report in the designer: [http://img58.imageshack.us/img58/4893/designqj3.png]
Email result: [http://img58.imageshack.us/img58/9297/emailmy8.png]
What report output format did you specify for the scheduled job? It seems to me you used HTML, which will autoscale depending on the output browser (HTML adapts).
If having the same layout is important then use PDF as the output format. Then, if the user wants to print the report you know exactly what it will look like and that it will fit nicely on the page.
Can you try a different format? pdf or xls maybe. In my experience web archive looks goofy. Don't know why.
Yeah, I'm using HTML. I would prefer to stick with that, because the users can just read it in their mail clients. PDF or XLS would require them to open an attachment.
I know that the HTML resizes itself to fit the browser, and that's a good thing. The problem I would like to fix is the wasted space - in the email client, the HTML shrinks too much.
I got around this problem by doing the following:
Add a Page Header to the report
Add a line to the page header. Set the width of the line to the desired page width.
Set the line colour to white (eg to hide the line)
Hope this helps someone else,
girlC0d3r is along the right lines (no pun intended), but the line will likely be shrunk along with the rest of the HTML in the email. A workaround I used yesterday was to create an image 1px high by 600px wide (or whatever), the same color as the background, and bring it into the report as an embedded image. Place it above or below the body of your report. This should force the intended width in the final email. I used this technique successfully in a report yesterday.
I just ran into this issue myself, exactly as portrayed in the OP's screenshots. The reports were beautifully rendered in nearly every format except for Web Archive. My trouble was the use of a rectangle containing each matrix that did not span the width of the report. Upon stretching it out through the remaining white space, the condensing behavior ceased. Hope that helps someone who doesn't have quick access to an SP upgrade!
Where it is not an issue of running on old software that needs a patch...
The reason is the columns are different sizes is because the MHTML Device Information Settings, 'OutlookCompat' is set to true
When creating an email subscription with MHTML format and open the report in Outlook, A forum post by Microsoft employee Fanny Liu says
change the OutlookCompat configuration setting for the MHTML Rendering extension in rsreportserver.config. Set the value to: False.
As I was researching it appeared that this would impact more than just column size. In my instance it was not that big of deal so I decided to leave well enough alone. It is correct in PDF and web, the email I send includes a link back to the report, if the client wants a pretty report they are going to want it in PDF, the email format is not expected to be printable.
Encountered the same issue and this worked for me.
Go to --> Properties --> Report
Set InteractiveSize Width to 4.9in
Set Margins to 0 for Left, Right, Top, and Bottom
Set pageSize to Width to 4.9in