Viewing 15 posts - 2,311 through 2,325 (of 3,011 total)
select
[Date of Birth] = dateadd(month,(12*BirthYear)-22801+BirthMonth,BirthDay-1)
from
(
-- Test data
select
BirthYear= 1975,
BirthMonth= 12,
BirthDay= 30
) a
Results:
Date of Birth
------------------------
1975-12-30 00:00:00.000
(1 row(s) affected)
May 27, 2008 at 3:33 pm
Unfortunately, the costs spent do matter, because if they declare the project a failure, then all the costs of the project will have to be written off immediately, instead of...
May 27, 2008 at 3:15 pm
mhaskins (5/27/2008)
Michael Valentine Jones (5/27/2008)
May 27, 2008 at 10:22 am
Why do you think a max body size of nvarchar(max) limits your email content to 4000 characters?
Have you run a test to see if it is actually limited to 4000...
May 27, 2008 at 9:56 am
I give people I interview a test of SQL questions, four that I expect that anyone worth hiring can solve, and one that I expect most people will not be...
May 27, 2008 at 9:36 am
Unfortunately, it is much more likely that management will look at the mounting costs of a long overdue project and set an ultimatum for the project manager like “If it...
May 27, 2008 at 9:13 am
I don't think you can use a local temp table with sp_send_dbmail.
Create a global temp table using newid() to generate the table name, and use that.
declare @temp_table_name sysname
set @temp_table_name =...
May 22, 2008 at 8:54 am
Following a consistent style is an important part of any system for several reasons:
1. It makes it easier to figure out what the last person was doing.
2. You don’t have...
May 16, 2008 at 12:14 pm
You should avoid using global temp tables (##tablename), use local temp tables (#tablename).
This should a better way to check for a temp table. The other methods will have a...
May 16, 2008 at 11:48 am
The real fun will start when you do a large batch update that escalates to a table lock. When it finally completes after 4 hours, everyone can go back...
May 13, 2008 at 4:36 pm
You might consider modifying the transaction table to include the balance at the end of the transaction. Then you will only have inserts to worry about. Add a...
May 13, 2008 at 8:29 am
I think that the support cycle fro SQL Server is too short for an enterprise level application. I think that 10 years of support after that next major software...
May 12, 2008 at 3:33 pm
michael.welcome (5/9/2008)
May 11, 2008 at 9:46 pm
I think these are a good reference for the usual relationship between DBAs and senior management.
May 11, 2008 at 9:30 pm
This is usually called an EAV (Entity, Attribute, Value) design.
Simply put, this approach is always a disaster. The disadvantages are so overwhelming that the small benefit they think they...
May 9, 2008 at 10:32 am
Viewing 15 posts - 2,311 through 2,325 (of 3,011 total)