new OdbcConnection(String connectionString) : OdbcConnection « System.Data.Odbc « C# / C Sharp by API






new OdbcConnection(String connectionString)

 

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();      
  }
}

   
  








Related examples in the same category