Click here to Skip to main content
15,910,981 members
Home / Discussions / C#
   

C#

 
QuestionHow to access an image in DataTable? Pin
Khoramdin24-Jul-07 10:51
Khoramdin24-Jul-07 10:51 
AnswerRe: How to access an image in DataTable? Pin
Pete O'Hanlon24-Jul-07 10:58
mvePete O'Hanlon24-Jul-07 10:58 
Questionstrings Pin
seemamltn24-Jul-07 10:44
seemamltn24-Jul-07 10:44 
AnswerRe: strings Pin
Pete O'Hanlon24-Jul-07 10:52
mvePete O'Hanlon24-Jul-07 10:52 
AnswerRe: strings Pin
BoneSoft24-Jul-07 10:52
BoneSoft24-Jul-07 10:52 
AnswerRe: strings Pin
Christian Graus24-Jul-07 10:56
protectorChristian Graus24-Jul-07 10:56 
AnswerBAD USER! Pin
leckey24-Jul-07 16:29
leckey24-Jul-07 16:29 
QuestionProlem in inserting new Row-DB2 Date Time Pin
kidus124-Jul-07 9:59
kidus124-Jul-07 9:59 
hi I got a problem in inserting new rows to a datatable.How can I insert dates in a data table using DB2.
Here is some code...

DB2Connection conn = new DB2Connection(connectionString);
DB2DataAdapter DataAd= new DB2DataAdapter(select, conn);
DataSet ds=new DataSet();
DataAd.Fill(ds, "Table Name");

Datarow dr = ds.Tables["Table Name"].NewRow();

DB2Command aCommand = new DB2Command(select, conn);
aCommand.CommandType = CommandType.Text;
aCommand = new DB2Command("INSERT INTO CL.VSCHTM("ST_DTE")"
"VALUES ("#" + dr["ST_DTE"]+"#",conn);
DataAd.InsertCommand = aCommand;
DataAd.Update(ds, "Table Name");
aCommand.Parameters.Add(new DB2Parameter("ST_DTE",DB2Type.Date, 0, "ST_DTE"));
aCommand.UpdatedRowSource = UpdateRowSource.OutputParameters;

It doesn't add new row ,any help??


kidus
AnswerRe: Prolem in inserting new Row-DB2 Date Time Pin
kubben24-Jul-07 10:28
kubben24-Jul-07 10:28 
QuestionInteracting With a Database Pin
max2929724-Jul-07 9:58
max2929724-Jul-07 9:58 
AnswerRe: Interacting With a Database Pin
Pete O'Hanlon24-Jul-07 10:06
mvePete O'Hanlon24-Jul-07 10:06 
GeneralRe: Interacting With a Database Pin
max2929724-Jul-07 10:15
max2929724-Jul-07 10:15 
GeneralRe: Interacting With a Database Pin
Pete O'Hanlon24-Jul-07 10:24
mvePete O'Hanlon24-Jul-07 10:24 
GeneralRe: Interacting With a Database Pin
max2929724-Jul-07 10:27
max2929724-Jul-07 10:27 
QuestionRe: Interacting With a Database Pin
max2929724-Jul-07 10:34
max2929724-Jul-07 10:34 
AnswerRe: Interacting With a Database Pin
Christian Graus24-Jul-07 11:23
protectorChristian Graus24-Jul-07 11:23 
QuestionData Binding with CheckBox Pin
Jan Hirak24-Jul-07 9:29
Jan Hirak24-Jul-07 9:29 
Questionloop through a bindingsource Pin
crash89324-Jul-07 9:08
crash89324-Jul-07 9:08 
AnswerRe: loop through a bindingsource Pin
led mike24-Jul-07 9:33
led mike24-Jul-07 9:33 
GeneralRe: loop through a bindingsource Pin
crash89325-Jul-07 4:43
crash89325-Jul-07 4:43 
GeneralRe: loop through a bindingsource Pin
led mike26-Jul-07 4:55
led mike26-Jul-07 4:55 
QuestionBug in Paint event Pin
Oleg Mehechkov24-Jul-07 7:27
Oleg Mehechkov24-Jul-07 7:27 
AnswerRe: Bug in Paint event Pin
Luc Pattyn24-Jul-07 7:47
sitebuilderLuc Pattyn24-Jul-07 7:47 
AnswerRe: Bug in Paint event Pin
Pete O'Hanlon24-Jul-07 10:00
mvePete O'Hanlon24-Jul-07 10:00 
GeneralRe: Bug in Paint event Pin
Oleg Mehechkov25-Jul-07 22:07
Oleg Mehechkov25-Jul-07 22:07 

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.