摘要: //建立sql连接类SqlConnection cnn = new SqlConnection();//建立command类SqlCommand cmd = new SqlCommand();//sql连接字符串,datasource是服务器所在地址,uid是sql模式登录用户名,password是登录密码 iniitial catalog是服务器名;cnn.ConnectionString = "Data Source=192.168.1.32;uid=sa;password=123456;initial catalog=test1";//打开数据库连接cnn.Open( 阅读全文
posted @ 2012-07-05 12:02 Ro_s__ 阅读(166) 评论(0) 推荐(0) 编辑