我找了找资料,但零星的不是很清楚,好像有人说,默认是1个结果集,如果要接多个结果集的数据,需要在连接参数的Provider里面设定,我现在
Driver={SYBASE SYSTEM 11};Srvr=myServerAddress;Uid=myUsername;Pwd=myPassword;Database=myDataBase;
用的是c#2005连sybase11,通过sql语句接受数据都没问题,就是调用存储过程的时候不行,请高手给个能接多结果集的例子,非常感谢,
邮箱:[email protected]

解决方案 »

  1.   

    With SQL Server 2005 and Visual Studio 2005, you can return multiple result sets using only one connection. When creating a new connection string, MultipleActiveResultSets is true by default. By setting MultipleActiveResultSets to false you need to open multiple connections to return data. By setting MultipleActiveResultSets to true, you need only one connection to return multiple result sets. 
    <add key="myMarsConnectionString" value="Data Source=.\SQL2005;AttachDbFilename=D:\C#sample\CS101SamplesAll\CS101SamplesDataAccess\Using Multiple Active Result Sets with SQL Server 2005\MultipleActiveResultSets\Database\Company.mdf;Integrated Security=True;User Instance=True;MultipleActiveResultSets=True" />
      

  2.   

    有没有c#和sybase连接的程序片段,请的朋友请费下心,这里很急啊,谢谢了