0

我有这个,但 DataSet 不会填充

[WebMethod(Description = "")]
    public DataSet OracleDataset()
    {
        OracleConnection conn = new OracleConnection("Provider=OraOLEDB.Oracle;Data Source=razvoj;User Id=kr;Password=kr;");

        OracleDataAdapter adapter = new OracleDataAdapter("SELECT * FROM FBARZN", conn);
        DataSet ds = new DataSet();

        adapter.Fill(ds);

        return ds;
    }

该怎么办?有什么解决办法吗?

谢谢!

4

0 回答 0