oledb

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

点点圈 提交于 2019-12-03 09:12:18
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 fields with more than 255 characters get truncated. I've read online about this problem and it seems that

Does DDE still matter? Which are the alternatives?

ⅰ亾dé卋堺 提交于 2019-12-03 07:22:10
I'm working on a stock exchange information platform and we are thinking in provide a link between our platform and home-made Excel files. The financial market is still bound to the old DDE server approach, now does it still matter today? Which are the alternatives to make automatic online data updates on Excel files, OLE DB queries? I wonder if anyone has any example of implementing an OLE DB provider in C# and .NET. Our API will be completely online and RESTful, there is any Web Services alternative to link this data to Excel? I remember Excel 2003 having a Web Services Toolkit but I can't

What are the differences between OLEDB/ODBC drivers when connecting to SQL Server?

好久不见. 提交于 2019-12-03 06:43:13
I have an SQL Server database, and I need to push data into it through vbscript, as well as pull data into Excel. I have found multiple connection strings, but no repository for the benefits of performance and functionality comparing them. The driver options ( Provider= ) I have found so far are: {SQL Server} (ODBC) SQLOLEDB (newer than ODBC, but being deprecated ?) SQLOLEDB.1 (what Excel 2016 uses when clicking 'Get External Data', but not even mentioned on connectionstrings.com... I assume a newer version of the above, but still the deprecated technology?) SQLNCLI11 (native client, OLE DB)

SQL Server to MySQL data transfer

浪尽此生 提交于 2019-12-03 06:39:54
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 data which I am sure will solve most time issues but I want to make sure we do not run into time

How do I query raw data from a Proficy Historian?

断了今生、忘了曾经 提交于 2019-12-03 05:41:11
How can I retrieve raw time-series data from a Proficy Historian/iHistorian? Ideally, I would ask for data for a particular tag between two dates. There are several different sampling modes you can experiment with. Raw Interpolated Lab Trend Calculated These modes are available using all of the following APIs. User API (ihuapi.dll) SDK (ihsdk.dll) OLEDB (iholedb.dll) Client Acess API (Proficy.Historian.ClientAccess.API) Of these the trend sampling mode is probably what you want since it is specifically designed for charting/trending. Though, lab and interpolated may be useful as well. Read the

'Microsoft.ACE.OLEDB.16.0' provider is not registered on the local machine. (System.Data) [duplicate]

放肆的年华 提交于 2019-12-03 04:02:20
问题 This question already has answers here : 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine (33 answers) Closed 8 months ago . I get this error when I try to connect to any excel through MSSQL Server Data Import i.e. SSIS package The Microsoft.ACE.OLEDB.16.0 provider is not registered on the local machine. ( System.Data ) It is not the same version I think some other patching is needed 回答1: Note: I am running SQL 2016 Developer 64bit, Office 2016 64bit. I had the same

“Cannot create an instance of OLE DB provider” error as Windows Authentication user

烂漫一生 提交于 2019-12-03 03:47:07
问题 I am trying to run openrowset from MS SQL Server on an Oracle server. When i execute the following command: select * from OPENROWSET('OraOLEDB.Oracle','srv';'user';'pass', 'select * from table') the following error occurs Msg 7302, Level 16, State 1, Line 1 Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server "(null)". Can anyone tell me how I can use openrowset with OraOLEDB.Oracle ? I am using 64 bit version of MS SQL Server and Oracle OLEDB driver. Edit I have

oledb connection exception

孤者浪人 提交于 2019-12-03 00:12:16
问题 This is my code string connectionString = @"Provider=SQLOLEDB;Data Source=Machine Name;Initial Catalog=MyTestDatabase;"; OleDbConnection conn = new OleDbConnection(connectionString); DataTable result = new DataTable(); try { conn.Open(); OleDbCommand cmd = new OleDbCommand("get_holidays", conn); cmd.CommandType = CommandType.StoredProcedure; OleDbDataAdapter adapter = new OleDbDataAdapter(cmd); adapter.Fill(result); } $exception {"Invalid authorization specification"} is thrown during conn

Binding parameters to OLEDB command throws error

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 22:08:05
问题 I am using AS 400 OLEDB with .NET. It uses '?' instead of '@param to bind parameters with a command Now there is a situation where the command is like SELECT ... FROM (SELECT ... ROW_NUMBER() OVER(ORDER BY ColumnName) as RowNum FROM Employees e ) as DerivedTableName WHERE RowNum BETWEEN @startRowIndex AND (@startRowIndex + @maximumRows) - 1 Now my command becomes SELECT ... FROM (SELECT ... ROW_NUMBER() OVER(ORDER BY ColumnName) as RowNum FROM Employees e ) as DerivedTableName WHERE RowNum

Insert data into oleDb table

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 21:51:32
问题 I'm working on my first database program and I am having trouble having the data be updated inside the access database. Here is the code for the 'add criteria' button on the winform. Dim TaxConnStr As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & ConfigurationManager.AppSettings("Database") Dim dbConnection As OleDbConnection = New OleDbConnection(TaxConnStr) Dim dt As New DataTable Dim da As New OleDbDataAdapter Try dbConnection.Open() Dim cmd As New OleDbCommand cmd