日期:2014-05-17 浏览次数:21042 次
[WebMethod(Description = "數據集")]
public string GetDatastring(string ALine)
{
OracleConnection myconn = this.GetConn();
GetStartTime(ALine);
DataSet dst = new DataSet();
string tmpSQL = @"select * from tbltmp where fline='{0}' ";
tmpSQL = String.Format(tmpSQL, ALine);
try
{
OracleDataAdapter dad = new OracleDataAdapter(tmpSQL, myconn);
//dad.FillSchema(dst, SchemaType.Mapped, "Temp");
dad.Fill(dst, "Temp");
//return dst;
string retv = DNDDSToCDS.AllstringToClientDataSet(dst, "Temp");
return retv;
}
finally
{
myconn.Close();
}
}