http://www.ondotnet.com/pub/a/dotnet/2002/12/16/multiresultsets_1202.html?page=2http://www.fawcette.com/vsm/2003_01/magazine/features/beauchemin/default_pf.aspHOW TO: Return an Oracle Ref Cursor to a .NET DataReader Object by Using the .NET Managed Provider for Oracle
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q322160

解决方案 »

  1.   

    saucer:
    谢谢!我看了http://support.microsoft.com/default.aspx?scid=kb;EN-US;q322160
    的介绍,很好,就是for VB的,我用的是C#,
    所以“myCMD.Parameters.Add(New OracleParameter("io_cursor", OracleType.Cursor)).Direction = ParameterDirection.Output”在我这好像不灵啊,我没有找到Cursor的类型,请好人做到底,帮帮我.
      

  2.   

    what data provider are you using? see the other two articles
      

  3.   

    都看了,不是存款过程有问题,是VB我不懂,我用的是C#,我是不知如何定义参数类型,如:
    ywlcm.Parameters.Add("@workdate",OleDbType.Date);
    ywlcm.Parameters["@workdate"].Value=Dworkdate;可io_cursor该如何定义呢?
      

  4.   

    what data provider are you using? the one from Microsoft? or the one from Oracle?http://support.microsoft.com/default.aspx?scid=kb;en-us;309361
      

  5.   

    string DbConnstr="Provider=OraOLEDB.Oracle;Password=gjkh;Persist Security Info=True;User ID=gjkh;Data S" + "ource=gjkh.com;ConnectionTimeout=0;Extended Properties=\"\"";
      

  6.   

    I mean library classes, System.Data.OleDb or System.Data.OracleClient or ODP.NET from Oracle?
      

  7.   

    System.Data.OleDb,我想用System.Data.OracleClient,可惜不会
      

  8.   

    saucer,在吗,帮帮忙吧,要不我明天又要浪费了,分不够,我再加。
      

  9.   

    can you try the example in
    http://support.microsoft.com/default.aspx?scid=kb;en-us;309361you need to change the connection string
      

  10.   

    不会吧,Provider=MSDAORA和Provider=OraOLEDB.Oracle有多大区别啊,我现在整个项目都接近尾声了,难道真的没办法了吗
      

  11.   

    能告诉我Provider=MSDAORA和Provider=OraOLEDB.Oracle有多大区别啊?
      

  12.   

    >>>能告诉我Provider=MSDAORA和Provider=OraOLEDB.Oracle有多大区别啊?the former uses a driver written by Microsoft, the latter uses a driver written by OracleOLEDB doesn't seem to support cursor type, use OracleClient or ODP.NET
      

  13.   

    试试 
    SqlDataAdapter da=new SqlDataAdapter();
    SqlCommand cmd=new SqlCommand();
    LS ls = new LS();
    cmd.Connection=new SqlConnection(ls.linkstring);
    cmd.CommandType=CommandType.StoredProcedure;
    cmd.CommandText = "Procedure1";   //存储过程名称
    SqlParameter myParm = cmd.Parameters.Add("@uid",SqlDbType.Char,30);
    myParm.Value = uid;
    da.DeleteCommand = cmd;
             DataSet ds = null;
    da.Fill(ds,"tablename");