Creating Connection To ODBC : ODBC « ADO.Net « C# / CSharp Tutorial






using System;
using System.Data.Odbc;

class MainClass
{
  static void Main(string[] args)
  {
    OdbcConnection MyConnection = new OdbcConnection("DRIVER={MySQL};SERVER=TESTSRV;DATABASE=MyDatabase;UID=root;PWD=\"\"");
    MyConnection.Open();      
  }
}








32.48.ODBC
32.48.1.Creating Connection To ODBC
32.48.2.Connecting to a Text File
32.48.3.Connecting to an ODBC Data Source
32.48.4.Connect to SqlServer using OdbcConnection
32.48.5.Odbc Provider