Click here to Skip to main content
15,895,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dynamically add TabPages to my form depending on the number of worksheets in a spreadsheet Pin
lsconyer9-Apr-08 6:09
lsconyer9-Apr-08 6:09 
QuestionHow to write a text in a video files Pin
Smithakrishnan7-Apr-08 2:16
Smithakrishnan7-Apr-08 2:16 
GeneralCustom treeview woes Pin
lsconyer7-Apr-08 2:14
lsconyer7-Apr-08 2:14 
Generalgprs Pin
sbk197-Apr-08 1:52
sbk197-Apr-08 1:52 
GeneralRe: gprs Pin
Dave Kreskowiak7-Apr-08 4:24
mveDave Kreskowiak7-Apr-08 4:24 
GeneralRe: gprs Pin
Luc Pattyn7-Apr-08 4:40
sitebuilderLuc Pattyn7-Apr-08 4:40 
GeneralRe: gprs Pin
Dave Kreskowiak7-Apr-08 6:43
mveDave Kreskowiak7-Apr-08 6:43 
GeneralProblem with merging 2 DataTables Pin
kallileo7-Apr-08 1:26
kallileo7-Apr-08 1:26 
I'm trying merge DataTable "db2_table1" into to DataTable "db1_table1". But it doen't seem to work. Any help will be appreciated....

<br />
public class MergeTableClass<br />
    {<br />
        private OleDbDataAdapter da1, da2;<br />
        private DataSet ds1;<br />
<br />
        public void MergeTables(string connS1, string connS2)<br />
        {<br />
            string connString1 = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + connS1;<br />
            string connString2 = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + connS2;<br />
            OleDbConnection oleConn1 = new OleDbConnection(connString1);<br />
            OleDbConnection oleConn2 = new OleDbConnection(connString2);<br />
            string cmd1 = "SELECT *FROM db1_table1";<br />
            string cmd2 = "SELECT *FROM db2_table1";<br />
            da1 = new OleDbDataAdapter(cmd1, oleConn1);<br />
            da2 = new OleDbDataAdapter(cmd2, oleConn2);<br />
            ds1 = new DataSet();<br />
            <br />
            da1.Fill(ds1,"db1_table1");<br />
            da2.Fill(ds1,"db2_table1");<br />
                                    <br />
            ds1.Tables["db1_table1"].Merge(ds1.Tables["db2_table1"]);<br />
            da1.Update(ds1,"db2_table1");<br />
            ds1.AcceptChanges();<br />
            <br />
          }<br />
    }<br />

GeneralRe: Problem with merging 2 DataTables Pin
lsconyer7-Apr-08 2:17
lsconyer7-Apr-08 2:17 
GeneralRe: Problem with merging 2 DataTables Pin
kallileo7-Apr-08 2:29
kallileo7-Apr-08 2:29 
GeneralRe: Problem with merging 2 DataTables Pin
lsconyer7-Apr-08 2:39
lsconyer7-Apr-08 2:39 
GeneralRe: Problem with merging 2 DataTables Pin
kallileo7-Apr-08 2:49
kallileo7-Apr-08 2:49 
GeneralRe: Problem with merging 2 DataTables Pin
lsconyer7-Apr-08 2:54
lsconyer7-Apr-08 2:54 
GeneralRe: Problem with merging 2 DataTables Pin
kallileo7-Apr-08 3:11
kallileo7-Apr-08 3:11 
GeneralRe: Problem with merging 2 DataTables Pin
kallileo10-Apr-08 3:20
kallileo10-Apr-08 3:20 
QuestionC#:How to load max no of records in a combobox(more than 40000) Pin
kssknov7-Apr-08 1:18
kssknov7-Apr-08 1:18 
GeneralRe: C#:How to load max no of records in a combobox(more than 40000) Pin
darkelv7-Apr-08 1:37
darkelv7-Apr-08 1:37 
GeneralRe: C#:How to load max no of records in a combobox(more than 40000) Pin
kssknov7-Apr-08 1:42
kssknov7-Apr-08 1:42 
GeneralRe: C#:How to load max no of records in a combobox(more than 40000) Pin
Ashfield7-Apr-08 1:50
Ashfield7-Apr-08 1:50 
GeneralRe: C#:How to load max no of records in a combobox(more than 40000) Pin
darkelv7-Apr-08 2:36
darkelv7-Apr-08 2:36 
QuestionVery trivial question.. Pin
ptr2void7-Apr-08 0:51
ptr2void7-Apr-08 0:51 
GeneralRe: Very trivial question.. Pin
Xmen Real 7-Apr-08 0:59
professional Xmen Real 7-Apr-08 0:59 
QuestionRe: Very trivial question.. Pin
ptr2void7-Apr-08 1:08
ptr2void7-Apr-08 1:08 
GeneralRe: Very trivial question.. Pin
Xmen Real 7-Apr-08 1:18
professional Xmen Real 7-Apr-08 1:18 
GeneralProblem with printdialog Pin
D i x y7-Apr-08 0:31
D i x y7-Apr-08 0:31 

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.