Skip to content
  • Home
  • About
  • Contact
  • Legal
    • Privacy Policy
    • Cookie Policy

Peter Lalovsky

Keep it simple

Peter Lalovsky

Keep it simple
  • Home
  • About
  • Contact
  • Legal
    • Privacy Policy
    • Cookie Policy

Using a multi-value parameters in SSRS reports is giving the users the flexibility to filter on one or more values. In the following example they can filter on one or more products and on one or more customers. SSRS is passing the parameters to the stored procedure as joined strings. […]

SSRS T-SQL

SSRS: Pass Multi-Value Parameters to Stored Procedure

  • Dynamic-SQL
  • SSRS
  • T-SQL
by Peter Lalovsky
Published 2014-12-23
T-SQL: UDF SplitString() – Split String into an Array (Table) with Multi-Character Delimiter

An user-defined function to convert comma separated values (CSV) to an Array (table) is always needed. I wrote one that uses a multi-character delimiter and returns not/trimmed values. The string searches for the delimiter, inserts the left slice into the resulting table and cuts the left slice from the string. […]

T-SQL

T-SQL: UDF SplitString() – Split String into an Array (Table) …

  • CSV
  • T-SQL
  • User Defined Function
by Peter Lalovsky
Published 2014-12-22
T-SQL: Create Table DDL Script

A T-SQL script to export the definition of a table may be used in an automation. For example when I automate an import of a data into the database, I don’t create a staging table with NVARCHAR(MAX) columns, but export the structure of the destination table as a staging table.

Database Administration (DBA) T-SQL

T-SQL: Create Table DDL Script

  • DBA
  • DDL
  • Script
  • T-SQL
by Peter Lalovsky
Published 2014-12-20

In this example I will compare the execution of two possible options to aggregate multiple columns. I have data columns A, B and C and I need to show the average. “CASE” is using a formula ((A + B + C) / (1, 2 or 3)), simulating the scenarios when […]

T-SQL

T-SQL: Aggregate Columns (CASE or Normalization + Aggregation)

  • Aggregate
  • Optimization
  • SQL De/Normalization
by Peter Lalovsky
Published 2014-12-18

In the development process and on my playground I need a cloned database to play safely and delete in the end.

T-SQL

T-SQL: Clone a Database to be Used in a Development …

  • DDL
  • T-SQL
by Peter Lalovsky
Published 2014-12-14

While we create the database architecture, we decide to use the special value NULL or replace it with empty string or zero. Later on the development stage we manipulate the data and when we need to aggregate, we have to keep in mind the NULL or “blank” columns. The funny […]

T-SQL

NULL and Aggregation (AVG())

  • Aggregate
  • AVG()
  • Good Practice
  • NULL
  • T-SQL
by Peter Lalovsky
Published 2014-12-10

NULL values are special in SQL Server. They are not blanks or zeroes, but “Nothing” as they don’t take space in the database (table columns) and in the memory (variables). VBA uses the same word (Nothing) for NULL. The usage of NULL is a great discussion between developers and DBAs […]

T-SQL

T-SQL: Manipulating NULL value

  • Good Practice
  • NULL
  • T-SQL
by Peter Lalovsky
Published 2014-12-09

Categories

Tags

Aggregate Automation Azure Azure App Service Azure Data Factory (ADF) Azure Data Lake (ADLS) Azure Synapse Backend Built-In Function C# Change Data Capture Change Tracking CSV Databricks Data Warehouse (DW) Dates DBA DDL Deployment Dynamic-SQL ETL fabric framework Good Practice Hints Jupyter Notebooks MariaDB NULL Optimization Performance PIVOT Python REST API Run-Around Running Total Running Value Script Serverless SQLCMD SQL Server SSIS SSRS String T-SQL Training User Defined Function

Posts navigation

  • Newer posts Newer posts
    • 1
    • …
    • 6
    • 7

© 2026 Peter Lalovsky – All rights reserved

Powered by WP – Designed with the Customizr theme