Click here to Skip to main content
15,917,652 members
Home / Discussions / Database
   

Database

 
QuestionDate Ranges [modified] Pin
mobius1110011-Dec-08 8:43
mobius1110011-Dec-08 8:43 
AnswerRe: Date Ranges Pin
Wendelius1-Dec-08 9:21
mentorWendelius1-Dec-08 9:21 
QuestionDatabase updating at clients end Pin
singhdheeraj2130-Nov-08 23:42
singhdheeraj2130-Nov-08 23:42 
AnswerRe: Database updating at clients end Pin
Umair Feroze1-Dec-08 1:41
Umair Feroze1-Dec-08 1:41 
AnswerRe: Database updating at clients end Pin
Ashfield1-Dec-08 4:19
Ashfield1-Dec-08 4:19 
QuestionExtendex Properties In Sql Server 2005 Pin
ais0729-Nov-08 23:53
ais0729-Nov-08 23:53 
AnswerRe: Extendex Properties In Sql Server 2005 Pin
Wendelius30-Nov-08 0:01
mentorWendelius30-Nov-08 0:01 
QuestionSQL syntax question? Pin
programmervb.netc++29-Nov-08 10:35
programmervb.netc++29-Nov-08 10:35 
AnswerRe: SQL syntax question? Pin
Wendelius29-Nov-08 11:23
mentorWendelius29-Nov-08 11:23 
GeneralRe: SQL syntax question? Pin
programmervb.netc++29-Nov-08 13:42
programmervb.netc++29-Nov-08 13:42 
GeneralRe: SQL syntax question? Pin
programmervb.netc++2-Dec-08 6:50
programmervb.netc++2-Dec-08 6:50 
GeneralRe: SQL syntax question? Pin
Wendelius2-Dec-08 7:58
mentorWendelius2-Dec-08 7:58 
Questionsql server instalation Pin
ahawari0928-Nov-08 3:43
ahawari0928-Nov-08 3:43 
AnswerRe: sql server instalation Pin
Wendelius28-Nov-08 3:49
mentorWendelius28-Nov-08 3:49 
GeneralRe: sql server instalation Pin
Jerry Hammond28-Nov-08 8:08
Jerry Hammond28-Nov-08 8:08 
GeneralRe: sql server instalation Pin
Wendelius28-Nov-08 8:34
mentorWendelius28-Nov-08 8:34 
AnswerRe: sql server instalation Pin
Jerry Hammond28-Nov-08 8:10
Jerry Hammond28-Nov-08 8:10 
QuestionSqlserver error of date difference Pin
snehasish28-Nov-08 2:25
snehasish28-Nov-08 2:25 
AnswerRe: Sqlserver error of date difference Pin
Wendelius28-Nov-08 3:43
mentorWendelius28-Nov-08 3:43 
GeneralRe: Sqlserver error of date difference Pin
snehasish28-Nov-08 18:25
snehasish28-Nov-08 18:25 
GeneralRe: Sqlserver error of date difference Pin
Wendelius28-Nov-08 20:40
mentorWendelius28-Nov-08 20:40 
QuestionVerify my understanding Pin
Syed Mehroz Alam27-Nov-08 22:18
Syed Mehroz Alam27-Nov-08 22:18 
Given the T-SQL statments below, it seems that the statements do nothing other than splitting the @MinDate and @MaxDate into day, month and year and then recreating it. Before deleting this portion, can you people verify that I am not missing any perspective.


select @MinDate = min(TheDate) from tDate where TheDate > convert(datetime,'01-01-1980',105)
select @MaxDate = max(TheDate) from tDate


--The following statements are not doing anything meaningful, I believe.

set @Year = datepart(yyyy,@MinDate)
set @Month = datepart(mm,@MinDate)
set @Day = datepart(d,@MinDate)

if len(@Month) = 1
begin
  set @Month = '0'+@Month
end

if len(@Day) = 1
begin
  set @Day = '0'+@Day
end

set @MinDate = convert(datetime,@Day+'-'+@Month+'-'+@Year,105)

set @Year = datepart(yyyy,@MaxDate)
set @Month = datepart(mm,@MaxDate)
set @Day = datepart(d,@MaxDate)

if len(@Month) = 1
begin
  set @Month = '0'+@Month
end

if len(@Day) = 1
begin
  set @Day = '0'+@Day
end

set @MaxDate = convert(datetime,@Day+'-'+@Month+'-'+@Year,105)


Regards,
Syed Mehroz Alam

My Blog
My Articles

Computers are incredibly fast, accurate, and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination. - Albert Einstein

AnswerRe: Verify my understanding Pin
Steve Westbrook1-Dec-08 5:52
Steve Westbrook1-Dec-08 5:52 
GeneralRe: Verify my understanding Pin
Ben Fair3-Dec-08 4:08
Ben Fair3-Dec-08 4:08 
QuestionOleDb? Pin
dec8227-Nov-08 15:46
dec8227-Nov-08 15:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.