10-31-2011، 03:23 PM
کد:
OleDbConnection conn = new OleDbConnection("Conection String");
OleDbDataAdapter dadt= new OleDbDataAdapter("Command Text", conn);
DataSet Ds = new DataSet();
dadt.Fill(Ds, "TableName");
Ds.WriteXml("XmlAddress");
conn.Close();