Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
anupmadathil8-Feb-09 18:02
anupmadathil8-Feb-09 18:02 
AnswerRe: How can i read mails from Outlook using C# Pin
Christian Graus8-Feb-09 18:29
protectorChristian Graus8-Feb-09 18:29 
GeneralRe: How can i read mails from Outlook using C# Pin
anupmadathil8-Feb-09 19:28
anupmadathil8-Feb-09 19:28 
GeneralRe: How can i read mails from Outlook using C# Pin
Christian Graus8-Feb-09 19:50
protectorChristian Graus8-Feb-09 19:50 
GeneralRe: How can i read mails from Outlook using C# Pin
EliottA9-Feb-09 2:02
EliottA9-Feb-09 2:02 
GeneralRe: How can i read mails from Outlook using C# Pin
CPallini8-Feb-09 23:07
mveCPallini8-Feb-09 23:07 
GeneralRe: How can i read mails from Outlook using C# Pin
ABitSmart8-Feb-09 23:55
ABitSmart8-Feb-09 23:55 
QuestionC# and MS-Access : Inserting or updating datetime Pin
Sifar - 08-Feb-09 16:35
Sifar - 08-Feb-09 16:35 
Hi all,

I have a C# desktop application and I am using MS-Access database.

I am using below code for update operation.

string SqlString = "UPDATE table_name SET Bdate = @Bdate WHERE SrNo = @SrNo";
OledbCmd = new OleDbCommand(SqlString, OleDbConn);
OledbCmd.Parameters.AddWithValue("@SrNo", intSrNo);
OledbCmd.Parameters.AddWithValue("@Bdate", DateTime.Now.ToString());

Same approach is used for Insert operation also.

All working fine...
But I have read in one article that, DateTime should be enclosed withing single quote or #, when you are working with MS-Access. Right now, my code is working fine.

Please, explain me if there is any difference between the approach I am using and the approach that I have read..

Thanks,

Regards,
-SIFAR.

AnswerRe: C# and MS-Access : Inserting or updating datetime Pin
ABitSmart9-Feb-09 3:37
ABitSmart9-Feb-09 3:37 
AnswerRe: C# and MS-Access : Inserting or updating datetime Pin
PIEBALDconsult9-Feb-09 4:07
mvePIEBALDconsult9-Feb-09 4:07 
Questionprocess.Startinfo Pin
Jumpin' Jeff8-Feb-09 16:25
Jumpin' Jeff8-Feb-09 16:25 
AnswerRe: process.Startinfo Pin
Kristian Sixhøj8-Feb-09 16:31
Kristian Sixhøj8-Feb-09 16:31 
GeneralRe: process.Startinfo Pin
Jumpin' Jeff9-Feb-09 5:30
Jumpin' Jeff9-Feb-09 5:30 
AnswerRe: process.Startinfo Pin
akidan9-Feb-09 5:38
akidan9-Feb-09 5:38 
GeneralRe: process.Startinfo Pin
Jumpin' Jeff9-Feb-09 6:52
Jumpin' Jeff9-Feb-09 6:52 
AnswerRe: process.Startinfo Pin
Jumpin' Jeff9-Feb-09 16:18
Jumpin' Jeff9-Feb-09 16:18 
QuestionEqualizer Pin
MNantu8-Feb-09 11:22
MNantu8-Feb-09 11:22 
AnswerRe: Equalizer Pin
Ravadre8-Feb-09 15:51
Ravadre8-Feb-09 15:51 
GeneralRe: Equalizer Pin
MNantu8-Feb-09 22:48
MNantu8-Feb-09 22:48 
AnswerRe: Equalizer Pin
ellappane18-Oct-09 2:16
ellappane18-Oct-09 2:16 
QuestionMilitary (Midnight) DateTime subtraction Pin
Jacob D Dixon8-Feb-09 9:43
Jacob D Dixon8-Feb-09 9:43 
AnswerRe: Military (Midnight) DateTime subtraction Pin
akidan8-Feb-09 10:02
akidan8-Feb-09 10:02 
GeneralRe: Military (Midnight) DateTime subtraction Pin
Jacob D Dixon8-Feb-09 10:08
Jacob D Dixon8-Feb-09 10:08 
GeneralRe: Military (Midnight) DateTime subtraction Pin
akidan8-Feb-09 10:16
akidan8-Feb-09 10:16 
GeneralRe: Military (Midnight) DateTime subtraction Pin
Jacob D Dixon8-Feb-09 10:20
Jacob D Dixon8-Feb-09 10:20 

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.