Andreas Wolter
  • Consulting & Services
    • SQL Server Security Assessment by Andreas Wolter
    • SQL Server Health Check
    • Performance Analysis
    • SQL Server Discovery
    • Air-Gapped SQL Server
  • My Customers
  • About
    • Conferences
    • Certifications
    • Training
  • Blog
  • Contact
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

Tag Archive for: Best Practices

Posts

NTLM Deprecation and SQL Server: How to Find NTLM Connections and Move to Kerberos

18. November 2026/2 Comments/in Security
Read more
https://andreas-wolter.com/wp-content/uploads/2026/11/2611_ntlm-query-sample-result.png 329 959 Andreas Wolter https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png Andreas Wolter2026-11-18 17:01:032026-11-18 17:02:53NTLM Deprecation and SQL Server: How to Find NTLM Connections and Move to Kerberos

Updated SQL Server Database Application Security & HA Checklist – Version 3 available

19. August 2026/0 Comments/in Security, Architecture & High Availability
Read more
https://andreas-wolter.com/wp-content/uploads/2026/08/2026_08_SQL_Server_Database_Application_Security_and_HA_Checklist.png 405 1065 Andreas Wolter https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png Andreas Wolter2026-08-19 18:24:462026-10-26 22:39:39Updated SQL Server Database Application Security & HA Checklist – Version 3 available

Recommended Security Auditing for Databases: What to Log with SQL Server Audit

29. July 2025/6 Comments/in Security
Read more
https://andreas-wolter.com/wp-content/uploads/2025/07/202507_monitoring_lizard.jpg 400 600 Andreas Wolter https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png Andreas Wolter2025-07-29 09:42:152026-11-03 21:48:04Recommended Security Auditing for Databases: What to Log with SQL Server Audit

SQL Server DDL Trigger: Log Schema Changes to a Table

10. December 2020/0 Comments/in Security, Monitoring & Tracing
Read more
https://andreas-wolter.com/wp-content/uploads/2020/12/Preview_Logging_Schema_changes.png 626 1018 Andreas Wolter https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png Andreas Wolter2020-12-10 06:20:512026-10-29 17:14:54SQL Server DDL Trigger: Log Schema Changes to a Table

Schema-design for SQL Server: recommendations for Schema design with security in mind

21. February 2016/1 Comment/in Security

Introduction This article picks up a topic I have been teaching time and again in seminars, at conferences and in forums for many years: Schema-Design. Here, schema does not mean the database schema with its tabular design but rather the “database object schemas,” also described as Namespace.

Read more
https://andreas-wolter.com/wp-content/uploads/2017/10/schema-ownership-execution-context-switch-PASS-SQLRally-2012_small-e1507650872156.png 151 200 Andreas Wolter https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png Andreas Wolter2016-02-21 16:51:402017-10-18 11:02:57Schema-design for SQL Server: recommendations for Schema design with security in mind

Standardizing and Centralizing Report Design (or: creating style sheets for reports) Part 3: The Style-Template

21. March 2011/0 Comments/in Business Intelligence

In the first part we learned how to integrate a Layout-Template into BIDS. The second technique in this series we are looking at will be using the “Style-Template”.

What is a Style-Template?:

Style-Templates are a set of definitions such as font size, font type, font color, background color, border styles, etc., which is being used from within the “Add New Report” wizard inside Business Intelligence Development Studio.

Report Layout-Templates are shown in the Project-Dialogue “Add“ – “New Item“ .

image

This is where you usually chose among those beautiful styles, that Microsoft provides you with (Slate, Forest, Corporate, Ocean, Bold, Generic) Open-mouthed smile.

image

But: you can include your own style definition!

And this is how we can create a Style-Template:

1) Open the file StyleTemplates.xml from the following location (watch for your locale specific folder at the end) using your favorite XML Editor (notepad is sufficient):

for Reporting Services 2005

•%ProgramFiles%Microsoft Visual Studio 8Common7IDEPrivateAssembliesBusiness Intelligence WizardsReportsStylesen

for Reporting Services 2008 x64

•%ProgramFiles%Microsoft Visual Studio 9.0Common7IDEPrivateAssembliesBusiness Intelligence WizardsReportsStylesen

for 32-bit Reporting Services 2008

  • C:Program Files (x86)Microsoft Visual Studio 9.0Common7IDEPrivateAssembliesBusiness Intelligence WizardsReportsStylesen

2) I strongly advice you create a backup of StyleTemplates.xml before you edit it:

3) Look for a complete “StyleTemplate”-node like “<StyleTemplate Name=”Slate”> … </StyleTemplate>” and copy it to the end, just before the Generic-Style (<StyleTemplate Name=”Generic”>)

4) Rename the copied definition

5) Now you can start changing colors, border styles, fonts etc.

You will find out, that not everything will be accepted. There is no documentation and so far this is what I can give you as a set of rules I found out the hard way – hope it helps saving you time:

Rules of engagement for producing a Style-Template:

  • Backup StyleTemplates.xml before editing it!
  • Watch out for whitespaces and line breaks. Otherwise you will get Error messages such as “Red is not a valid color”.
  • Not all Attributes are supported and give you an error when running the wizard.
    • I.e. <TopBorder> etc.
  • Some fail silently like “<BorderWidth>”
  • Color values have no spaces between words
    • “Dark Olive Green” is coded “DarkOliveGreen”
  • Font names can include spaces
    • <FontFamily>Times New Roman</FontFamily>
  • TextAlign does not work in “Table Header” – sometimes align in header rows is out of order for no reason
  • default font for table does not work here either

Sample Style-Template code:

<StyleTemplate Name=”Pizza_Time”>
<Label>Pizza_Time</Label>
<Styles>
<Style Name=”Title”>
<FontFamily>Tahoma</FontFamily>
<FontSize>20pt</FontSize>
<Color>Red</Color>
<TextDecoration>Underline</TextDecoration>
</Style>
<Style Name=”Page Group Level 1″>
<FontFamily>Tahoma</FontFamily>
<FontSize>14pt</FontSize>
</Style>
<Style Name=”Page Group Level 2″>
<FontFamily>Tahoma</FontFamily>
<FontSize>12pt</FontSize>
</Style>
<Style Name=”Page Group Level 3+”>
<FontFamily>Tahoma</FontFamily>
<FontSize>10pt</FontSize>
</Style>
<Style Name=”Table”></Style>
<Style Name=”Matrix”></Style>
<Style Name=”Table Header”>
<BackgroundColor>Tomato</BackgroundColor>
<FontFamily>Tahoma</FontFamily>
<FontSize>11pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>White</Color>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderColor>
<Default>DimGray</Default>
</BorderColor>
</Style>
<Style Name=”Group Level 1″>
<FontFamily>Tahoma</FontFamily>
<FontSize>11pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>DarkOliveGreen</Color>
<BackgroundColor>Wheat</BackgroundColor>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderColor>
<Default>DimGray</Default>
</BorderColor>
</Style>
<Style Name=”Group Level 1 Textbox”>
<FontFamily>Tahoma</FontFamily>
<FontSize>11pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>DarkOliveGreen</Color>
<BackgroundColor>Wheat</BackgroundColor>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderColor>
<Default>DimGray</Default>
</BorderColor>
</Style>
<Style Name=”Group Level 2″>
<FontFamily>Tahoma</FontFamily>
<FontSize>10pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>DarkOliveGreen</Color>
<BackgroundColor>LightSalmon</BackgroundColor>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderColor>
<Default>DimGray</Default>
</BorderColor>
</Style>
<Style Name=”Group Level 2 Textbox”>
<FontFamily>Tahoma</FontFamily>
<FontSize>10pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>DarkOliveGreen</Color>
<BackgroundColor>LightSalmon</BackgroundColor>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderColor>
<Default>DimGray</Default>
</BorderColor>
</Style>
<Style Name=”Detail”>
<FontFamily>Tahoma</FontFamily>
<FontSize>10pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>White</Color>
<BackgroundColor>LimeGreen</BackgroundColor>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderColor>
<Default>DimGray</Default>
</BorderColor>
</Style>
</Styles>
</StyleTemplate>

You can of course include several sets of Style-Templates.

How to test?

Just run the “Add new Report”-wizard from inside BIDS, and you will see your own style appear in the list. Unfortunately there will be no picture-preview for user defined styles, so use a descriptive name.

image

And again, just like the Layout Templates, you could xcopy deploy this folder to all your Developers machines.

How about “centralizing”?

  • Just as Report Layout Templates you can “xcopy deploy” this folder regularly to all your Developers machines.
  • But again: once the reports are created, and you make a change to the originating template, existing reports will not be touched.

How about “standardizing”?

  • If you “xcopy deploy” this folder regularly to all your Developers machines, all developers can easily use the same colors and fonts for newly created tables & matrixes.

In short: What Style-Templates can be used for:

  • If you like using the „New Report“-wizard for quickly starting a report:
  • Have the first Table or Matrix finalized with the corporate-design colors and font-styles
  • Includes a report-title and body-color

Note:

  • Does NOT apply to elements added thereafter
  • Once the report is created, the style is hard-coded

References:

the only reference with code samples on the web is this post from 2004 here by a Microsoft guy:
http://www.ms-news.net/f3037/styletemplates-xml-tags-2920674.html#post9344712

The second link I’ll provide just gives a general overview over the two methods “Report (Layout) Template” and “Report Style Template”:
http://blogs.microsoft.co.il/blogs/yanivy/archive/2010/08/03/create-custom-templates-and-styles-for-ssrs-2008.aspx

In the next Part of the series, I will show how to use custom code for managing style.

Andreas

Sarpedon Quality Lab

https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png 0 0 Andreas Wolter https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png Andreas Wolter2011-03-21 12:00:002026-10-28 22:49:10Standardizing and Centralizing Report Design (or: creating style sheets for reports) Part 3: The Style-Template

Standardizing and Centralizing Report Design (or: creating style sheets for reports) Part 2: The Layout-Template

13. March 2011/0 Comments/in Business Intelligence

As a first technique in this series we will look at what I will call “Layout template”.

I chose the Term “Layout-Template” for two reasons:

first: the main thing that they can be used for is, to define general report sizing, footer and header elements – in other words, the overall layout of the report.

secondly: in the next part of this series we will see a different type of template which will actually be called “Style-Template”.

So, what is a Layout-Template?:

A Report Template can be as simple as a standard report with a certain page width and height, certain colors, a standard company logo etc., which can be copied over and over again.

Here the Problem is, how to avoid to overwrite the defined Report Template unintentionally, and, how to make it easily available.. even (report-)project-independent.

And this is where “Layout-Templates” come at hand.

Report Layout-Templates are shown in the Project-Dialogue “Add“ – “New Item“ .

image

There you can choose a Template and it will create a copy local to your project – and not overwrite the Rdl at its original location.

And this is how we create a Report Layout-Template:

1) Simply create a regular report, configure size, header and footer and so on. You could create a data region, but it would make little sense – just as a sample maybe.

2) Then you put the .rdl-file in the following location:

for Reporting Services 2005

  • %ProgramFiles%Microsoft Visual Studio 8Common7IDEPrivateAssembliesProjectItemsReportProject

for Reporting Services 2008 x64

  • %ProgramFiles%Microsoft Visual Studio 9.0Common7IDEPrivateAssembliesProjectItemsReportProject

for 32-bit Reporting Services 2008

  • C:Program Files (x86)Microsoft Visual Studio 9.0Common7IDEPrivateAssembliesProjectItemsReportProject

3) and when you right-click at the reports-node in your project, click “Add“ and then chose “New Item“, your Report Templates will appear in the “Add New Item” box:

image

That’s it. Very simple.

How about “centralizing”?

  • You can “xcopy deploy” this folder regularly to all your Developers machines.
  • But: once the reports are created, and you make a change to the originating template, existing reports will not be touched.

How about “standardizing”?

  • If you “xcopy deploy” this folder regularly to all your Developers machines, all your reports should have the same Layout in terms of sizing, header&footer.

In short: What Layout-Templates can be used for:

  • Having predefined report size, (i.e. landscaped and portrait version)
  • Include report-header and footer with corporate design and navigational elements
  • Can even include sample data-regions with appropriate fonts and colors

In the next Part of the series, you will see how to create and use a Style-Template.

Andreas

Sarpedon Quality Lab

https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png 0 0 Andreas Wolter https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png Andreas Wolter2011-03-13 12:00:002026-10-28 22:49:08Standardizing and Centralizing Report Design (or: creating style sheets for reports) Part 2: The Layout-Template

Standardizing and Centralizing Report Design (or: creating style sheets for reports) Part 1: The possibilities

10. March 2011/0 Comments/in Business Intelligence

While SQL Server 2011 (Denali) is at horizon, bringing up many changes in the way reports will be developed, Developers using SQL Server 2005, 2008 or 2008 R2 are still faced with on problem from the very first report on: How can I make not only development easier by having a template for reports at hand, but also, how to manage it.

Whereas in the area of webdesign, it is absolutely common to have a (cascading) style sheet to be referred to in all website-documents, in reporting services this concept does not exist.
While this is very annoying and it seems that it should be easy to implement at first, one has to remember, that Reporting Services does not just render to html, but at the same time Reporting Services have to be equally prepared to render Reports to Excel-Files, pdf-Files, TIFF-Image-Files, among others. So using the same technique as websites do, would simply to narrow.
There is a case at Microsoft Connect, where you can vote on this feature to get implemented in an upcoming version: http://connect.microsoft.com/SQLServer/feedback/details/253976/add-style-or-stylesheet-or-template-to-reporting-services-reports

In short: In Reporting Services there is no such one thing as ONE and only style sheet that does all magic for you.
This blog-series is intended to show you the existing techniques, and how to combine them. In the end your effectiveness in creating an managing Reports style-wise can be improved by a magnitude. But: there is work to do beforehand.

I spend quite a while, reading other blogs, the rare documentation and doing my own tests. Finally I had the honor of presenting a whole session on this matter at the European PASS Conference 2009.

In the following posts I will concentrate on the existing techniques I identified as the most useful techniques and combination.

Those are the techniques I will focus on:

The Basic Techniques:

  • Layout-Templates
  • Style-Templates

Custom methods:

  • Using Custom Code
  • Using an Assembly
  • Using plain T-SQL

Combining techniques:

  • Style Template + Layout Template
  • Style Template + Custom style + Layout Template

Reporting Services 2008 R2 techniques

  • Shared DataSet
  • Report Part

I also tested using XML-Files as well as making a webservice-call to get Style-data, but this turned out to be rather pathological and is therefore left out from further consideration.

In the next Part of the series, I will show how to create and use a Layout-Template.

Andreas

Sarpedon Quality Lab

https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png 0 0 Andreas Wolter https://andreas-wolter.com/wp-content/uploads/2026/10/Andreas-Wolter-Data_Security_Architect-dark.png Andreas Wolter2011-03-10 12:00:002026-10-28 22:49:06Standardizing and Centralizing Report Design (or: creating style sheets for reports) Part 1: The possibilities

Security Assessment Community Edition

Learn about my free Community Edition script.

Recent
  • Sample result in SSMS: local NTLM connections over shared memory from SQL01, and NTLM connections over TCP from a reporting server, an ETL server and a workstation
    NTLM Deprecation and SQL Server: How to Find NTLM Connections...18. November 2026 - 17:01in: Security
  • SQL Server Consolidation: $3M+ in Projected Savings and...30. September 2026 - 15:47in: Architecture & High Availability, Security
  • Using a Database Server as a Honeypot for Threat Detect...18. September 2026 - 16:00in: Security
  • Azure Arc for SQL Server: “Least Privilege” Mode Still...8. September 2026 - 15:56in: Security
  • When SIEM Enrichment Becomes False Attribution3. September 2026 - 14:26in: Security
Comments
  • Thanks Scott. Goof feedback. NETSTAT is a useful addition,...21. November 2026 - 15:44 by Andreas Wolter
  • I would go a little deeper with how to troubleshoot SQL...21. November 2026 - 15:15 by Scott O
  • Protecting database data at rest is essential for maintaining...21. October 2026 - 2:23 by Viska
  • Thanks Now Microsoft could document them as well, and put...19. August 2026 - 16:26 by Andreas Wolter
  • List of Action_IDs for Filter https://sqlquantumleap.com/reference/server-audit-filter-values-for-action_id/ Great...18. August 2026 - 0:59 by Peter Dünsch

Articles

Analysis Services Auditing Availability Groups Azure Best Practices Certification Columnstore Consolidation Deadlocks & Blocking Encryption Extended Events Get-SqlSafe In-Memory OLTP Indexing Least Privilege PASS Summit Patching Performance Analysis Permissions Privilege Escalation Reporting Services Security Principles Spatial Data SQLBits SQL Injection SQLSaturday SQL Server 2012 SQL Server 2014 SQL Server 2016 SQL Server 2022 SQL Server 2025 SQL Trace & Profiler sysadmin & Server Roles Threat Detection Vulnerabilities Workshop & PreCon
© 2026 Andreas WolterContactImprintPrivacy PolicyLinkedInRSS
Scroll to top Scroll to top Scroll to top
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}