摘要:
1.创建连接数据的链接字符串string source="server=(local);"+"integrated security=SSPI;"+"database=Northwind";server=(local)表示要连接的服务器integrated security=SSPI表示这个参数使用Windows Authentication连接到数据库,最好在源代码中使用这个参数,而不是用户名和密码database=Northwind表示要连接到数据库的实例,即要连接的数据库名称2.连接到数据库SqlConnection con=n 阅读全文
posted @ 2014-01-24 17:56
天荒地老
阅读(444)
评论(0)
推荐(0)

浙公网安备 33010602011771号