I've backup from a sqlserver created with this procedure:
protected void WriteXML(string tableName)
{
using (SqlConnection cnn = new SqlConnection(ConnectionString))
{
using (SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM
[" + tableName + "];", cnn))
{
cnn.Open();
DataSet ds = new DataSet();
da.Fill(ds, tableName);
ds.WriteXml(Server.MapPath("App_Data\\" + tableName + ".xml");
ds.WriteXmlSchema(Server.MapPath("App_Data\\" + tableName + ".xslt");
cnn.Close();
}
}
}
Now I want to restore this database. Is there an easy way to do this?