Viewing 15 posts - 2,281 through 2,295 (of 3,008 total)
If you want to build a date table, the function on this link will give you what you need.
Date Table Function F_TABLE_DATE
July 11, 2008 at 11:25 am
You should avoid the other solutions posted on this thread, because they depend on the setting of DATEFIRST or LANGUAGE.
This code shows a simple way to do it.
select
DATE,
Mon = dateadd(dd,(datediff(dd,-53690,a.DATE)/7)*7,-53690)
from
--...
July 11, 2008 at 11:08 am
Anders Pedersen (7/9/2008)
De-horning is not that bad!...
It's not that bad if you do it when they're real young and weigh maybe 100 pounds.
If you wait till they're a year old...
July 9, 2008 at 10:27 am
I have a hard time thinking of a terrible IT job compared to horrible non-IT jobs.
I got a temporary job once where we went to a site for some “digging”....
July 8, 2008 at 12:43 pm
I don’t pay any attention to certifications on resumes.
What I look for on a resume is relevant experience, and the ability to clearly explain exactly what they have been doing....
July 8, 2008 at 10:37 am
You have to manually supply the name, instead of letting SQL Server pick one.
You can look up the format of the alter table statement in SQL Server Books Online.
July 7, 2008 at 1:56 pm
You are converting the dates to string before comparing them, instead of comparing dates. Do it like this:
where EffDt >= '20080601' and EffDt < '20070101'
July 7, 2008 at 1:53 pm
They do not produce the same results; see below:
create table #t ( Message varchar(20), seq int not null identity(1,1))
insert #t
select null union all
select '' union all
select 'xxx'
select * from #t...
July 7, 2008 at 1:06 pm
Grant Fritchey (7/7/2008)
I got that old feeling last year when Joey Ramone died...
You must really be getting old, because Joey Ramone died April 15, 2001. 🙁
July 7, 2008 at 12:07 pm
Open file defragmentation is only supported with Windows Server 2003 or higher. It is not possible with Windows Server 2000 or earlier.
You can use the built-in windows defragmentation utility...
July 7, 2008 at 12:00 pm
jsheldon (7/2/2008)
I didn't give very detailed variable specifics when naming...
July 2, 2008 at 3:49 pm
lherrerag20 (7/2/2008)
I put...
July 2, 2008 at 3:25 pm
You can use the script on this link to get information on all databases on a server at the same time.
Get Server Database File Information
July 2, 2008 at 1:01 pm
If you have the time, and think you might want the job, there is no harm in taking the test.
The worst that can happened is that you don’t get a...
June 30, 2008 at 4:19 pm
I use different SQL Server service accounts and passwords for each SQL Server instance. We have about 200 SQL Server instances; so it is out of the question to...
June 27, 2008 at 8:45 am
Viewing 15 posts - 2,281 through 2,295 (of 3,008 total)