摘要: VS2010连接SQL Server 2008并执行查询操作先在SQL Server 2008中建一个Student数据库,含有一个表student,4个字段,分别为姓名(varchar)学号(varchar)性别(varchar)年龄(int),并指定一个用户登录该数据库,用户名为cam,密码为123456,注意要修改cam用户的权限 新建控制台应用程序,连接数据库,输出student表中的所有字段,并执行插入删除操作[csharp] view plaincopyprint?usingSystem;usingSystem.Data;usingSystem.Data.SqlClient;usi 阅读全文
posted @ 2013-08-19 15:46 三颗咸鸭蛋 阅读(945) 评论(0) 推荐(0) 编辑