using (SqlConnection con = new SqlConnection(@"server=PC-20121129MSJB\SQL2005;uid=sa;pwd=;database=master"))//创建数据库连接对象 { SqlDataAdapter da = new SqlDataAdapter(//创建数据适配器对象 "select name from sysdatabases ", con); DataTable dt = new DataTable("sysdat
数据库原理及应用实验一(创建数据库和表),一、 实验目的 熟悉SQL Server Management Studio;掌握通过SQL Server Management Studio管理数据库的方法;掌握数据库及其物理文件的结构关系;掌握通过SQL Server Management Studio管理数据表的方法。 掌握查询分析器的使用;掌握通过SQL语句创建表的方法;掌握通过SQL语句创建表的方法;掌握通过SQL语句修改表结构的方法;掌握通过SQL语句添加、修改、删除表数据的方法。