[Mono-list] Oracle+Mono

AJlekceu P ajlekceu_p at yahoo.com
Tue Feb 13 04:16:00 EST 2007


Mono 1.2.3 
OS: Ubuntu 6.0 
Oracle client 10.2.0   
 
string connString = "User ID=user;Password=password;Data Source=bux"; 
  OracleConnection conn = new OracleConnection(connString); 
  OracleCommand cm = conn.CreateCommand(); 
  
  cm.CommandText = "CATEGORY_PKG.sellist"; 
  cm.CommandType = System.Data.CommandType.StoredProcedure; 
  cm.Parameters.Add("c", OracleType.Cursor).Direction = ParameterDirection.Output; 
  OracleDataAdapter da = new OracleDataAdapter(cm); 
  DataSet ds = new DataSet(); 

  try 
  { 
      da.Fill(ds); 
  } 
  catch (OracleException e) 
  { 
      MessageBox.Show("Error:" + e.Message, "Error", 
       MessageBoxButtons.OK, MessageBoxIcon.Error); 
      return false; 
  } 
  
///------------------ 
work catch, e.Message is null. In Visual Stuido 2005 that does work 
 
 why not woking da.fill ??  ');  if( Nabble.otherAd & Math.random() > 0.5 ) {   document.write('');   document.write('');  } else {   google_ad_client = "pub-6703598369329977";   google_ad_width = 728;   google_ad_height = 90;   google_ad_format = "728x90_as";   google_ad_type = "text";   google_ad_channel = Nabble.getChannels();   google_color_border = "336699";   google_color_bg = "FFFFFF";   google_color_link = "0000FF";   google_color_text = "000000";   google_color_url = "008000";   document.write('');   document.write('');  }  document.write('
'); } //-->


 	 
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070213/e26634ff/attachment-0001.html 


More information about the Mono-list mailing list