oledb

How to get OleDb for reading excel in asp.net core project

被刻印的时光 ゝ 提交于 2019-12-22 08:47:14
问题 Is there any way of reading excel data in ASP.NET Core (built over .Net Core)? I am not able to refer OleDB in project.json of my .net core project. Is there any other way of doing this? 回答1: Do you really need OleDB to read Excel today? To my opinion, OleDB is a bit outdated. There are opensource libraries to work with Excel files which are much easier to use and provide a lot of flexibility. ClosedXML (https://closedxml.codeplex.com/) is one such library. It's well documented and allows to

System.Data.OleDb.OleDbConnectionInternal..ctor: Unspecified error

假如想象 提交于 2019-12-22 05:22:14
问题 After several hours (~6 hours Win7 64bit, ~24hours WinXP) of running multi-threaded (.NET Framework 3.5 SP1 WinForms) desktop application using .mdb files as backend I'm getting the following runtime error: Exception -> Unspecified error StackTrace -> at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool

C# Open DBF file

匆匆过客 提交于 2019-12-22 04:46:21
问题 I'm having a problem opening a DBF file - I need to open it, read everything and process it. I tried several solutions (ODBC/OLEDB), several connection string, but nothing worked so far. The problem is, when I execute the SQL command to get everything from the file, nothing gets returned - no rows. What's even more odd, the content of the DBF file being opened get deleted. See the code I have: public override bool OpenFile(string fileName, string subFileName = "") { OleDbConnection con = new

OleDB INSERT command error

喜夏-厌秋 提交于 2019-12-22 04:28:31
问题 I have a database (i use MS ACCESS) I have this insert code, I can read data but got error when writing, I follow instruction but it didn't work here is my code OleDbConnection con = new OleDbConnection(@" provider=Microsoft.ace.Oledb.12.0; data source=\\sisc-erelim\4_Printing\VTDB\DB\VirginiTEADB2.accdb; Persist Security Info=False"); private void button1_Click(object sender, EventArgs e) { try { OleDbCommand cmd = new OleDbCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText =

There is insufficient system memory in resource pool 'internal'

时间秒杀一切 提交于 2019-12-22 02:02:10
问题 SQL Server 2008 Linked Server and ad-hoc INSERTs cause a rapid memory leak which eventually causes the server to become non-responsive and ends with the following error: Msg 701, Level 17, State 123, Server BRECK-PC\SQLEXPRESS, Line 2 There is insufficient system memory in resource pool 'internal' to run this query. Location: qxcntxt.cpp:1052 Expression: cref == 0 SPID: 51 Process ID: 1880 The server remains non-responsive until SQL Server is restarted. Software in use: Windows Vista Ultimate

What is the best and fastest way to write into Excel file using C#?

让人想犯罪 __ 提交于 2019-12-21 17:47:04
问题 I am trying to write into excel file using OLEDB (without automation). I have around 500 rows of data which I get from some other application and then write into Excel file one by one using 'INSERT INTO..' Query. I am sure that there is no delay in reading data from the other application. I checked that. The total time taken to write into the excel file for 500 rows in around 3 minutes. This is too much. This is definitely because of the file write operation. What would be the best way to

What is the difference between ODBC and OleDB?

三世轮回 提交于 2019-12-21 04:21:38
问题 I found this question here: OLEDB v/s ODBC Which gave me more information, but did not really answer the question I'm asking, so I shall proceed from there. I am working in C#. I'll spare you the long story about how I arrived at this conundrum, but basically I'm trying to decide between ODBC and oleDB. We work with a lot of different clients who have vastly varied Databases (some SQL, some oracle, some something else that I've never heard of and didn't bother to remember the name of) Now,

What is the difference between ODBC and OleDB?

我们两清 提交于 2019-12-21 04:21:25
问题 I found this question here: OLEDB v/s ODBC Which gave me more information, but did not really answer the question I'm asking, so I shall proceed from there. I am working in C#. I'll spare you the long story about how I arrived at this conundrum, but basically I'm trying to decide between ODBC and oleDB. We work with a lot of different clients who have vastly varied Databases (some SQL, some oracle, some something else that I've never heard of and didn't bother to remember the name of) Now,

how to resolve DTS_E_OLEDBERROR. in ssis

耗尽温柔 提交于 2019-12-20 19:38:11
问题 In an ssis package consists of data flow task,contains OLEDB source and OLDB Target ..provider is sql native client..This used to run fine ..but now got an error as shown below.. Please tell me how to resolve it ?changing it to ado.net? OS :windows 7 professional and the db is sql server 2000 [Axe_Data [737]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult:

How to query a remote MS ACCESS .mdb database using C#

不问归期 提交于 2019-12-20 07:24:18
问题 I am trying to use C# to query a mote MS ACCESS database .mdb file. I can successfully query it when copying the file to my local machine. I just want to put the file remotely, so my the client side program doesn't contain raw data. static string m_path = "http://www.xyz.com/temp/"; static string m_connWords = "Provider=Microsoft.JET.OLEDB.4.0;data source = " + m_path + "data.mdb"; I skip the rest of code doing connection, reader, and query. I am sure when I have my m_path change to a local