TAGS
    asp.net 之ADO.NET操纵数据库
    ADO.NET提供了Connection来连接数据库,同时也提供了Command对象来查询数据库。同Connection对象一样,Command也有两种:OleDbCommand和SqlCommand.其区别同Connection对象。要操纵数据库,必须先使用Connection来连接到数据库,再创建一个Command来查询。有几种创建方式,例:SqlCommandcmd;stringstrCon="server=localhost;database=Northwind;Trusted_Connection=Yes;";stringstrqry="select&nbs...
    查看详情 | 2012.05.01