Click here to Skip to main content
15,893,594 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to run a stored procedure from within a stored procedure Pin
Krish - KP5-Jun-07 17:52
Krish - KP5-Jun-07 17:52 
GeneralRe: How to run a stored procedure from within a stored procedure Pin
AndyDev5-Jun-07 18:04
AndyDev5-Jun-07 18:04 
GeneralRe: How to run a stored procedure from within a stored procedure Pin
Krish - KP6-Jun-07 1:37
Krish - KP6-Jun-07 1:37 
QuestionSQL problem Pin
kozu5-Jun-07 12:35
kozu5-Jun-07 12:35 
AnswerRe: SQL problem Pin
andyharman5-Jun-07 23:19
professionalandyharman5-Jun-07 23:19 
GeneralRe: SQL problem Pin
kozu6-Jun-07 5:04
kozu6-Jun-07 5:04 
QuestionExporting ERD from Visio 2007 Enterprise Architect to SQL Server 2005 Pin
salman_syed_015-Jun-07 6:10
salman_syed_015-Jun-07 6:10 
QuestionSQL Case problem Pin
si_695-Jun-07 4:19
si_695-Jun-07 4:19 
Hi all

i am having problems with a case statment within my query, i want to list a series of dates and times, and then list against it if it is AM or PM
im trying to do something like the below, but im getting an error

anyone any ideas ??

select mydatetime,
CASE mydatetime
WHEN datepart(hour,mydatetime) > 11 THEN 'PM'
ELSE 'AM'
as exp1
from mytable

thanks

simon
AnswerRe: SQL Case problem Pin
si_695-Jun-07 4:36
si_695-Jun-07 4:36 
GeneralRe: SQL Case problem Pin
Krish - KP5-Jun-07 17:34
Krish - KP5-Jun-07 17:34 
AnswerRe: SQL Case problem Pin
Ilya Verbitskiy5-Jun-07 4:42
Ilya Verbitskiy5-Jun-07 4:42 
QuestionReporting Services Multilingual ? Pin
ArunkumarSundaravelu5-Jun-07 3:08
ArunkumarSundaravelu5-Jun-07 3:08 
QuestionError in executing stored procedure:not a valid identifier Pin
Kusumasrinivas5-Jun-07 0:24
Kusumasrinivas5-Jun-07 0:24 
AnswerRe: Error in executing stored procedure:not a valid identifier Pin
andyharman5-Jun-07 0:59
professionalandyharman5-Jun-07 0:59 
AnswerRe: Error in executing stored procedure:not a valid identifier Pin
P_pk9-Jun-07 0:15
P_pk9-Jun-07 0:15 
Questionsqlserverdoubt Pin
saravanan054-Jun-07 23:40
saravanan054-Jun-07 23:40 
AnswerRe: sqlserverdoubt Pin
Krish - KP5-Jun-07 17:25
Krish - KP5-Jun-07 17:25 
Questionindex order Pin
Shajeel4-Jun-07 21:24
Shajeel4-Jun-07 21:24 
AnswerRe: index order Pin
Pete O'Hanlon4-Jun-07 22:25
mvePete O'Hanlon4-Jun-07 22:25 
GeneralRe: index order Pin
Shajeel4-Jun-07 22:48
Shajeel4-Jun-07 22:48 
GeneralRe: index order Pin
andyharman4-Jun-07 23:05
professionalandyharman4-Jun-07 23:05 
Question0about update statement Pin
Nilesh Mitra4-Jun-07 20:12
Nilesh Mitra4-Jun-07 20:12 
AnswerRe: 0about update statement Pin
WoutL4-Jun-07 20:55
WoutL4-Jun-07 20:55 
QuestionHow to disable and monitor user connection Pin
Bob Vila4-Jun-07 14:09
Bob Vila4-Jun-07 14:09 
AnswerRe: How to disable and monitor user connection Pin
leckey4-Jun-07 17:40
leckey4-Jun-07 17:40 

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.