Creating Connection To ODBC : ODBC Connection : Database C# Source Code


Custom Search

C# Source Code » Database » ODBC Connection »

 

Creating Connection To ODBC








    



/*
 * C# Programmers Pocket Consultant
 * Author: Gregory S. MacBeth
 * Email: gmacbeth@comporium.net
 * Create Date: June 27, 2003
 * Last Modified Date:
 * Version: 1
 */
using System;
using System.Data.Odbc;

namespace Client.Chapter_13___ADO.NET
{
    public class CreatingConnectionToODBC
    {
        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# Source Code

 Navioo Database
» ODBC Connection