Archives

T-SQL Basics

“First learn stand, then learn fly. Nature rule, Daniel-san, not mine.” – Karate Kid

What is SQL?

SQL (Structured Query Language) is a language for manipulating database data and structure. It can be pronounced by stating it’s letters “S-Q-L” as well as the word “sequel”, as in the Matrix had two crappy sequels.

SQL is mostly […]

Toad for SQL Server

I wish I knew how to quit you… Well, not really.

In previous articles, I’ve mentioned that I use Toad for SQL Server, but until now I have not really advocated that my readers use it. While I’ve been using Toad for several years, I’ve had a love/hate relationship with it. When I first started […]

You Want Me to Put That Where???

In my previous article I mentioned my surprise that many readers were not running the sample code posted on my blog. When I asked a few as to why, the number one answer was that some M2M Admins don’t know which program(s) they can use to query their SQL databases. I don’t know why this […]

Planes, Trains, and.... Well Actually Just Automobiles.

Over the holidays and through the first week of this year, I took a journey back home to Michigan. Why did I drive you ask? Well, I wanted to take my Cockatoo Anakin with me. Sometime along the trip he decided that migrating was for the birds. We survived, but he was thrilled after we […]

Database Views - Using PowerPivot with Problem Databases Part 2

In the previous post I mentioned the use of views to simplify querying your database in general and PowerPivot in particular.

What are Database Views?

Views are virtual tables, which you can create with a SQL statement. Some of the advantages of using views are:

Simplified Data Access – The view hides the data structure from […]

Come See Me Present at Consona Connect 2010 Next Week

In recent articles, I’ve apologized because my blogging has become sporadic and mentioned that there were reasons for it which would be revealed soon. Well, one of them is that Consona (Made2Manage) has foolishly graciously asked me to present at their national conference in Vegas next week and I’m all kinds of geeked about it. […]

Updating a SQL Table From Another Table (Fixing Your Salesperson Admin Mistake)

The Problem

Yesterday I demonstrated how to use T-sql to update the Customer Table (SLCDPM) to avoid hours of manual labor. I mentioned that you should always make a backup of the table before running an update statement in case you’ve made an error.

One of my readers, Kim, astutely asked me how to use […]

Using T-SQL to Automatically Update M2M Tables

One of the primary values a good DBA brings a company is in automating tedious, time-consuming tasks. In my last article, I discussed the problems when adding a sales person to M2M. M2M’s standard procedure is to create a new sales person and manually re-assign every customer (over 700 of them) to the new sales […]

Salesperson Administration Problems

Recently we had a salesperson leave our company and they were subequently replaced. I was asked to add the new salesperson and to transfer all of the outgoing person’s accounts to the new guy.

So, I fired up the Salesperson (SLPN) screen and added the new salesperson. This was an internal promotion so I used the […]

I've Got a Golden Ticket!

Hoping to find an everlasting Gob Stopper.

Last year I pined away reading all of the tweets from last year’s PASS.

It was cute, but I meant what I said. I made a promise to myself that I would go to PASS 2010. Well, last night I pulled the trigger and purchased my ticket to go […]

Page 4 of 10« First...23456...10...Last »