Click here to Skip to main content
15,897,704 members
Home / Discussions / Database
   

Database

 
GeneralRe: Using Strongly typed Datasets and a Data Access Layer Pin
Paul Conrad1-Jun-07 10:14
professionalPaul Conrad1-Jun-07 10:14 
QuestionCan't search through Date Pin
Gamzun1-Jun-07 5:52
Gamzun1-Jun-07 5:52 
AnswerRe: Can't search through Date Pin
leckey1-Jun-07 6:14
leckey1-Jun-07 6:14 
AnswerRe: Can't search through Date Pin
Mike Dimmick1-Jun-07 8:03
Mike Dimmick1-Jun-07 8:03 
GeneralRe: Can't search through Date Pin
Gamzun1-Jun-07 21:47
Gamzun1-Jun-07 21:47 
GeneralRe: Can't search through Date Pin
Rob Graham2-Jun-07 4:50
Rob Graham2-Jun-07 4:50 
AnswerRe: Can't search through Date Pin
P_pk3-Jun-07 19:39
P_pk3-Jun-07 19:39 
QuestionscheduleDate BETWEEN 20/5/2007 AND 30/5/2007 no rows returned Pin
steve_rm1-Jun-07 3:03
steve_rm1-Jun-07 3:03 
Hello

SQL Server 2005

I have tried and cannot return any rows either though there are records that should be returned, using the sql below.

SELECT * FROM Calls WHERE clientName IN ('Bankside Engineering Limited') <br />
AND scheduleDate BETWEEN 20/5/2007 AND 30/5/2007 


In the database scheduleDate is a dateTime datatype.

In the database I have copied and pasted.
23/05/2007 00:00:00

I tried the following
SELECT * FROM Calls WHERE clientName IN ('Bankside Engineering Limited') <br />
AND scheduleDate BETWEEN '20/5/2007' AND '30/5/2007' 


And got an error message:
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

Many thanks for any help with this,

Steve
AnswerRe: scheduleDate BETWEEN 20/5/2007 AND 30/5/2007 no rows returned Pin
Mike Dimmick1-Jun-07 3:17
Mike Dimmick1-Jun-07 3:17 
QuestionRe: scheduleDate BETWEEN 20/5/2007 AND 30/5/2007 no rows returned Pin
steve_rm1-Jun-07 3:28
steve_rm1-Jun-07 3:28 
AnswerRe: scheduleDate BETWEEN 20/5/2007 AND 30/5/2007 no rows returned Pin
kubben1-Jun-07 6:20
kubben1-Jun-07 6:20 
GeneralRe: scheduleDate BETWEEN 20/5/2007 AND 30/5/2007 no rows returned Pin
steve_rm4-Jun-07 6:08
steve_rm4-Jun-07 6:08 
AnswerRe: scheduleDate BETWEEN 20/5/2007 AND 30/5/2007 no rows returned Pin
itwillgetbetter14-Jun-07 3:01
itwillgetbetter14-Jun-07 3:01 
QuestionBest common connection type Pin
gavthegenius31-May-07 22:52
gavthegenius31-May-07 22:52 
Questionprimary key and foreign key Pin
saravanan0531-May-07 18:47
saravanan0531-May-07 18:47 
AnswerRe: primary key and foreign key Pin
sam#31-May-07 19:07
sam#31-May-07 19:07 
QuestionSetFieldValue Pin
hero199531-May-07 17:32
hero199531-May-07 17:32 
AnswerRe: SetFieldValue Pin
Mike Dimmick1-Jun-07 3:20
Mike Dimmick1-Jun-07 3:20 
QuestionError with SQL Server 2005 Endpoints Pin
duaatul31-May-07 6:19
duaatul31-May-07 6:19 
QuestionFuzzy Grouping performance issue Pin
seee sharp31-May-07 6:18
seee sharp31-May-07 6:18 
QuestionConvert SQL datetime to just date Pin
kozu31-May-07 5:29
kozu31-May-07 5:29 
AnswerRe: Convert SQL datetime to just date Pin
kubben31-May-07 5:36
kubben31-May-07 5:36 
GeneralRe: Convert SQL datetime to just date Pin
kozu31-May-07 6:01
kozu31-May-07 6:01 
AnswerRe: Convert SQL datetime to just date Pin
Shahil Shah31-May-07 6:13
Shahil Shah31-May-07 6:13 
GeneralRe: Convert SQL datetime to just date Pin
kozu31-May-07 6:24
kozu31-May-07 6:24 

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.