Creating Connection To ODBC : ODBC : ADO.Net C# Examples


C# Examples » ADO.Net » ODBC »

 

Creating Connection To ODBC









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




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo ADO.Net
» ODBC