摘要: SqlConnection con = new SqlConnection(@"Data Source=.\sqlexpress;Initial Catalog=Train;Integrated Security=True"); string sql = "select * from TrainInfo where trainNum='"+txtTrainNum.Te... 阅读全文
posted @ 2008-11-23 20:56 华仔2008 阅读(360) 评论(0) 推荐(0) 编辑
摘要: --创建数据库 create database Train on primary ( name='Train_data', filename='D:\练习\TrainDB\Train_data.mdf' ) log on ( name='Train_log', filename='D:\练习\TrainDB\Train_log.ldf' ) go use Train go creat... 阅读全文
posted @ 2008-11-23 20:48 华仔2008 阅读(1040) 评论(1) 推荐(0) 编辑