昨天更新系统的bug,据说是微软要搞事情啊 删除以下更新就行: win7 KB4041678 KB4041681 SERVER 2008 R2 KB4041678 KB4041681 WIN10 KB4041676 KB4041691 SERVER 2016 KB4041691 ...
分类:
数据库 时间:
2017-10-13 15:21:26
阅读次数:
1041
操作系统:使用的是64位的Windows Server 2008 解决办法: 这是由于该计算机上没有安装Microsoft Access Database Engine组件,该组件帮助在现有的Microsoft Office文件与其他数据源之间传输数据。 在向软件中导入数据时,如果数据源选用Exce ...
分类:
数据库 时间:
2017-10-12 21:32:17
阅读次数:
385
话不多说直接来干货。。。。 连接类 Excel 通过 OleDb 类进行操作。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Da ...
分类:
Web程序 时间:
2017-10-11 13:03:04
阅读次数:
238
服务器版本:Windows Server 2008 R2 64位、IIS7 已经安装了Microsoft Access database engine 2010 X64。 在服务器上可以用SQL Server opendataset打开Excel 2007格式文件,也可以用WinForm使用oled ...
分类:
数据库 时间:
2017-09-15 13:46:26
阅读次数:
205
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Windows.Forms;
usingSystem.Data;
usingSystem.Data.OleDb;
namespace..
不知不觉博客园园林都两年多了,我是今年毕业的应届生,最近公司项目需要改动,很多的数据需要导入,很多的实体类需要些。考虑到这些问题自己写了两个winform版的小工具,一个是读取Execl数据导入数据库,另一个是自动生成实体类,以及增,删,改的方法。今天先分享Execl数据导入数据库。基本上没什么界面 ...
分类:
数据库 时间:
2017-09-10 13:36:53
阅读次数:
252
1. 配置 DataAdapter 以检索信息 1.1. DataAdapter ? 数据适配器是数据集与数据源交互的桥梁 –使相当于数据源本地拷贝的数据集可以与数据源之间进行交互。 ? 为数据库提供的主要两种数据适配器 – SqlDataAdapter:不经过OLEDB层直接与SQLServer交 ...
分类:
Web程序 时间:
2017-09-01 00:55:48
阅读次数:
309
// load table from dbstring sql = "select * from products";string conn = GetConnectionString();System.Data.OleDb.OleDbDataAdapter da = new System.Data ...
分类:
其他好文 时间:
2017-08-28 23:42:55
阅读次数:
176
using System; using System.Data.OleDb; namespace ConsoleApplication { class Program { static void Main(string[] args) { string strConnection = "Provid... ...
分类:
数据库 时间:
2017-08-27 16:14:41
阅读次数:
235
{System.InvalidOperationException: 假设分配给命令的连接位于本地挂起事务中。ExecuteReader 要求命令拥有事务。命令的 Transaction 属性尚未初始化。 在 System.Data.OleDb.OleDbConnectionInternal.Val ...
分类:
其他好文 时间:
2017-08-20 18:41:36
阅读次数:
650