//创建临时表
//参数:ds(记录集)
//返回:临时表名temp+n
public string CreateTempTable(DataSet ds)
{
//读出当前临时表序号
if(Conn.State==ConnectionState.Closed)Conn.Open();
DataSet myds;
myds=Query(this.ServerId,"select tid from myconfig where id='1'");
int tempid=(int)myds.Tables["Result"].Rows[0]["tid"];
tempid++;
string TableName="temp"+tempid.ToString();
UpdateTable("UPDATE myconfig SET tid="+tempid.ToString()+" WHERE (id='1')");