oledb

OLEDB connection in R

孤者浪人 提交于 2019-12-05 18:05:17
问题 Does anyone know of any way to connect to an OLEDB data source directly in R? I've tried google, CRAN and rseek with no luck whatsoever. 回答1: A good alternative to both ODBC and OLEDB for saving data to SQL Server is to BCP using the rsqlserver package that is on GitHub here: https://github.com/agstudy/rsqlserver You can pull down data via ODBC if you'd like which would be pretty fast, but sending data to SQL Server via ODBC will take a long time (in my tests), so BCP is a great option. It's

SQL Server CE 3.5 update row error DB_E_ERRORSOCCURRED column error is DBSTATUS_E_SCHEMAVIOLATION

若如初见. 提交于 2019-12-05 15:52:21
I am investigating moving a small and simple SQL Server database to SQL Server CE and am currently using a small prototype to investigate basic operations with SQL Server CE with the following operations in mind: (1) programmatically create a table, (2) insert new records, (3) read existing records, and (4) update existing records. The prototype is having a problem with updating existing records when using the Accessor and the bound members of the Accessor struct. The select statement works correctly returning the row along with the data. I can update the Accessor bound members however when I

Solve “Microsoft.ACE.OLEDB.12.0” provider issue without installing “Microsoft Access Database Engine”

一笑奈何 提交于 2019-12-05 15:13:09
I am importing some data from MS-Excel to C#. When I deployed this application on my local server (IIS 7) I got following error. The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine I installed the "Microsoft Access Database Engine" on local server to solve this issue. Now when I deployed my application on remote server. I got same error. Installing "Microsoft Access Database Engine" on live server is not allowed for security reason. My Question is that is there any way to solve this issue from .dll (adding some reference to the project) or any other way. I had a

C#.Net, Get the OLEDB provider version

♀尐吖头ヾ 提交于 2019-12-05 12:29:18
I need to Identify the Installed OLEDB provider version. before reading an Excel file. How can I do that? You can use the OleDbEnumerator.GetElements Method . http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbenumerator.getelements.aspx to enumarate the drivers. You ask the versions of them maybe this link helps: http://dotnetref.blogspot.com/2009/04/getting-version-of-oledb-provider.html Have a look in the registry and see if the Jet OLE DB provider is there The Path is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines Then you will have Jet 4.0 Engines Jet 2.0 Jet 3.0 Jet 4

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

佐手、 提交于 2019-12-05 12:20:44
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? 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 both read and write Excel files with custom cell style formatting. I have used OleDB for reading very

Using OLEDB / Microsoft Jet driver causes “Number stored as text” in excel file

为君一笑 提交于 2019-12-05 12:19:13
I'm having a problem using OLDEDB from C# to write entries into an excel file. Essentially I want to use an excel template file for formatting some information. The idea is that users can run a query, it'll populate the results into an excel file, where the user can then continue to use excel to maniulate the results. To do this, I create a "raw_data" tab and use OLEDB to write to it like a table. However I'm running into a problem where the preset calculations. Some columns are text, others are numbers and forumals should reference these columns as soon as the sheet is opened. Excel Version

How to install DB2 ODBC or OLEDB Driver

爱⌒轻易说出口 提交于 2019-12-05 10:30:18
I have already installed IBM DB2 Database Express on Windows 7 Pro. Now, I would like to create my C# code in order to select/insert/update records in DB2 tables. I spend the whole day searching over the internet for links on how to install either OLEDB or ODBC Driver in order to connect to DB2 database. But without success!!! So, i'm wondering if somebody can help me or send me a useful link to download driver. Thank you Download: In the webpage: http://www-933.ibm.com/support/fixcentral/legacy/ With parameters "Information Management" - "IBM Data Server Client Packages" - Custom version and

C# Microsoft Access Parameterized Queries not doing its job

被刻印的时光 ゝ 提交于 2019-12-05 10:23:22
I have already done research into this, and though the below questions are similar, I have tried them all, but none seems to solve my issue. Proper way of getting a data from an Access Database using parameters inserting data into access database Getting Data from Access into a text box in C# by clicking a button UPDATE query on Access Database not working C#.NET passing parameter to access query from c# Parameterized query for inserting values Here is the part of the code that is relevant: private void LoadDetails(int index) { try { connection.Open(); command = new OleDbCommand("SELECT * from

Using OleDbConnection to Read Tab-Separated File

时光毁灭记忆、已成空白 提交于 2019-12-05 08:33:43
My tab-delimited file is something like this: ISO ISO3 ISO-Numeric AD AND 20 I've been trying the following code with no luck. OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source= |DataDirectory|;Extended Properties='text;HDR=Yes;FMT=TabDelimited'"); OleDbCommand cmd = new OleDbCommand(@"SELECT * FROM countryInfo.txt", cn); OleDbDataAdapter da = new OleDbDataAdapter(cmd); cn.Open(); DataTable dt = new DataTable(); da.Fill(dt); Here's a screenshot of the Dataset Visualizer. Its obviously not the output i'm after. Any suggestions? Here's my Schema.ini file.

Excel Cell Formatting Problem

人走茶凉 提交于 2019-12-05 08:12:19
I'm using the OleDB DataReader to get data from my excel files (but this problem occurs in DataTable.Fill as well). The thing is that I have a column that should return strings. All's fine and working but recently, an issue came up, because the column's cells had different formats. Some were in numbers and others in text. When I checked using dataReader.GetSchema() it showed that the column in question was inferred as type System.String. The problem with this was that all non-text cells were immediately set to null. Is there a way to suggest to the reader that that column should just parse the