oledb

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

五迷三道 提交于 2019-12-10 09:07:46
问题 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

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

僤鯓⒐⒋嵵緔 提交于 2019-12-10 07:39:31
问题 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

VBA - Remove Password from OLEDB Connection String

ぐ巨炮叔叔 提交于 2019-12-09 17:07:21
问题 I have an excel file that contains a series of OLEDB connections leveraged by several pivot tables. I would like to create a VBA function that removes all password from that several connection string as the file is closed(so that the users password will not be persisted). First I thought all I need to do was set the "Save Password" property to false, something like this: Public Sub RemovePasswordByNamePrefix() Dim cn As Object Dim oledbCn As OLEDBConnection For Each cn In ThisWorkbook

How to export a DataGridView to Excel format in VB.NET

拈花ヽ惹草 提交于 2019-12-09 07:00:02
问题 I'm using OLE to connect to a database using VB.NET, and show the results in a DataGridView. I want to export the data that is in the DataGridView to an Excel format file, i.e., the user can save the content of the DataGridView as MS Excel file. 回答1: I found that copyfromrecordset is the fastest way. Dim xlApp As New Excel.Application Dim xlWBook As Excel.Workbook = xlApp.Workbooks.Add Dim XlSheet As Excel.Worksheet = CType(xlWBook.Worksheets("Sheet1"), Excel.Worksheet) With XlSheet 'insert

Reading Comma Delimited Text File to C# DataTable, columns get truncated to 255 characters

限于喜欢 提交于 2019-12-09 06:49:17
问题 We are importing from CSV to SQL. To do so, we are reading the CSV file and writing to a temporary .txt file using a schema.ini. (I'm not sure yet exactly why are are writing to this temporary file, but that's how the code currently works). From there, we are loading a DataTable via OleDB using the following connection string (for ASCII files). "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + sPath + ";Extended Properties=\"text;HDR=Yes;FMT=Delimited\""; The problem we are having is that

Delphi with SQL Server: OLEDB vs. Native Client drivers

回眸只為那壹抹淺笑 提交于 2019-12-09 06:37:59
问题 I have been told that SQL Native Client is supposed to be faster than the OLEDB drivers. So I put together a utility to do a load-test between the two - and am getting mixed results. Sometimes one is faster, sometimes the other is, no matter what the query may be (simple select, where clause, joining, order by, etc.). Of course the server does the majority of the workload, but I'm interested in the time it takes between the data coming into the PC to the time the data is accessible within the

SQL Server to MySQL data transfer

落爺英雄遲暮 提交于 2019-12-09 05:56:29
问题 I am trying to transfer bulk data on a constant and continuous based from a SQL Server database to a MYSQL database. I wanted to use SQL Server's SSMS's replication but this apparently is only for SQL Server to Oracle or IBM DB2 connection. Currently we are using SSIS to transform data and push it to a temporary location at the MYSQL database where it is copied over. I would like the fastest way to transfer data and am complication several methods. I have a new way I plan on transforming the

OleDB Data provider can not be found VBA/Excel

喜夏-厌秋 提交于 2019-12-09 03:16:55
问题 I am almost not familiar with VBA (have had some courses back at school and that's it). Now I need to connect to Oracle database (which is running on remote server) from Excel file. I've goggled around and found some examples. So, there is the following code I have written so far: Sub Try() Dim cn As New ADODB.Connection Dim rs As ADODB.Recordset Dim cmd As ADODB.Command Dim chunk() As Byte Dim fd As Integer Dim flen As Long Dim Main As ADODB.Parameter Dim object As ADODB.Parameter Stil =

Check if a database cell is empty first

三世轮回 提交于 2019-12-08 17:47:48
问题 I am accessing an MS Access 2007 database through C#, and I keep getting an exception whenever I try to read an empty cell. Specifically, I am trying to read a "Date/Time" cell that may or may not be empty. I am using OLE DB, and have filled a DataSet. None of these conditions work: DataSet dataSet = GetDataSet(); DataRow row = dataSet.Tables[0].Rows[0]; DateTime time = new DateTime(); time = (DateTime)row[5]; // Exception thrown How to check if the cell is empty before trying to assign it?

Check if Microsoft OLE DB Provider for Index Server (aka Provider=MSIDXS) is installed?

我是研究僧i 提交于 2019-12-08 12:58:04
问题 I use Windows Server 2008 R2 and ASP.NET 4.6.1. How can I check if Microsoft OLE DB Provider for Index Server (Provider= MSIDXS ) is installed ? Maybe get a list the OLEDB providers available in the system. 回答1: I try this code. I don't know now if applies to all 32bit and 64bit providers . Guid for CLSID OLEDB is C8B522D0-5CF3-11ce-ADE5-00AA0044773D internal static Guid IID_IUnknown = new Guid("00000000-0000-0000-c000-000000000046"); internal static Guid CLSID_DataLinks = new Guid("2206CDB2