我无法通过Web服务从oracle数据库获取数据集

时间:2013-04-04 12:06:24

标签: c# web-services oracle

我有这个,但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;
    }

怎么办?任何解决方案?

谢谢!

0 个答案:

没有答案