-
sql 通用数据库类示例代码
/// /// SQL server 类库 /// 版本 1.00 修改时间 2016-01-15 /// 版本 1.01 修改时间 2016-01-18 修改内容 增加服务器时间到毫秒的说明 //数据库连接字符串(web.config来配置),多数据库可使用DbHelperSQLP来实现. public static string connectionString; /// 构造函数(初始化) /// 构造函数(初始化) /// /// public Class_数据库SQL(string connect) { connectionString = connect; } /// SQL查询返回DataSet /// SQL查询返回DataSet /// /// SQL语句 /// 返回DataSet数据集的表名 /// public DataSet SQL_Select_DataSet(string CmdString1, string 表名) { using (SqlConnection connection = new SqlConnection(connectionString)) { using (SqlDataAdapter SqlDA = new SqlDataAdapter(CmdString1, connection)) { try { using (DataSet DataSet1 = new DataSet()) { connection.Open(); SqlDA.Fill(DataSet1, 表名); if (DataSet1.Tables.Count == 0) { Thread.Sleep(100); SqlDA.Fill(DataSet1, 表名); } return DataSet1; } } catch (System.Data.SqlClient.SqlException e) { connection.Close(); throw e; } } } } public void SQL_Select_DataSet_SAVE(DataSet DataSet1,string CmdString1,string 表名) { using (SqlConnection connection = new SqlConnection(connectionString)) { using (SqlDataAdapter SqlDA = new SqlDataAdapter(CmdString1, connection)) { try { using (DataSet DataSet11 = new DataSet()) { connection.Open(); SqlDA.Fill(DataSet11, 表名); if (DataSet11.Tables.Count == 0) { Thread.Sleep(100); SqlDA.Fill(DataSet11, 表名); } DataSet1.AcceptChanges(); SqlDA.Update(DataSet11.GetChanges()); } } catch (System.Data.SqlClient.SqlException e) { connection.Close(); throw e; } } } }。。。
- 2016-03-25下载
- 积分:1
-
rhebfs
C语言,显示使用 ARGC , ARGC 命令行参数的实例 不错(C language, shows that using the arg C, arg c. good command line parameters of instance)
- 2017-04-27 18:56:21下载
- 积分:1
-
C# 结合TXT实现全国城市查询功能
C# 结合TXT实现全国城市查询功能
- 2015-01-08下载
- 积分:1
-
renshi
VC++编写的人事管理系统,包括数据库的操作与配置,供大家参考(VC++ written in the personnel management system, including the operation and configuration database for your reference)
- 2011-07-10 16:55:43下载
- 积分:1
-
COM TEST
说明: 基于STM32F103单片机的串口通信测试源码(Serial Communication Test Source Based on STM32F103 Single Chip Microcomputer)
- 2020-06-23 13:20:02下载
- 积分:1
-
vc坦克
VC++坦克大战带地图编辑器(游戏大赛一等奖)
VC++坦克大战,曾是游戏大赛一等奖作品,带音乐、带地图编辑器;游戏可以单人玩和双人玩。想信你在小时候玩过这游戏,很过瘾!地图编辑器是用VB写的,有了它你可以自己制造地图导入坦克游戏中。本游戏源码在VC6下顺利编译,需要注意,请将生成的文件放到根目录下也就是和声音资源及地图资源的目录是平级的,这样才能确保运行。
- 2022-10-22 22:05:04下载
- 积分:1
-
ICP-algorithm-paper-collections
花了大量时间找到的ICP算法领域中外论文集,里面包括最经典的那些ICP算法,以及其他一些改进的ICP算法。这些资料对于研究这个领域的人员应该会有很大的帮助。(Spent a lot of time to find the areas of foreign proceedings ICP algorithm, which includes the most classic ones ICP algorithm, as well as other improvements ICP algorithm. These data for the study of the field staff should be of great help.)
- 2020-12-28 15:39:01下载
- 积分:1
-
stm32多级菜单实现12864
stm32+freertos实现多级菜单按键翻页,汉字字库(STM32 + FreeRTOS realizes multi-level menu button page turning and Chinese character library)
- 2018-12-10 19:30:46下载
- 积分:1
-
T_Features
使用OPENCV实现的Tamura纹理特征,基于灰度共生矩阵的纹理特征(Use the OPENCV to achieve Tamura texture features based on GLCM texture features)
- 2012-06-14 22:48:51下载
- 积分:1
-
bseeelj-and-hankel-function
用于求解各阶贝塞尔函数和汉克尔函数零点,希望对大家有帮助。(besselj and hankel functions)
- 2014-08-19 21:22:19下载
- 积分:1