SQL Server 2008 introduces a TIME data type which allows us to store the time without the date.
Locking is a major part of every RDBMS and is important to know about. It is a database functionality which without a multi-user environment could not work. The main problem of locking is that in an essence it's a logical and not physical problem. This means that no amount of hardware will help you in the end. Yes you might cut execution times but this is only a virtual fix. In a heavy multi-user environment any logical problems will appear sooner or later.
Moving the tempdb database in SQL Server is a simple process but does require the service to be restarted.
This article discusses the impact of test file size when benchmarking SQL Server disk performance. (Editors Note: This is our first article by Linchi Shea.
Linchi is a SQL Server MVP and an expert on SQL Server hard drive performance.  The article addresses the impact of test file size
when using SQLIO.EXE to test hard drive performance and how an incorrect file size can give misleading results.)
Where I work we have about 160 instances of SQL Server Express running on laptops and as you can imagine these database instances tend to become corrupted from time to time. One of the most frequent issues is that a database becomes suspect. Obviously your first choice should be to restore a backup and the transaction logs since the last backup. However if you don't have this (as I never do on my SQL Server Express instances) this is usually pretty simple to take care of by putting the database into emergency mode and then running a dbcc checkdb.
One cool setting is, you can set a part of a statement for one shortcut key. Then highlighting a word in the query editor and hitting the shortcut key will complete the statement defined in the shortcut key with the highlighted word and execute. Check this;
XML is one of the data types in SQL Server 2005.It is considered as one of the significant changes introduced in SQL Server 2005.In the previous versions, storing and retrieving XML data were possible but it was not as easy and extensible as it is in the current version. The XML data type lets the user to store XML data in the SQL Server database. In this article we will be discussing how to store, retrieve and query XML data.
This is very simple but effective script. It list all the table without primary keys.
Security in software applications is an ever more important topic. In this article, I discuss various aspects of SQL Injection attacks, what to look for in your code, and how to secure it against SQL Injection attacks. Although the technologies used here are SQL Server 2000 and the .NET Framework, the general ideas presented apply to any modern data driven application framework, which makes attacks potentially possible on any type of application that depends on that framework.
Did you know that you can have CTRL + Number key combinations/shortcuts in Query Analyzer? You can set it up so that CTRL + 5 executes sp_who2 for example. I thought everyone already knew this but apparently not; I showed this to 3 coworkers yesterday and