S
sravan_reddy001
I had created an appication that serves as an address book
i used the SQL server 2000 as the database to store the contacts;
its only a single table that contains enitre details
now i thought of transferring the entire details from the table(name :
addressbook) in sql 2000 to the ms access table(table name :
addressbook)
i had provided the same column names and their types (all "varchar" in
SQL and all "text" in MS Access)
how to transfer the data table
i tried disconnected architecture, i do accpet connnected one also
the code that troubles me is :
drs = sqlds.Tables["ab"].NewRow();
drm = msads.Tables["ab"].NewRow();
for (int i = 0; i < sqlds.Tables["ab"].Rows.Count; i++)
{
drs = sqlds.Tables["ab"].Rows;
drm=drs;
msads.Tables["ab"].Rows.Add(drm);
msada.Update(msads, "ab"); //---------------> this
line is prob, it is saying that
// this row already belongs
to other table
// i used two datasets each for SQL and MSA and same table name in
both
}
i used the SQL server 2000 as the database to store the contacts;
its only a single table that contains enitre details
now i thought of transferring the entire details from the table(name :
addressbook) in sql 2000 to the ms access table(table name :
addressbook)
i had provided the same column names and their types (all "varchar" in
SQL and all "text" in MS Access)
how to transfer the data table
i tried disconnected architecture, i do accpet connnected one also
the code that troubles me is :
drs = sqlds.Tables["ab"].NewRow();
drm = msads.Tables["ab"].NewRow();
for (int i = 0; i < sqlds.Tables["ab"].Rows.Count; i++)
{
drs = sqlds.Tables["ab"].Rows;
drm=drs;
msads.Tables["ab"].Rows.Add(drm);
msada.Update(msads, "ab"); //---------------> this
line is prob, it is saying that
// this row already belongs
to other table
// i used two datasets each for SQL and MSA and same table name in
both
}