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
T-SQL: (Migration) Export the definition of Stored Procedures

Very often we need to bulk export database objects and move them to another server. Manually we do this by right click on the database –> Tasks –> Generate Scripts… In this example I show how we can export Stored Procedures with T-SQL and SQLCMD. This model gives us the […]

Automation Backend Database Administration (DBA) SQL Server SQLCMD T-SQL

T-SQL: (Migration) Export the definition of Stored Procedures

  • DBA
  • Deployment
  • Migration
  • SQLCMD
  • T-SQL
by Peter Lalovsky
Published 2016-12-06

We usually mask the credit card number in reports or end user data with asterisk (*). Here I show a scalar-valued function that masks the Credit Card Number.

SQL Server T-SQL

T-SQL: UDF Scalar Function to mask Credit Card numbers

  • T-SQL
  • User Defined Function
by Peter Lalovsky
Published 2016-09-16

Few days ago Business Insider posted a list of 8 in-demand programming languages. The big news is that SQL is number 1! Codingdojo report spots SQL as the best programming language to learn, based on the number of job postings on Indeed. Finally I decided to check the average salary for SQL Developer […]

SQL Server

Training: SQL is the top demanded programming language

by Peter Lalovsky
Published 2016-09-16
Tools: SQL Sentry Plan Explorer is completely FREE for everyone

There is a great news today for SQL Server community – SQL Sentry (RSS: SQLPerformance.COM) Plan Explorer is FREE for everyone. Download User Guide Thank you, SQL Sentry! Keep it simple :-)

Execution Plan SQL Server Tool

Tools: SQL Sentry Plan Explorer is completely FREE for everyone

  • Execution Plan
  • Optimization
  • Performance
by Peter Lalovsky
Published 2016-09-08

In some scenarios like ETL or load data into a DB, we need to insert the data into a staging table, where all the columns are String data type and on the next step to cleanse and manipulate the data. I heard a discussion about the data type of the […]

Data Model Database Administration (DBA) Database Architecture Database Development SQL Server T-SQL

T-SQL: NVARCHAR(255) vs. NVARCHAR(MAX) Disk Space Comparison

  • Data Architecture
  • DBA
  • Disk Space
  • T-SQL
by Peter Lalovsky
Published 2016-08-04

A FREE webinar that will present Learn SQL Server Intuitively. Transact-SQL: The Solid Basics book and will teach you how to: create tables, insert, update and delete data into them select data from existing tables aggregate data will take place Sat, Aug 13, 2016 10:00 AM – 11:00 AM Eastern Daylight Time […]

SQL Server Training

FREE Webinar to present Learn SQL Server Intuitively. Transact-SQL: The …

  • Training
by Peter Lalovsky
Published 2016-08-03

In a real world scenario, we can sale in our online store on standard or discounted prices. In this exercise we use three tables to demonstrate the zig-zag JOIN:

Database Development SQL Server T-SQL Training

The Intuitive Way to Understand the Zig-Zag JOINing with IIF()

  • Training
by Peter Lalovsky
Published 2016-07-25

I am very happy to announce that my first book, dedicated to Microsoft SQL Server from the Learn Intuitively series is now on KickStarter.

Database Development SQL Server T-SQL Training

Learn SQL Server Intuitively Transact-SQL: The Solid Basics book is …

  • Training
by Peter Lalovsky
Published 2016-07-21

When we write a DML query that is using JOINed tables as data source, first we need to understand the way SQL Server is manipulating the data. The clauses in the DML query statement are ordered as follows: SELECT FROM… JOIN WHERE GROUP BY HAVING ORDER BY Behind the scene […]

Database Development SQL Server T-SQL Training

The Intuitive way to understand the JOINs in SQL Server

  • Training
by Peter Lalovsky
Published 2016-07-20

When we create dynamic SQL code, we can add the parameters in two ways: Concatenate them into the dynamic code with + Use sp_executesql

Security SQL Injection T-SQL

T-SQL: Dynamic SQL and SQL Injection (sp_executesql)

  • Built-In Function
  • SQL Injection
  • T-SQL
by Peter Lalovsky
Published 2016-04-13

Categories

Tags

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

Posts navigation

  • Newer posts Newer posts
    • 1
    • …
    • 4
    • 5
    • 6
    • 7
  • Older posts Older posts

© 2026 Peter Lalovsky – All rights reserved

Powered by WP – Designed with the Customizr theme