SQL Script to populate Date Dimension table in the Data warehouse.

This is a simple script l wrote in SQL server 2012 which can be used to populate the Date table for use in a data warehouse. It provides components of the date which can be used in any situation. IF OBJECT_ID(‘tempdb..##Dates’) IS NOT NULL DROP TABLE ##Dates CREATE TABLE ##Dates(DateValue Date, YearValue INT, MonthValue INT, […]

Read More

SQL Procedure to allow registration of only employees of your company for your site.

Here is a simple procedure to register employees of your company only to a system. For example, l have created a site that l want only users with email ending in @kofianalytics.com to be able to register on the site. That means, once the email is validated they will have access to the site. This […]

Read More