|
|
Recently I worked on a project where every data type was user defined. In case you weren’t aware, SQL Server supports the use of User Defined Data Types. These are custom data types which are based on the standard types. For example, if your data always uses a two character string for states, you may [...]
The Problem
When you pass GetDate() as a parameter to a stored procedure, the following error is returned:
EXEC dbo.ProcDate GetDate()
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ‘)’
When I ran into this problem, I found this helpful article which suggests that I should assign the value of GetDate() to variable and then pass [...]
Like many other technical bloggers, I receive requests for help on a regular basis. Since I’m constantly learning and evolving I approach others for help as well. A couple of years ago, I received an email from a new reader which began with:
Always two there are, no more, no less: a master and an [...]
I haven’t been participating in many of these blog memes because I have been so busy lately. A lot of my time was occupied with job hunting and since I just finished a series of interviews with different companies, this meme is perfectly timed. My good friend Jen McCown (Blog/Twitter), the fairer half of the [...]
In a previous article, I listed the benefits of using a dedicated date table and included a customizable script which enables you to quickly create your own version. One of my readers pointed out that he uses the date datatype, rather than using the smart integer key method, when working with SQL 2008+ databases. The [...]
Last week PASS announced that Dallas and the North Texas SQL Server User Group have been awarded SQLRally 2012. This is great news for all of the nearby PASS User Groups and DBA’s.
We’ve put on three successful SQL Saturday events in 18 months, and I’m proud to have been on the planning [...]
Every Kimball Group book I’ve read, as well as every Data Warehouse class I’ve attended, has indicated that a Date Dimension Primary Key should be a smart integer key in the format YYYYMMDD (20110518) so I’ve always built my Date tables that way. However, Barnaby (Blog/Twitter) pointed out that I should be using a Date [...]
This Wednesday I’ll be presenting at the Fort Worth SQL Server User Group. Come see me present:
Data Warehousing – How to Convince “The Bobs”
I got a meeting with the Bobs in a couple of minutes…
Building your first Data Warehouse is a long, and often difficult process. How can you get your boss to [...]
Calendar Tables are only useful if they reflect how your company evaluates its data. Therefore, any company using non-standard financial fiscal years and periods will require customization with their Calendar or Date Table. In this post, I’ll provide an example of how to do so using the M2M ERP System Database. For those who don’t [...]
What is a Date (Calendar) Table?
For the purposes of this article a Date Table is a dedicated table containing a single record for each day in a defined range. They include fields with descriptive attributes for each day such as Year, Month, Week, and whether a particular day is a work day or not. Date [...]
Page 1 of 1012345...10...»Last »
|
|
Popular Articles