Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Category: SQL

MSSQL Get Domain From Email Address

Posted on October 19, 2018 By David Kittell

Reference: https://blog.sqlauthority.com/2011/06/18/sql-server-selecting-domain-from-email-address/

Read more

Delphix Web API – PowerShell Run Masking Job

Posted on April 19, 2018 By David Kittell

Take note of the Global Variables $BaseURL and $LogFilePath, make sure you set them to your values. The idea for this script is to run this as part of a database restore/migration. Drop all access to the database to do the restore/migration, then run the script for Delphix, and then…

Read more

Debian/Ubuntu LAMP Setup

Posted on January 18, 2018January 31, 2019 By David Kittell

The following code is for Debian 9 Stretch but should work on older Debian with minor changes

Read more

SQL – Select Closest Locations

Posted on September 15, 2017 By David Kittell

This is an older script but still works nicely. Setup: You have a table with medical centers that has the address along with latitude and longitude columns. I used this script with a GPS application that pulled your current location and sent it to a web service to get the…

Read more

Azure MSSQL – Server Firewall Rules

Posted on July 14, 2017 By David Kittell

Run these commands on the master table. First get the existing rules Based on the above query if there are any rules you need to remove get the name and replace Client with the appropriate name If you need to add an IP rule go to https://www.kittell.net/ip.php and update the…

Read more

MSSQL – List Users With Permissions

Posted on June 21, 2017June 22, 2017 By David Kittell

Sometimes you really just need to know how many users you have on your database, the below script will give a quick report for your database. Note: This script is designed to run on a selected database, you will have to select the database first and then run the script.

Read more

MSSQL – Datetime In Local Timezone

Posted on February 2, 2017March 26, 2021 By David Kittell

This function will get the local time based on the time zone difference from UTC

Read more

Microsoft Azure SQL – Create SQL User

Posted on October 13, 2016 By David Kittell

In this example I create a Read-Only user but this will work with any access as long as you change the db_datareader access role to what you need In SQL Management Studio open a “New Query” with [master] database Again in SQL Management Studio open a “New Query” with the…

Read more

MS SQL – Count Users In User Role

Posted on October 10, 2016 By David Kittell
Read more

Azure – MSSQL Server Information

Posted on May 13, 2016 By David Kittell

Same as MSSQL Server Information but is specific to what will work in Azure

Read more
  • 1
  • 2
  • …
  • 18
  • Next

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes