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
C#, Azure: REST API Server on-premises or in Azure App Service

This example explains how to create REST API server. It could be deployed on-premises or in Azure (cloud). Technology used: Visual Studio 2019 (C# Windows Web App) SQL Server 2019 (on premises) Azure Authentication: Basic (base64 encoded Username:Password) Requests: HTTP SQL GET SELECT POST INSERT PUT UPDATE DELETE DELETE Database […]

Azure Azure App Service C# REST API

C#, Azure: REST API Server on-premises or in Azure App …

  • Azure
  • Azure App Service
  • C#
  • REST API
by Peter Lalovsky
Published 2021-07-14
ADF Dynamic_Extract_Driven by SQL Server_Table

In this example we create ADF pipeline that extracts from SQL Server and saves in CSV files in Data Lake. The point is just to demonstrate the logic so you can edit it as you need. The extract is driven by SQL Server table with all the parameters for a […]

Automation Azure Azure Data Factory Azure Data Lake

Azure Data Factory (ADF): Dynamic Extract Driven by SQL Server …

1 comment
  • Automation
  • Azure
  • Azure Data Factory (ADF)
  • Azure Data Lake (ADLS)
  • ETL
by Peter Lalovsky
Published 2021-07-13

Upload file result.csv into Azure Data Lake (in mystorageaccount/mycontainer). Databricks commands: spark.conf.set() define the access key for the connection to Data Lake. The access key can be found in Azure Portal. To list a folder in ADLS, use dbutils.fs.ls(). To read a file in ADLS, use spark.read(). The result is […]

Azure Azure Data Lake Databricks

Azure Databricks: Read/Write files from/to Azure Data Lake

  • Azure
  • Azure Data Lake (ADLS)
  • Databricks
by Peter Lalovsky
Published 2021-07-13
Azure Databricks: Extract from REST API and save JSON file in Azure Data Lake

Databricks commands: Import library requests to be able to run HTTP requests. Define the parameters, the Basic Authentication attributes (username, password) and execute GET request. spark.conf.set() define the access key for the connection to Data Lake. The access key can be found in Azure Portal. Define the destination folder path […]

Azure Databricks

Azure Databricks: Extract from REST API and save JSON file …

  • Azure
  • Azure Data Lake (ADLS)
  • Databricks
  • REST API
by Peter Lalovsky
Published 2021-07-13

Create table and insert data: Databricks commands: The values for hostname, port, database and username can be found in the connection string of the database. Create a widget to pass parameters from Azure Data Factory. As many as needed parameters can be declared and used in a dynamic SQL query. […]

Azure Databricks

Azure Databricks: Extract from SQL Server and save CSV or …

  • Azure
  • Azure Data Lake (ADLS)
  • Databricks
  • ETL
by Peter Lalovsky
Published 2021-07-13

The PDF version of the book Learn Microsoft® SQL Server® Intuitively. Transact-SQL: The Solid Basics can be found here. The source code can be downloaded here. Keep it simple :-)

SQL Server T-SQL

Book: Learn Microsoft® SQL Server® Intuitively. Transact-SQL: The Solid Basics

  • Book
  • SQL Server
  • T-SQL
by Peter Lalovsky
Published 2021-03-25
MariaDB: Running Total and Running Total by Group

Keep it simple :-)

Database Development

MariaDB: Running Total and Running Total by Group

  • MariaDB
  • Running Total
  • Running Value
by Peter Lalovsky
Published 2020-03-10
T-SQL: Running Total or Replace Text with Running Variable in Groups

Running total in groups: Running text replace in groups: Get the result: Keep it simple :-)

T-SQL

T-SQL: Running Total or Replace Text with Running Variable in …

  • Replace Text
  • Running Total
  • Running Value
  • T-SQL
by Peter Lalovsky
Published 2020-01-24
MariaDB: PIVOT

I googled “mariadb pivot” and the first answer was this. I need to generate this code: In few words PIVOT is grouping by two groups: CustomerID, ItemID Period And the result is: I played a little and i got this: The result is: The same code for SQL Server: It […]

MariaDB

MariaDB: PIVOT

  • MariaDB
  • PIVOT
by Peter Lalovsky
Published 2019-12-04

I create a web application and I need to show the navigation to the current page as breadcrumb. The structure of the menu is stored in the database and I will use a recursive CTE to show the current page as breadcrumb.

T-SQL

T-SQL: Recursive CTE. List Child to Parent (Create Breadcrumb)

  • Breadcrumb
  • CTE
  • Hierarchy
  • Quick Tip
  • Tip
by Peter Lalovsky
Published 2018-06-22

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
    • 2
    • 3
    • 4
    • …
    • 7
  • Older posts Older posts

© 2026 Peter Lalovsky – All rights reserved

Powered by WP – Designed with the Customizr theme