Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: String parsing? Pin
Rafone15-Oct-08 11:00
Rafone15-Oct-08 11:00 
AnswerRe: String parsing? Pin
martin_hughes14-Oct-08 12:24
martin_hughes14-Oct-08 12:24 
GeneralRe: String parsing? Pin
Paul Conrad14-Oct-08 12:44
professionalPaul Conrad14-Oct-08 12:44 
GeneralRe: String parsing? Pin
Rafone15-Oct-08 11:01
Rafone15-Oct-08 11:01 
QuestionControlling cursor and retrigger in text box event handler Pin
nofacts14-Oct-08 11:18
nofacts14-Oct-08 11:18 
AnswerRe: Controlling cursor and retrigger in text box event handler Pin
Jimmanuel14-Oct-08 12:34
Jimmanuel14-Oct-08 12:34 
GeneralRe: Controlling cursor and retrigger in text box event handler Pin
nofacts14-Oct-08 12:47
nofacts14-Oct-08 12:47 
QuestionMerging to databases Pin
postonoh14-Oct-08 10:16
postonoh14-Oct-08 10:16 
OleDbConnection mySqlConn = new OleDbConnection(SqlConnString);
            OleDbCommand mySqlCom = mySqlConn.CreateCommand();

            OleDbConnection mySqlConn2 = new OleDbConnection(Sql2ConnString);
            OleDbCommand mySqlCom2 = mySqlConn2.CreateCommand();

            mySqlCom.CommandText = "SELECT * FROM OISInt_Contact";
            OleDbDataAdapter mySqlAd = new OleDbDataAdapter();
            mySqlAd.SelectCommand = mySqlCom;
            DataSet myDS = new DataSet();

            
            mySqlConn.Open();
            mySqlAd.Fill(myDS, "OISInt_Contact");


            mySqlCom2.CommandText = "SELECT * FROM OISInt_Contact";      
            OleDbDataAdapter mySqlAd2 = new OleDbDataAdapter();
            mySqlAd2.SelectCommand = mySqlCom2;
            DataSet myDS2 = new DataSet();
            mySqlConn2.Open();
            mySqlAd2.Fill(myDS2, "OISInt_Contact");
            mySqlConn.Close();
            mySqlConn2.Close();
            
            myDS2.Merge(myDS, true, MissingSchemaAction.AddWithKey);

            foreach (DataTable dt in myDS2.Tables)
            {                
                    foreach (DataRow dr in dt.Rows)
                    {                       
                        foreach (DataColumn dc in dt.Columns)
                        {
                        }
                    }
            }

            mySqlAd2.SelectCommand.Connection = mySqlConn2;
      mySqlAd2.InsertCommand = new OleDbCommand(String.Format("OISInt_ContactInsert", myDS.Tables));
            mySqlAd2.InsertCommand.CommandType = CommandType.StoredProcedure;
            mySqlAd2.Update(myDS2, "OISInt_Contact");



when I do a step into all data is in the data set and it merges but goes not commit or accept changes to the database I trying to move it to.

Learning to Code

Questionvisual c++ runtine error while using c#.net Pin
balu1234514-Oct-08 7:17
balu1234514-Oct-08 7:17 
AnswerRe: visual c++ runtine error while using c#.net Pin
KaptinKrunch14-Oct-08 7:23
KaptinKrunch14-Oct-08 7:23 
Questionvirtual memory fragmentation Pin
arcabid14-Oct-08 7:16
arcabid14-Oct-08 7:16 
AnswerRe: virtual memory fragmentation Pin
Guffa14-Oct-08 11:25
Guffa14-Oct-08 11:25 
GeneralRe: virtual memory fragmentation Pin
arcabid15-Oct-08 3:03
arcabid15-Oct-08 3:03 
GeneralRe: virtual memory fragmentation Pin
S. Senthil Kumar15-Oct-08 4:21
S. Senthil Kumar15-Oct-08 4:21 
GeneralRe: virtual memory fragmentation Pin
arcabid15-Oct-08 9:04
arcabid15-Oct-08 9:04 
Questionloading a file on the lisview conttrol by a double click (c#) Pin
Gianpaolo Barci14-Oct-08 6:49
Gianpaolo Barci14-Oct-08 6:49 
AnswerRe: loading a file on the lisview conttrol by a double click (c#) Pin
Dan Neely14-Oct-08 6:58
Dan Neely14-Oct-08 6:58 
AnswerRe: loading a file on the lisview conttrol by a double click (c#) Pin
KaptinKrunch14-Oct-08 7:04
KaptinKrunch14-Oct-08 7:04 
QuestionToolStripDropDownButton error...is it just me? Pin
pacoxl14-Oct-08 6:23
pacoxl14-Oct-08 6:23 
AnswerRe: ToolStripDropDownButton error...is it just me? Pin
Paul Conrad14-Oct-08 7:07
professionalPaul Conrad14-Oct-08 7:07 
GeneralRe: ToolStripDropDownButton error...is it just me? Pin
pacoxl14-Oct-08 8:02
pacoxl14-Oct-08 8:02 
QuestionRe: ToolStripDropDownButton error...is it just me? [modified] Pin
Alan Burkhart4-Sep-11 21:25
Alan Burkhart4-Sep-11 21:25 
QuestionTreeview Pin
boiDev14-Oct-08 5:48
boiDev14-Oct-08 5:48 
AnswerRe: Treeview Pin
Paul Conrad14-Oct-08 7:08
professionalPaul Conrad14-Oct-08 7:08 
GeneralRe: Treeview Pin
nelsonpaixao14-Oct-08 12:17
nelsonpaixao14-Oct-08 12:17 

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.