Click here to Skip to main content
15,896,606 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Major diffrence between .net 2003 and 2005 Pin
r a j u u11-Nov-07 22:46
r a j u u11-Nov-07 22:46 
AnswerRe: Major diffrence between .net 2003 and 2005 Pin
John-ph11-Nov-07 22:55
John-ph11-Nov-07 22:55 
Questionusing calendar for birthdays Pin
matjame11-Nov-07 21:46
matjame11-Nov-07 21:46 
AnswerRe: using calendar for birthdays Pin
varshavmane11-Nov-07 22:04
varshavmane11-Nov-07 22:04 
GeneralRe: using calendar for birthdays Pin
matjame11-Nov-07 22:08
matjame11-Nov-07 22:08 
GeneralRe: using calendar for birthdays Pin
Christian Graus11-Nov-07 22:30
protectorChristian Graus11-Nov-07 22:30 
GeneralRe: using calendar for birthdays Pin
matjame11-Nov-07 22:43
matjame11-Nov-07 22:43 
GeneralRe: using calendar for birthdays Pin
Christian Graus11-Nov-07 22:49
protectorChristian Graus11-Nov-07 22:49 
So you're starting with the person's Id and want to know if just that person has a birthday ? So you want SQL like

select Birthday from person where id='845834534'

you can add a check for if the birthday is today or tomorrow, but you still need to check in code if it's today, or if it's tomorrow, so you may as well do all your checking there. getdate() is how you get today's date in T-SQL. But be careful, if you have a time component to either of the two dates you're checking, they won't be equal. DateDiff may be a better way to go.



Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: using calendar for birthdays Pin
matjame11-Nov-07 23:14
matjame11-Nov-07 23:14 
Answerusing calendar for birthdays Pin
Sarani Ravindran11-Nov-07 23:04
Sarani Ravindran11-Nov-07 23:04 
GeneralRe: using calendar for birthdays Pin
matjame11-Nov-07 23:16
matjame11-Nov-07 23:16 
Questionhi sir for me ask? Pin
xuanthang80_vn11-Nov-07 21:43
xuanthang80_vn11-Nov-07 21:43 
AnswerRe: hi sir for me ask? Pin
Christian Graus11-Nov-07 22:03
protectorChristian Graus11-Nov-07 22:03 
AnswerRe: hi sir for me ask? [modified] Pin
Michael Sync11-Nov-07 22:05
Michael Sync11-Nov-07 22:05 
AnswerRe: hi sir for me ask? Pin
John-ph11-Nov-07 22:43
John-ph11-Nov-07 22:43 
Questionerror while binding date Pin
dandamudi padma11-Nov-07 21:30
dandamudi padma11-Nov-07 21:30 
AnswerRe: error while binding date Pin
John-ph11-Nov-07 23:08
John-ph11-Nov-07 23:08 
GeneralRe: error while binding date Pin
dandamudi padma11-Nov-07 23:51
dandamudi padma11-Nov-07 23:51 
QuestionHow to set the Default Export FormatType in crystal reports? Pin
jmavn11-Nov-07 20:51
jmavn11-Nov-07 20:51 
AnswerRe: How to set the Default Export FormatType in crystal reports? Pin
Michael Sync11-Nov-07 21:04
Michael Sync11-Nov-07 21:04 
GeneralRe: How to set the Default Export FormatType in crystal reports? Pin
jmavn11-Nov-07 21:23
jmavn11-Nov-07 21:23 
QuestionGridView Pin
half-life11-Nov-07 20:45
half-life11-Nov-07 20:45 
AnswerRe: GridView Pin
varshavmane11-Nov-07 21:14
varshavmane11-Nov-07 21:14 
GeneralRe: GridView Pin
half-life12-Nov-07 2:31
half-life12-Nov-07 2:31 
QuestionCall javascript Pin
John Gathogo11-Nov-07 20:33
John Gathogo11-Nov-07 20:33 

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.