Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
AnswerRe: Strange Problem Pin
Christian Graus25-Feb-07 20:40
protectorChristian Graus25-Feb-07 20:40 
GeneralRe: Strange Problem Pin
sam#25-Feb-07 21:55
sam#25-Feb-07 21:55 
AnswerRe: Strange Problem Pin
alex.almeida26-Feb-07 8:55
alex.almeida26-Feb-07 8:55 
QuestionHow to invoke a method of an application in WIndows Service Pin
Mr Perfect25-Feb-07 19:42
Mr Perfect25-Feb-07 19:42 
AnswerRe: How to invoke a method of an application in WIndows Service Pin
Colin Angus Mackay25-Feb-07 23:51
Colin Angus Mackay25-Feb-07 23:51 
Questionplease check if the DB2OLEDB connection string is correct. Pin
icesha25-Feb-07 19:18
icesha25-Feb-07 19:18 
AnswerRe: please check if the DB2OLEDB connection string is correct. Pin
Binod K25-Feb-07 19:35
Binod K25-Feb-07 19:35 
GeneralRe: please check if the DB2OLEDB connection string is correct. Pin
icesha25-Feb-07 20:50
icesha25-Feb-07 20:50 
OleDbConnection connect=new OleDbConnection();
connect.ConnectionString="Provider=DB2OLEDB; initial catalog=SAMPLE;integrated security=SSPI,user id=db2admin;password=eugene09";
connect.Open();
OleDbCommand cmd_save =new OleDbCommand("INSERT INTO test(name,year,course)"+"VALUES("+"'"+textBox1.Text+"'"+","+"'"+textBox2.Text+"'"+","+"'"+textBox3.Text+"'"+")",connect);
int intRow=cmd_save.ExecuteNonQuery();

if(intRow>0)
{
MessageBox.Show("Record added");

}
connect.Close();

this is a program i created adding a record in the database but their is no error but an exception, saying " DB2OLEDB is not existing in the local machine."

i think the problem is in the insert command. thanks for all the help!
QuestionApplication error on closing a .Net application. Pin
pranu_1325-Feb-07 19:03
pranu_1325-Feb-07 19:03 
AnswerRe: Application error on closing a .Net application. Pin
Expert Coming25-Feb-07 19:47
Expert Coming25-Feb-07 19:47 
AnswerRe: Application error on closing a .Net application. Pin
pbraun3-Mar-07 14:54
pbraun3-Mar-07 14:54 
QuestionUserControl priority Pin
AesopTurtle25-Feb-07 18:24
AesopTurtle25-Feb-07 18:24 
AnswerRe: UserControl priority Pin
Judah Gabriel Himango26-Feb-07 13:38
sponsorJudah Gabriel Himango26-Feb-07 13:38 
QuestionGDI and User Control related Pin
fjlv200525-Feb-07 18:06
fjlv200525-Feb-07 18:06 
AnswerRe: GDI and User Control related Pin
Snews25-Feb-07 18:43
Snews25-Feb-07 18:43 
QuestionRe: GDI and User Control related Pin
fjlv200525-Feb-07 19:00
fjlv200525-Feb-07 19:00 
AnswerRe: GDI and User Control related Pin
Snews25-Feb-07 19:36
Snews25-Feb-07 19:36 
Questionconnection string for OLEDB2 provider..using C# Pin
icesha25-Feb-07 16:56
icesha25-Feb-07 16:56 
AnswerRe: connection string for OLEDB2 provider..using C# Pin
Snews25-Feb-07 18:49
Snews25-Feb-07 18:49 
GeneralRe: connection string for OLEDB2 provider..using C# Pin
icesha25-Feb-07 19:09
icesha25-Feb-07 19:09 
GeneralRe: connection string for OLEDB2 provider..using C# Pin
icesha25-Feb-07 19:09
icesha25-Feb-07 19:09 
QuestionHow to know the character '\u149d' is what? Pin
god4k25-Feb-07 15:22
god4k25-Feb-07 15:22 
QuestionDrawing then adding to a page Pin
Expert Coming25-Feb-07 14:51
Expert Coming25-Feb-07 14:51 
AnswerRe: Drawing then adding to a page Pin
NanaAM25-Feb-07 17:29
NanaAM25-Feb-07 17:29 
QuestionRe: Drawing then adding to a page Pin
Expert Coming25-Feb-07 17:59
Expert Coming25-Feb-07 17:59 

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.