Click here to Skip to main content
15,063,085 members
Home / Discussions / C#
   

C#

 
GeneralRe: [DllImport("NetApi32.dll"... throws exception for first few times Pin
shoab.shah27-Feb-13 1:07
Membershoab.shah27-Feb-13 1:07 
GeneralRe: [DllImport("NetApi32.dll"... throws exception for first few times Pin
Richard MacCutchan27-Feb-13 3:46
mveRichard MacCutchan27-Feb-13 3:46 
GeneralRe: [DllImport("NetApi32.dll"... throws exception for first few times Pin
Dave Kreskowiak27-Feb-13 1:07
mveDave Kreskowiak27-Feb-13 1:07 
GeneralRe: [DllImport("NetApi32.dll"... throws exception for first few times Pin
shoab.shah27-Feb-13 1:10
Membershoab.shah27-Feb-13 1:10 
GeneralRe: [DllImport("NetApi32.dll"... throws exception for first few times Pin
Dave Kreskowiak27-Feb-13 1:19
mveDave Kreskowiak27-Feb-13 1:19 
GeneralRe: [DllImport("NetApi32.dll"... throws exception for first few times Pin
shoab.shah27-Feb-13 19:07
Membershoab.shah27-Feb-13 19:07 
GeneralRe: [DllImport("NetApi32.dll"... throws exception for first few times Pin
Dave Kreskowiak28-Feb-13 1:29
mveDave Kreskowiak28-Feb-13 1:29 
QuestionC# datetime compared to sql server datetime Pin
classy_dog26-Feb-13 18:45
Memberclassy_dog26-Feb-13 18:45 
In a C# 2010 desktop application I am using a linq to sql statement to compare a C# datetime field to a sql server 2008 r2 datetime field. By doing this comparison I am getting inconsistent results. Thus I am guessing a C# datetime field is not the same as a sql server 2008 r2 datetime value.

Thus for this comparison to work, I would like to know how to change a C# datetime field to a sql server date time field. I would think I would need to do this conversion prior to comparing the dates.

Thus now you show me code and/or point me to a reference that will show me how to solve this problem?
AnswerRe: C# datetime compared to sql server datetime Pin
Pete O'Hanlon26-Feb-13 19:36
mvePete O'Hanlon26-Feb-13 19:36 
AnswerRe: C# datetime compared to sql server datetime Pin
Mangal Deep Gupta26-Feb-13 23:11
MemberMangal Deep Gupta26-Feb-13 23:11 
GeneralRe: C# datetime compared to sql server datetime Pin
Pete O'Hanlon27-Feb-13 0:07
mvePete O'Hanlon27-Feb-13 0:07 
GeneralRe: C# datetime compared to sql server datetime Pin
classy_dog27-Feb-13 2:04
Memberclassy_dog27-Feb-13 2:04 
GeneralRe: C# datetime compared to sql server datetime Pin
Pete O'Hanlon27-Feb-13 2:13
mvePete O'Hanlon27-Feb-13 2:13 
GeneralRe: C# datetime compared to sql server datetime Pin
classy_dog27-Feb-13 3:56
Memberclassy_dog27-Feb-13 3:56 
GeneralRe: C# datetime compared to sql server datetime Pin
Pete O'Hanlon27-Feb-13 4:12
mvePete O'Hanlon27-Feb-13 4:12 
GeneralRe: C# datetime compared to sql server datetime Pin
Matt T Heffron27-Feb-13 10:07
professionalMatt T Heffron27-Feb-13 10:07 
GeneralRe: C# datetime compared to sql server datetime Pin
PIEBALDconsult27-Feb-13 3:31
professionalPIEBALDconsult27-Feb-13 3:31 
SuggestionRe: C# datetime compared to sql server datetime Pin
Matt T Heffron27-Feb-13 9:58
professionalMatt T Heffron27-Feb-13 9:58 
AnswerRe: C# datetime compared to sql server datetime Pin
jschell28-Feb-13 10:08
Memberjschell28-Feb-13 10:08 
QuestionList view Question Pin
Member 979920426-Feb-13 14:57
MemberMember 979920426-Feb-13 14:57 
AnswerRe: List view Question Pin
Richard MacCutchan26-Feb-13 22:31
mveRichard MacCutchan26-Feb-13 22:31 
AnswerRe: List view Question Pin
Amir Mohammad Nasrollahi29-Jul-13 21:29
professionalAmir Mohammad Nasrollahi29-Jul-13 21:29 
QuestionHow do I populate child elements in XML? Pin
Magela26-Feb-13 12:56
MemberMagela26-Feb-13 12:56 
AnswerRe: How do I populate child elements in XML? Pin
Mangal Deep Gupta26-Feb-13 23:24
MemberMangal Deep Gupta26-Feb-13 23:24 
GeneralRe: How do I populate child elements in XML? Pin
Magela27-Feb-13 4:26
MemberMagela27-Feb-13 4:26 

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.