Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public void Test_A2()
{
try
{
string sTable = "Test_A2";
string sCon = "user id=sa;Password=admin;Initial Catalog=testdb;Data Source=localhost;Connect Timeout=5";
SqlConnection myConn = new SqlConnection(sCon);
SqlDataAdapter myDataAdapter = new SqlDataAdapter();
myDataAdapter.SelectCommand = new SqlCommand("SELECT TOP 0 * FROM " + sTable, myConn);
SqlCommandBuilder custCB = new SqlCommandBuilder(myDataAdapter);
myConn.Open();
DataSet DS = new DataSet("DataSetName");
myDataAdapter.FillSchema(DS,SchemaType.Source,sTable);
myDataAdapter.Fill(DS,sTable);
DataSet ds2 = new DataSet();
ds2.ReadXml("C:\\ds.xml");
myDataAdapter.Update(ds2, sTable);
myConn.Close();
myConn.Dispose();
myDataAdapter.Dispose();
ds2.Dispose();
}
catch(Exception e)
{
//Log.Write(e.GetType() + " : " + e.Message);
}
}
<?xml version="1.0" standalone="yes"?>
<DataSetName>
<Test_A2>
<model>TestModel2</model>
<sn>TestS'N"2</sn>
<ds>ds2</ds>
<mycheck>true</mycheck>
</Test_A2>
<Test_A2>
<model>George Test</model>
<sn>TestS'N"2</sn>
<ds>DS2</ds>
<mycheck>true</mycheck>
</Test_A2>
<Test_A2>
<model>TestSN</model>
<sn>TestModel</sn>
<ds>TEST>>></ds>
<mycheck>true</mycheck>
</Test_A2>
</DataSetName>