Search
Post Calendar
March 2023 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 My Tweets
- We just backed Ten Plagues the Card Game on @Kickstarter kickstarter.com/projects/64044… https://t.co/1hIFAxaLHd 5 months ago
- I just entered to win a $50 Miniature Market Gift Card with help from @TheGameBoyGeek ! gameboygeek.com/contest 5 years ago
- Help Sydney travel Abroad gofundme.com/help-sydney-tr… 6 years ago
- Got to meet zee @dtconofficial https://t.co/m0YUdcLVOr 6 years ago
- RT @StrateSQL: Mikes entering sandman #sqlkaraoke vine.co/v/eYUJrV0JAiK 7 years ago
Pass Summit 2011
SQL Rally
Meta
Author Archives: MikeDavisSQL
Setting Parameters in SSIS at Run time
In SSIS when you are running a package with a parameter I find myself wanting to set the Project Parameters at run time. You can do this by creating an Enviroment Variable and then running the below script to set … Continue reading
Posted in Uncategorized
Leave a comment
Create Date Dimension with Fiscal and Time
Here are three scripts that create and Date and Time Dimension and can add the fiscal columns too. First run the Dim Date script first to create the DimDate table. Make sure you change the start date and end date … Continue reading
Posted in Uncategorized
1 Comment
Make an SSIS package Delay or Wait for Data
Packages can be scheduled to run at a time when you expect data to be in a database. Instead of guessing the time when the data will be in the database we can have the package look for data in … Continue reading
SSIS XML Task
The XML Task in SSIS allows you to parse through an XML file and read the nodes in the XML. In a previous blog I showed how to use a web service task to get the city and state when … Continue reading
SSIS Web Service Task
The Web Service task in SSIS can be used to call a web service command to perform a needed operation in your package. The results of most web services will be in XML Format. You can save these results into … Continue reading
Using Variables and Parameters SSIS
When creating an SSIS package it is always a best practice to use variables, and parameters in 2012, to avoid hard coding values into any part of your package. But there are some best practices involved with creating those variables/parameters … Continue reading
Using Configuration Files in SSIS
Now in SQL 2012 we have parameters that make it easy, but configuration files are still an option and I still see a lot of my clients using them even on 2012 due to several reasons, but mostly because of … Continue reading
Two Digit Dates in SQL – MM/DD/YYYY
When creating dates or numbers as strings it is sometimes required to have two digit numbers. For example, instead of this: 3/1/2011 You want to see this: 03/01/2011 There is an easy way to do this using the Right() function … Continue reading
SSRS Top N and Bottom N reporting with Duplicates
Previously I wrote a blog on Top N and Bottom N reporting. There were a couple of gotcha I did not cover in that blog so I thought I would cover those here to answer some of the questions I … Continue reading
Standard Deviations with CTE in SQL
I was working with a client recently getting the number of standard deviations a student was off the average number of suspensions. I accomplished this with two Common Table Expressions, (CTE). The first CTE gets the standard deviation and the … Continue reading