SQL Server with Mr. Denny:

Development


April 21, 2008  9:00 AM

Back To Basics: The DELETE Statement



Posted by: Denny Cherry
DELETE statement, SQL

When you have data in your table that you need to remove the DELETE statement is the way to do that.  Using the DELETE statement without any WHERE clause will remove all the data from your table.  The WHERE clause works the same way as the WHERE clause for SELECT and UPDATE...

April 11, 2008  3:00 PM

Back To Basics: How do I use sp_change_users_login?



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

The sp_change_users_login procedure has a specific purpose.  It's used to identify and correct users within a database which do not have a corresponding logins. You can specify the value of Report for the @Action input parameter to see any users which do not have a corresponding login.  This...


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...


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...


March 24, 2008  10:00 AM

Back To Basics: The INSERT Statement



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

While the SELECT statement is probably the most important command, the INSERT comes in handy.  The INSERT statement is used to do exactly what it sounds like, it inserts data into a table.  There are two ways to insert data into a table.  The first is to pass in each of the values, and the...


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: