データベース内のテーブルからデータを取得するバイナリ dat ファイルからリスト ボックスを埋めるコードがアプリケーションに存在します。使用されているコードは
public string getclientid(string sectorid)
{
try
{
DataSet dsobj = new DataSet();
bllobj = new ConverterClass();
string retclientval = "0";
dsobj = bllobj.BinaryDeSerialize(strDataPath + "\\" + "BinaryClientlocation.dat");
DataRow[] dr = dsobj.Tables[0].Select("client_location_id in(" + locationid + ")");
if (dr.Length > 0)
{
foreach (DataRow drow in dr)
{
retclientval = retclientval + "," + drow["client_id"].ToString();
}
}
return retclientval;
}
新しい client を追加できるように、バイナリ ファイルが生成されるテーブルを見つける方法。使用する DBMS は Sql Server 2005 です。