Click here to Skip to main content
15,884,176 members
Home / Discussions / C#
   

C#

 
AnswerRe: Casting objects to get at the contents? Pin
OriginalGriff17-Dec-09 4:15
mveOriginalGriff17-Dec-09 4:15 
GeneralRe: Casting objects to get at the contents? [modified] Pin
MattFunke17-Dec-09 4:23
MattFunke17-Dec-09 4:23 
AnswerRe: Casting objects to get at the contents? Pin
Jim Crafton17-Dec-09 5:34
Jim Crafton17-Dec-09 5:34 
Questionproblem receiving data from Pin
Shivendra Pandey17-Dec-09 2:14
Shivendra Pandey17-Dec-09 2:14 
AnswerRe: problem receiving data from Pin
OriginalGriff17-Dec-09 2:35
mveOriginalGriff17-Dec-09 2:35 
AnswerRe: problem receiving data from Pin
Migounette17-Dec-09 3:59
Migounette17-Dec-09 3:59 
AnswerRe: problem receiving data from Pin
Jim Crafton17-Dec-09 5:37
Jim Crafton17-Dec-09 5:37 
QuestionCreate an Insert SQL - Statement for insert a date Pin
neus8317-Dec-09 1:59
neus8317-Dec-09 1:59 
Hi all,

I was trying and trying ...

in Visual c# .net I use a date which should besaved to the database:

DateTime TimeForTheDatabase = DateTime.Now;
... this is only an example ...

Now I will Insert "TimeForTheDatabase" to the Database:

SqlCommand dataCommand = new SqlCommand("Insert INTO table1 (Text,Datum) VALUES ("Info",TimeForTheDatabase)",dataConnection);

But I get an Error Frown | :(

Can somebody give me a sample how to insert my "TimeForTheDatabase" into my DB ?
Thanks
AnswerRe: Create an Insert SQL - Statement for insert a date Pin
Arindam Tewary17-Dec-09 2:15
professionalArindam Tewary17-Dec-09 2:15 
AnswerRe: Create an Insert SQL - Statement for insert a date Pin
Shivendra Pandey17-Dec-09 2:17
Shivendra Pandey17-Dec-09 2:17 
AnswerRe: Create an Insert SQL - Statement for insert a date [modified] Pin
OriginalGriff17-Dec-09 2:33
mveOriginalGriff17-Dec-09 2:33 
GeneralRe: Create an Insert SQL - Statement for insert a date Pin
loyal ginger17-Dec-09 4:05
loyal ginger17-Dec-09 4:05 
GeneralRe: Create an Insert SQL - Statement for insert a date Pin
OriginalGriff17-Dec-09 4:09
mveOriginalGriff17-Dec-09 4:09 
AnswerRe: Create an Insert SQL - Statement for insert a date Pin
cysccnu17-Dec-09 3:34
cysccnu17-Dec-09 3:34 
GeneralRe: Create an Insert SQL - Statement for insert a date Pin
PIEBALDconsult17-Dec-09 5:07
mvePIEBALDconsult17-Dec-09 5:07 
GeneralRe: Create an Insert SQL - Statement for insert a date Pin
OriginalGriff17-Dec-09 5:18
mveOriginalGriff17-Dec-09 5:18 
GeneralRe: Create an Insert SQL - Statement for insert a date Pin
PIEBALDconsult17-Dec-09 8:21
mvePIEBALDconsult17-Dec-09 8:21 
QuestionInjection Games Menu. Pin
evangile17-Dec-09 1:36
evangile17-Dec-09 1:36 
AnswerRe: Injection Games Menu. Pin
Eddy Vluggen17-Dec-09 2:34
professionalEddy Vluggen17-Dec-09 2:34 
GeneralRe: Injection Games Menu. Pin
evangile17-Dec-09 3:34
evangile17-Dec-09 3:34 
GeneralRe: Injection Games Menu. Pin
Eddy Vluggen17-Dec-09 3:40
professionalEddy Vluggen17-Dec-09 3:40 
AnswerRe: Injection Games Menu. Pin
EliottA17-Dec-09 3:01
EliottA17-Dec-09 3:01 
GeneralRe: Injection Games Menu. Pin
evangile17-Dec-09 3:28
evangile17-Dec-09 3:28 
GeneralRe: Injection Games Menu. Pin
EliottA17-Dec-09 3:31
EliottA17-Dec-09 3:31 
GeneralRe: Injection Games Menu. Pin
evangile17-Dec-09 3:36
evangile17-Dec-09 3:36 

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.