Click here to Skip to main content
15,905,967 members
Home / Discussions / Database
   

Database

 
GeneralRe: sp_cursoropen - does not return rowcount Pin
Krishnraj17-Nov-08 19:53
Krishnraj17-Nov-08 19:53 
GeneralRe: sp_cursoropen - does not return rowcount Pin
Wendelius18-Nov-08 4:52
mentorWendelius18-Nov-08 4:52 
GeneralRe: sp_cursoropen - does not return rowcount Pin
Krishnraj18-Nov-08 18:16
Krishnraj18-Nov-08 18:16 
GeneralRe: sp_cursoropen - does not return rowcount Pin
Wendelius19-Nov-08 4:11
mentorWendelius19-Nov-08 4:11 
QuestionDatabase Update issue Pin
AndieDu16-Nov-08 16:38
AndieDu16-Nov-08 16:38 
AnswerRe: Database Update issue Pin
Wendelius16-Nov-08 18:01
mentorWendelius16-Nov-08 18:01 
AnswerRe: Database Update issue Pin
Vimalsoft(Pty) Ltd17-Nov-08 20:05
professionalVimalsoft(Pty) Ltd17-Nov-08 20:05 
QuestionUsing Between Condition in CASE Statement Pin
dboy22116-Nov-08 8:07
dboy22116-Nov-08 8:07 
I am having trouble with the Between condition and CASE expression in a stored procedure. I have set it up such that if a beginning date and end date are specified then return all records between the specified date range. If neither date is specified then I just return records that are between the actual date for records (basically Between 11/15/2008 and 11/15/2008). When I try to save the sp it gives me an "Incorrect Syntax near the keyword AND' error. I'm a newbie to using the CASE Statement so any help would be appreciated. Thanks in advance to all that respond.

--Case statements to determine which parameters to pass in
u.userCreationDate BETWEEN CASE WHEN @beginDate IS NULL
THEN u.userCreationDate AND u.userCreationDate

WHEN @endDate IS NULL THEN u.userCreationDate AND u.userCreationDate

ELSE @beginDate AND @endDate

END
AnswerRe: Using Between Condition in CASE Statement Pin
Wendelius16-Nov-08 9:55
mentorWendelius16-Nov-08 9:55 
GeneralRe: Using Between Condition in CASE Statement Pin
dboy22116-Nov-08 12:21
dboy22116-Nov-08 12:21 
GeneralRe: Using Between Condition in CASE Statement Pin
Wendelius16-Nov-08 12:37
mentorWendelius16-Nov-08 12:37 
QuestionProblem with cursor for all databases Pin
angel domon16-Nov-08 0:58
angel domon16-Nov-08 0:58 
AnswerRe: Problem with cursor for all databases Pin
Wendelius17-Nov-08 7:17
mentorWendelius17-Nov-08 7:17 
QuestionReorder numeric column Pin
AlexeiXX315-Nov-08 11:05
AlexeiXX315-Nov-08 11:05 
AnswerRe: Reorder numeric column Pin
AlexeiXX315-Nov-08 11:26
AlexeiXX315-Nov-08 11:26 
GeneralRe: Reorder numeric column Pin
Blue_Boy15-Nov-08 12:15
Blue_Boy15-Nov-08 12:15 
GeneralRe: Reorder numeric column Pin
AlexeiXX315-Nov-08 13:06
AlexeiXX315-Nov-08 13:06 
GeneralRe: Reorder numeric column Pin
Mycroft Holmes15-Nov-08 23:03
professionalMycroft Holmes15-Nov-08 23:03 
AnswerRe: Reorder numeric column Pin
Wendelius15-Nov-08 22:22
mentorWendelius15-Nov-08 22:22 
QuestionDeny Access through Enterprise Manager Pin
v1i9n6o7d14-Nov-08 19:37
v1i9n6o7d14-Nov-08 19:37 
AnswerRe: Deny Access through Enterprise Manager Pin
Wendelius14-Nov-08 22:03
mentorWendelius14-Nov-08 22:03 
QuestionRolling Sums Pin
StevenWalsh14-Nov-08 9:46
StevenWalsh14-Nov-08 9:46 
AnswerRe: Rolling Sums Pin
StevenWalsh14-Nov-08 10:19
StevenWalsh14-Nov-08 10:19 
AnswerRe: Rolling Sums Pin
Wendelius14-Nov-08 10:19
mentorWendelius14-Nov-08 10:19 
QuestionCreating a dynamic date parameter in a SQL Reporting Services subscription Pin
Mike Devenney14-Nov-08 8:46
Mike Devenney14-Nov-08 8: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.