X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=web%2Foledb;h=1dabe6244edd667b6a2b03d01c5cc1fbb4c9cdc5;hb=fd48a5de6bf3832cb52a8cb5efbb7feb7baa1d60;hp=02b151fc05ce6e7675b075a8bae6e3bb872708d7;hpb=726fef391cc423f85f0dd1a40a00c63cdfb7a570;p=mono.git diff --git a/web/oledb b/web/oledb index 02b151fc05c..1dabe6244ed 100755 --- a/web/oledb +++ b/web/oledb @@ -27,6 +27,14 @@
  • Does not support trusted connections
  • + +
  • Bugs with Mono or the data provider should be reported + in Mono's Bugzilla here. If you + do not have Bugzilla user account, it is free + and easy to + create one here.
  • + + ** Current Status @@ -87,6 +95,7 @@ "Password=fun2db"; IDbConnection dbcon; dbcon = new OleDbConnection(connectionString); + dbcon.Open(); IDbCommand dbcmd = dbcon.CreateCommand(); // requires a table to be created named employee // with columns firstname and lastname @@ -100,8 +109,8 @@ dbcmd.CommandText = sql; IDataReader reader = dbcmd.ExecuteReader(); while(reader.Read()) { - string FirstName = reader["firstname"]; - string LastName = reader["lastname"]; + string FirstName = (string) reader["firstname"]; + string LastName = (string) reader["lastname"]; Console.WriteLine("Name: " + FirstName + " " + LastName); }