在本Demo 中,我们可能会看到如何创建SqlConnection对象连接到Sql Server 2005,使用SqlCommand执行SQL查询或存储 过程,最后通过SqlDataAdapter填充DataSet或DataTable,将数据从数据库传输到 GridView。