Click here to Skip to main content
15,899,679 members
Home / Discussions / Database
   

Database

 
GeneralRe: datetime query in SQL server Pin
Ashfield23-Jun-08 1:54
Ashfield23-Jun-08 1:54 
GeneralRe: datetime query in SQL server Pin
laziale23-Jun-08 2:01
laziale23-Jun-08 2:01 
GeneralRe: datetime query in SQL server Pin
Ashfield23-Jun-08 3:30
Ashfield23-Jun-08 3:30 
GeneralRe: datetime query in SQL server Pin
laziale23-Jun-08 3:42
laziale23-Jun-08 3:42 
GeneralRe: datetime query in SQL server Pin
Ashfield23-Jun-08 4:07
Ashfield23-Jun-08 4:07 
GeneralRe: datetime query in SQL server Pin
Mike Dimmick23-Jun-08 4:30
Mike Dimmick23-Jun-08 4:30 
GeneralRe: datetime query in SQL server Pin
Ashfield23-Jun-08 4:51
Ashfield23-Jun-08 4:51 
GeneralRe: datetime query in SQL server Pin
PIEBALDconsult25-Jun-08 7:00
mvePIEBALDconsult25-Jun-08 7:00 
Yeah, what Mike said, plus, the above code results in

B) string compares rather than numeric compares
C) performing a conversion on many (millions of?) values rather than one (or two)

For these reasons, never use this technique; it's a coding horror.

[Anecdote:]
Not too long ago (has it been five years already?) I had to add some functionality to a program that already took forty minutes to run.
After adding the functionality and changing the above to the form Mike describes, it took only ten minutes.
The previous guy had said, "well it ain't broke..."
QuestionIIF problem Pin
TheFoZ22-Jun-08 8:09
TheFoZ22-Jun-08 8:09 
AnswerRe: IIF problem Pin
Pete O'Hanlon22-Jun-08 9:28
mvePete O'Hanlon22-Jun-08 9:28 
GeneralRe: IIF problem Pin
TheFoZ22-Jun-08 10:25
TheFoZ22-Jun-08 10:25 
QuestionSQL Server Reporting Services 2005 can not drillthrough if I'm not administrator Pin
Hanan88822-Jun-08 6:42
Hanan88822-Jun-08 6:42 
QuestionDatabase design question Pin
Mohammad A Gdeisat22-Jun-08 0:12
Mohammad A Gdeisat22-Jun-08 0:12 
AnswerRe: Database design question Pin
Luc Pattyn22-Jun-08 0:54
sitebuilderLuc Pattyn22-Jun-08 0:54 
AnswerRe: Database design question Pin
Scott Dorman22-Jun-08 1:19
professionalScott Dorman22-Jun-08 1:19 
GeneralRe: Database design question Pin
Mohammad A Gdeisat22-Jun-08 2:36
Mohammad A Gdeisat22-Jun-08 2:36 
GeneralRe: Database design question Pin
Scott Dorman22-Jun-08 3:06
professionalScott Dorman22-Jun-08 3:06 
AnswerRe: Database design question Pin
Ashfield22-Jun-08 21:04
Ashfield22-Jun-08 21:04 
QuestionSSIS fuzzy look up package Pin
Member 400849220-Jun-08 21:45
Member 400849220-Jun-08 21:45 
QuestionTranspose rows as columns Pin
Member 400849220-Jun-08 15:54
Member 400849220-Jun-08 15:54 
AnswerRe: Transpose rows as columns Pin
Ashfield21-Jun-08 7:27
Ashfield21-Jun-08 7:27 
AnswerRe: Transpose rows as columns Pin
A Wong23-Jun-08 4:26
A Wong23-Jun-08 4:26 
QuestionIssue while updating the DateTime field thru VB.NET Pin
hariram2820-Jun-08 8:49
hariram2820-Jun-08 8:49 
AnswerRe: Issue while updating the DateTime field thru VB.NET Pin
Ashfield20-Jun-08 8:56
Ashfield20-Jun-08 8:56 
GeneralRe: Issue while updating the DateTime field thru VB.NET Pin
hariram2820-Jun-08 9:12
hariram2820-Jun-08 9:12 

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.