B
Bill Szerdy
Here is the code I have and it does not work. Any
Suggestions?
public bool saveRackTypes(DataSet saveSet)
{
SqlDataAdapter myDataAdapter = new SqlDataAdapter();
try
{
myDataAdapter.SelectCommand = new SqlCommand
("SELECT * FROM RackType", _myConnection);
myDataAdapter.Update(saveSet, "RackType");
return true;
}
catch(Exception e)
{
// write to log
return false;
}
finally
{
myDataAdapter = null;
saveSet = null;
}
}
Thanks
Suggestions?
public bool saveRackTypes(DataSet saveSet)
{
SqlDataAdapter myDataAdapter = new SqlDataAdapter();
try
{
myDataAdapter.SelectCommand = new SqlCommand
("SELECT * FROM RackType", _myConnection);
myDataAdapter.Update(saveSet, "RackType");
return true;
}
catch(Exception e)
{
// write to log
return false;
}
finally
{
myDataAdapter = null;
saveSet = null;
}
}
Thanks