2006-11-16 Miguel de Icaza <miguel@novell.com>
[mono.git] / web / odbc
index 681f13b1a8276a004ba5dbe83274ae37b9f16ff9..80143fcb7eb92bdda8e45dec4acab847a06bd097 100755 (executable)
--- a/web/odbc
+++ b/web/odbc
@@ -25,7 +25,7 @@
        
        <li>List of unixODBC <a href="http://www.unixodbc.org/drivers.html">drivers</a>
        
-       <li>List of <a href="http://ourworld.compuserve.com/homepages/Ken_North/odbcvend.htm">ODBC Vendors</a>
+       <li>List of <a href="http://www.sqlsummit.com/odbcvend.htm">ODBC Vendors</a>
        
        <li>ODBC can connect to various databases which has an ODBC driver installed:
        <ul> 
@@ -38,7 +38,7 @@
                  <li><a href="http://www.microsoft.com/sql/default.asp">Microsoft SQL Server</a> (
                  via <a href="http://www.freetds.org/">FreeTDS</a> on UNIX)</li>
                  <li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a></li>
-                 <li><a href="http://www.microsoft.com/office/access/default.asp">MS Access</a>
+                 <li><a href="http://www.microsoft.com/office/access">MS Access</a>
                  (via <a href="http://mdbtools.sourceforge.net/">MDB Tools</a> on UNIX)</li>
        </ul>
                
        
        <li>For Unix, you will need unixODBC or iODBC installed</li>
        
-       <li>Have acess to a <a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a> or
+       <li>Have acess to a <a href="http://www-306.ibm.com/software/data/db2/">IBM DB2 Universal Database</a> or
        you can download from IBM</li>
        
        <li>Read these web pages about Unix, ODBC, and IBM DB2
 
        <ul>
                <li><a href="http://www.unixodbc.com/doc/db2.html">unixODBC web page about IBM DB2</a></li>
-               <li><a href="http://www-3.ibm.com/software/data/db2/udb/ad/v8/cli/t0010406">IBM web page about unixODBC and DB2</a></li>
+               <li><a href="http://www-306.ibm.com/software/data/db2/udb/ad/v8/cli/t0010406.htm">IBM web page about unixODBC and DB2</a></li>
        </ul>
        </li>
        
        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);
        }