Click here to Skip to main content
15,891,828 members
Home / Discussions / Database
   

Database

 
QuestionAccess 2003 disable popup messages Pin
dcode2527-Aug-10 5:01
dcode2527-Aug-10 5:01 
AnswerRe: Access 2003 disable popup messages Pin
SilimSayo27-Aug-10 5:58
SilimSayo27-Aug-10 5:58 
GeneralRe: Access 2003 disable popup messages Pin
dcode2527-Aug-10 6:03
dcode2527-Aug-10 6:03 
AnswerRe: Access 2003 disable popup messages Pin
Luc Pattyn27-Aug-10 6:08
sitebuilderLuc Pattyn27-Aug-10 6:08 
Question@@rowcount is now working with while and if statement Pin
Jagz W27-Aug-10 0:12
professionalJagz W27-Aug-10 0:12 
AnswerRe: @@rowcount is now working with while and if statement Pin
Goutam Patra27-Aug-10 2:16
professionalGoutam Patra27-Aug-10 2:16 
GeneralRe: @@rowcount is now working with while and if statement Pin
Corporal Agarn27-Aug-10 3:49
professionalCorporal Agarn27-Aug-10 3:49 
Questionsql function for day of week Pin
Thanusree Duth26-Aug-10 23:09
Thanusree Duth26-Aug-10 23:09 
I am in great confusion.Confused | :confused: I wrote a sql function to find the day of week.My query is shown below:
ALTER FUNCTION dbo.udf_DayOfWeek
(@dtDate datetime)
RETURNS VARCHAR(10)
AS
BEGIN
DECLARE @rtDayofWeek VARCHAR(10)
SELECT @rtDayofWeek = CASE DATEPART(weekday,@dtDate)
WHEN 1 THEN 'Sunday'
WHEN 2 THEN 'Monday'
WHEN 3 THEN 'Tuesday'
WHEN 4 THEN 'Wednesday'
WHEN 5 THEN 'Thursday'
WHEN 6 THEN 'Friday'
WHEN 7 THEN 'Saturday'
END
RETURN (@rtDayofWeek)
END
GO

Call this function like this:
SELECT dbo.udf_DayOfWeek('8/27/2010') AS DayOfWeek
But I have to get output when fromdate and todate is given.ie:When fromdate='8/25/2010' and todate='8/27/2010',then the output is wednesday,Thursday,Friday..How to wrie sql function for this.Please modify the above code..Hope u will understand my problem
Thanks in advance
AnswerRe: sql function for day of week Pin
Mycroft Holmes26-Aug-10 23:20
professionalMycroft Holmes26-Aug-10 23:20 
AnswerRe: sql function for day of week Pin
Corporal Agarn27-Aug-10 3:55
professionalCorporal Agarn27-Aug-10 3:55 
AnswerRe: sql function for day of week Pin
dave_1610871-Sep-10 22:54
dave_1610871-Sep-10 22:54 
QuestionSending email from ms Access using CDO , Problem ? Pin
dcode2526-Aug-10 8:30
dcode2526-Aug-10 8:30 
AnswerRe: Sending email from ms Access using CDO , Problem ? Pin
Blue_Boy26-Aug-10 22:01
Blue_Boy26-Aug-10 22:01 
GeneralRe: Sending email from ms Access using CDO , Problem ? Pin
dcode2527-Aug-10 0:57
dcode2527-Aug-10 0:57 
AnswerRe: Sending email from ms Access using CDO , Problem ? Pin
jchalfant27-Aug-10 16:17
jchalfant27-Aug-10 16:17 
GeneralRe: Sending email from ms Access using CDO , Problem ? Pin
dcode2528-Aug-10 0:12
dcode2528-Aug-10 0:12 
GeneralRe: Sending email from ms Access using CDO , Problem ? Pin
jchalfant30-Aug-10 2:36
jchalfant30-Aug-10 2:36 
QuestionSQL DATABASE Pin
It_tech26-Aug-10 6:47
It_tech26-Aug-10 6:47 
AnswerRe: SQL DATABASE Pin
dan!sh 26-Aug-10 6:55
professional dan!sh 26-Aug-10 6:55 
GeneralRe: SQL DATABASE Pin
It_tech26-Aug-10 7:52
It_tech26-Aug-10 7:52 
GeneralRe: SQL DATABASE Pin
dan!sh 26-Aug-10 22:33
professional dan!sh 26-Aug-10 22:33 
GeneralRe: SQL DATABASE Pin
SilimSayo10-Sep-10 8:25
SilimSayo10-Sep-10 8:25 
AnswerRe: SQL DATABASE [modified] Pin
Eddy Vluggen26-Aug-10 8:41
professionalEddy Vluggen26-Aug-10 8:41 
GeneralRe: SQL DATABASE Pin
PIEBALDconsult27-Aug-10 3:16
mvePIEBALDconsult27-Aug-10 3:16 
GeneralRe: SQL DATABASE Pin
SilimSayo27-Aug-10 6:01
SilimSayo27-Aug-10 6:01 

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.