Add, modify, delete, query databases, students ' i
2016-08-23
0 0 0
no vote
Other
Earn points
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Data;using System.Collections; namespace test19 { class DataBase { public SqlConnection connection; Open the database//////private void open () {string connString = "Data Source= (local); Initial Catalog=OurShop; User=shihai1991;pwd=shihai315725"; connection = new SqlConnection(connstring); connection. Open(); }//////Close the database///private void close () {connection. Dispose(); connection. Close(); connection = null; }//////Input SQL commands, the DataReader object/////////public SqlDataReader GetDataRearer (string SqlString) {open (); SqlCommand mycom = new SqlCommand(sqlstring, connection); SqlDataReader Dr = mycom. ExecuteReader(); return Dr; } public DataSet GetDataSet(string sqlstgring) { open(); SqlCommand mycom = new S
c#
添加
修改
查询
数据库
中学生
基本
信息
Related Source Codes
No. 186: DX0110- Source code for community propert
0
0
no vote
No. 219: DX0149- Source code for community propert
0
0
no vote
Verification code identification
0
0
no vote
CSV data analysis tool
0
0
no vote
Source code of hospital medical record information
0
0
no vote
No comment