Microsoft
Software
Hardware
Network
Question : Populate a DataTable from another DataTable
I have a DataTable (dt) populated from a CrossTab query so I can not do this in SQL.
I need to change the DataType and ColumnName for certain columns.
I made a DataTable.Clone() (dtClone) of dt This of course is a empty table so I can can change the DataType and ColumnNames
Now how do I poulate dtClone from dt?
I could also populate dtClone from the original datasource if neccessary.
Thanks forthe help,
RAlph
Answer : Populate a DataTable from another DataTable
This "should" work!!
foreach (DataRow dr in dt.Rows)
{
CloneDT.ImportRow(dr);
}
But cloneDT is empty!!
I tried using a new empty DataTable but that got the same results no records returned.
Random Solutions
I am also trying to connect MS Access to NCR Teradata. I have not been able to connect through ADODB connection - when I try to open the connection I get this error: "Can't find host [MyServer]Cop1
isa server
handling empty textboxes
How can I allow regular domain users update their own Active DIrectory information?
IMPORT DATA TO ANOTHER DATABASE
Access 2007 Report Showing ID (Primary Key) - How Can I Show Value?
Microsoft OLE DB Provider for SQL Server error '80040e07'
Using FTYPE COMMAND in a batch file how to include "%1" by escaping the % sign.
Need some help with printing PrintDialogbox
How to print integers in C#