SQL Server with Mr. Denny:

ITKE grandparent

April 11, 2008  12:00 PM

Back To Basics: Logins and Users, what’s the difference?

Posted by: Denny Cherry
Back To Basics, LOGIN, USER

Usually Logins and Users are words which are interchangeable with each other.  However in Microsoft SQL Server they are very different things.  Because everyone assumes that they are the same thing, it can get a little confusing. Logins are created at the database server instance level, while...

April 11, 2008  5:00 AM

Back To Basics: Functions, the good and the bad

Posted by: Denny Cherry
Back To Basics, Functions, SQL

Functions are create little blocks of code.  They are fantastic for converting data from one format to another, or for looking up other values based on a lookup.  However this comes at a price.  That price is CPU power.  Doing all these additional lookups can cause extra strain on the database...

April 10, 2008  8:00 PM

Back To Basics: Stored Procedures, the work horse of the database

Posted by: Denny Cherry
Back To Basics, SQL, SQL Server stored procedures

Stored procedures are extremely useful objects.  Not only do they store T/SQL scripts for later execution, but they also provide us with an extremely important security barrier between the user interface and the database.  The security barrier is used to prevent the users from needing SELECT,...

April 10, 2008  3:00 PM

Back To Basics: Views, what exactly are they?

Posted by: Denny Cherry
Back To Basics, Oracle Views, SQL

Views are strange objects.  They look like tables, can be queried like a table, but they don't store any actual data.  Think of them as a virtual table which has pointers back to the source tables.  Views can combine data from one or more tables via joins just like a select statement. Using...

April 10, 2008  10:00 AM

Back To Basics: Tables, without them we have nothing to do

Posted by: Denny Cherry
Back To Basics, SQL, Tables

Tables are the core of any database platform.  Without tables we would be able to process data, but we would have no way to store the data.  In the simplest terms tables look like Excel sheets.  They both have columns and rows.  When you view a table in the client tools it looks much like an...

April 7, 2008  11:00 AM

SQL Server 2008 changes the way that CONVERT/CAST works

Posted by: Denny Cherry
Query tuning, SQL, SQL Server 2008

Normally when running a query against a table and using a CAST or CONVERT function against a datetime field any index is made useless.  In SQL Server 2008 this problem is fixed.  Microsoft has come up with a way for SELECT statements which use CAST or CONVERT against a column of the datetime...

April 3, 2008  11:00 AM

New INSERT syntax in SQL Server 2008

Posted by: Denny Cherry
INSERT statement, SQL Server 2008, T/SQL

One of the very cool new feature which SQL Server 2008 gives us is an change to the INSERT statement.  Now you can specify multiple rows to insert into a table from a single insert command. The syntax is: CREATE TABLE TableName (Column1 INT, Column2 VARCHAR(10)) INSERT INTO...

April 1, 2008  6:43 PM

New Article: Tips for scheduling and testing SQL Server backups

Posted by: Denny Cherry
Article, Backup & recovery

I've just published a new tip on SearchSQLServer.com called Tips for scheduling and testing SQL Server backups.  In it I'm talking...

March 31, 2008  10:00 AM

Back To Basics: The UPDATE Statement

Posted by: Denny Cherry
Back To Basics, SQL, SQL Server 2000, SQL Server 2005, SQL Server 2008, T/SQL, UPDATE

After you've inserted the data into the table, it's time to update the data.  We do this by using the UPDATE statement.  The update statment can be used in two ways.  The first is to update a record or set of records in a single table, by simply filtering the data in the table by using values...

March 27, 2008  8:21 PM

Joins vs. Exists vs. IN: Not all filters are created the same.

Posted by: Denny Cherry
Query tuning, SQL

Not all filter commands are created equal.  Different filtering operations should be used at different times to get the best performance our of your SQL Server. While the JOIN, EXISTS and IN filters can give you the same results the way that SQL Server gets to the data is very different and can...

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: