Viewing 13 posts - 1 through 13 (of 13 total)
Good article.
I use temporary tables and table variables and have found that within transaction table variables are faster. However, if large amounts of data are being used then temporary...
May 30, 2008 at 5:07 am
In my apps I store inputted dates as char(8) with any unsupplied parts filled with zeros. My rationale for this is that my apps always record dates in the...
August 10, 2007 at 3:00 pm
I use Aaron's method.
I only ever have transactions in top level procedures. All nested procedure calls write an error to a temporary error table. My top level procedures...
August 10, 2007 at 2:43 pm
I use the following code:
SELECT CONVERT(char(8),GETDATE(),112) + CONVERT(char(2), GETDATE(),114) + SUBSTRING(CONVERT(char(5), GETDATE(),114),4,2)
August 10, 2007 at 2:34 pm
I always perform read ahead checks on the values passed into a procedure to confirm that they won't cause any integrity violations. This can be a little time-consuming, especially...
August 5, 2007 at 1:57 pm
I tend to find that multiplying the single quotes, whilst it works perfectly well, it can make the string harder to read. To solve this I use char(39) instead:
'SELECT...
August 1, 2007 at 1:14 pm
In migrations I've done to SQL 2005 I've had collation issues where the collation of the tempDB is actually causing the problem. This usually manifests itself when using temporary...
July 27, 2007 at 2:05 pm
In my databases I usually assign an identity integer as a primary key or a combination of integers. If I have a string that is a natural key, such...
July 27, 2007 at 1:45 pm
I have a broadly similar situation in that I have approximately 100 clients using the same base application although the data is customised for each client, and the functionality is...
July 24, 2007 at 1:05 pm
Steve,
It's a simple VB.NET command line tool that uses SMO/DMO to create databases and execute scripts. It takes connection details and an xml file that defines the scripts to...
July 23, 2007 at 11:13 pm
We have most objects in their own file, the exception being the foreign keys. We use a VCS to record changes and our own tool to build databases based...
July 23, 2007 at 12:05 am
You could try adding a new field (TempID) to temporarily hold the values you currently have in your field, remove the old field and the add it back on to...
July 20, 2007 at 12:41 am
I agree that method two is better as it keeps the field names identifiable, especially if you use table aliases in queries. As to ID vs. PK I use...
July 20, 2007 at 12:29 am
Viewing 13 posts - 1 through 13 (of 13 total)