代码连接方法:string strCon="Driver=数据库提供程序名;Server=数据库服务器名;Trusted_Connection=yes;Database=数据库名;";OdbcConnection odbcconn=new OdbcConnection(strCon);