随笔分类 -  ADO.NET

ADO.NET 基础知识
摘要:1、与ODBC,OLE DB。ADO 可访问非关系DB多种接口,可访问关系型数据库。2、ODBC提供了一组对数据库访问的标准API(应用程序编程接口),处理底层数据,让高层不用例会那种数据库接口。ODBC的数据源就是Access、MSSQl、Oracle、MYSQL3、ODBC就是一种分层思想,OLE DB操作ODBCOLE DB标准时实现一组C++API函数,OLE DB符合COM标准、基于对象的。4、(类似DAO和RDO)ADO是一种对象模型,实现与语言无关,ADO出现了OLEDB标准的API事C++API,只能提供C++语言调用。****************ADO是对oledb数据源 阅读全文

posted @ 2014-04-07 16:59 钟灵毓秀的家园

ADO.NET SqlHelper
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Configuration;using System.Data.SqlClient;using System.Data;namespace StudentMgr{ public static class SqlHelper { public static readonly string connstr = ConfigurationManager.Conne... 阅读全文

posted @ 2014-04-05 16:08 钟灵毓秀的家园

ADO.NET 数据查询和数据操作
摘要:1 //数据查询 DT-PC\\SQLEXPRESS 2 public static DataTable MyQuery(string str) 3 { 4 SqlConnection conn = new SqlConnection... 阅读全文

posted @ 2014-03-31 13:58 钟灵毓秀的家园 阅读(297) 评论(0) 推荐(0)

导航