oledb

PowerBuilder 10.5 Application on Windows XP 32-bit to Windows 7 64-bit

夙愿已清 提交于 2019-12-06 16:09:22
I currently have a 32-bit PowerBuilder application that we are trying to port over to a Windows 7 64-bit environment. Realizing the obvious that PowerBuilder 10.5 was built previously before Window7 came out and the big also the obvious fact that this application was built within a Windows XP 32-bit environment. The 32-bit PowerBuilder application spits out the following error message when deployed on a Windows 7 64-bit machine. Application Terminated. Error: Invalid DataWindow row/column specified at line 44 in function ivvisiblecolumn of object objectwindow The database profile setup points

DataColumn's AutoIncrement Returns False Always

荒凉一梦 提交于 2019-12-06 14:21:12
I am interested to check out whether column has an autoincrement/allowdbnull property . Having this code below , gives me always false although I already have one column that has autoincrement/allowdbnull property. Dim dt As New DataTable() Dim con As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" & Application.StartupPath & "\test.mdb" Dim sql As String = "SELECT * from teachers" Dim i As Integer Dim dataAdapter As New OleDb.OleDbDataAdapter(sql, con) dataAdapter.Fill(dt) dataAdapter.Dispose() For Each column As DataColumn In dt.Columns TextBox1.Text = TextBox1.Text & column

ado net - import excel data - missing data

前提是你 提交于 2019-12-06 11:44:37
问题 At first glance I have the same problem as many persons had before and I found many questions and answers about my problem but none of them helped me. I perform importing from MS excel file (file XLS) in NET by using ADO NET. The file contains mixed types in the same column: numbers and text, and the well known problem occurs - text format is not recognized and the data are lost. I use the following connection string with recommended parameters: string strConnectionString = string.Format(

What's the difference between Jet OLEDB:Transaction Commit Mode and Jet OLEDB:User Commit Sync?

心已入冬 提交于 2019-12-06 11:24:31
Althoug both Jet/OLE DB parameters are relativly well documented I fail to understand the difference between these two connection parameters: The first one: Jet OLEDB:Transaction Commit Mode (DBPROP_JETOLEDB_TXNCOMMITMODE) Indicates whether Jet writes data to disk synchronously or asynchronously when a transaction is committed. The second one: Jet OLEDB:User Commit Sync (DBPROP_JETOLEDB_USERCOMMITSYNC) Indicates whether changes that were made in transactions are written in synchronous or asynchronous mode. What's the difference? When to use which? This is very long, so here's the short answer:

Deadlock on bulk inserts

心不动则不痛 提交于 2019-12-06 09:44:31
I have several clients running an external executable using a C++ DLL to do bulk inserts though OLEDB into the same SQL Server table. The table has no indices, just a check constraint and a default. After I upgraded from SQL Server 2005 to 2008, all of a sudden I'm seeing deadlocks. The deadlock XDL (anonymized): <deadlock-list> <deadlock victim="process8057f048"> <process-list> <process id="process8057f048" taskpriority="0" logused="0" waitresource="OBJECT: 21:1176443315:0 " waittime="3329" ownerId="33387042" transactionname="SetCnstNotTrusted" lasttranstarted="2011-10-05T09:15:12.227" XDES=

Microsoft.ACE.OLEDB.12.0 bug in multithread scenario

ⅰ亾dé卋堺 提交于 2019-12-06 09:35:54
问题 I use in my x64 application the Microsoft Access Database Engine 2010 (part of Microsoft Office 2016) for working with mdb files. But, current version of Microsoft Access Database Engine 2010 (OLEDB provider Microsoft.ACE.OLEDB.12.0) have a bug. This engine crashes in multithread work. If I create two OLE DB (or ADO DB) connections with this provider in different threads, then one of them will crashed in Mso40UIwin32client.dll with exception 0xC0000005: Access violation writing location

Cannot register Sybase 15 ASE OLE DB driver on Windows 7

冷暖自知 提交于 2019-12-06 09:28:54
问题 I am trying to get the Sybase 15 ASE OLE DB driver set up on my Windows 7 machine. I already have the Adaptive Server Enterprise driver listed in the Drivers tab of my 32-bit ODBC Data Source Administrator (C:\Windows\SysWOW64\odbcad32.exe). I tried to re-register the DLL with the command regsvr32 sybdrvoledb.dll and with C:\Windows\SysWOW64\regsvr32.exe sybdrvoledb.dll from a command prompt running as admin, and in both cases I get back "DllRegisterServer in sybdrvoledb.dll succeeded" but

Windows 8 OLEDB / ADO.NET drivers for Sybase ASE?

删除回忆录丶 提交于 2019-12-06 09:09:46
问题 Has anyone successfully installed Sybase OLEDB drivers and Sybase Central on a Windows 8 (64 bit) system? I've tried the installers on the Sybase website but they fail. Searches for "Windows 8" on the Sybase site and "Sybase Windows 8" on Google are bringing up nothing. We have a developer here who installed them on a Windows 7 system and then did an OS upgrade to Windows 8 so I know they will work. I would rather not uninstall Windows 8 and go that route if I can help it though. 回答1: I

“Cannot open a database created with a previous version of your application” shows when VB.NET program tried to open a MDB file using OleDBConnection

不羁岁月 提交于 2019-12-06 07:55:07
I have created a software using VB.NET in a 32-bit Windows 7 OS. It contains those line of codes below: Dim cn As New OleDbConnection cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & fileNameStr & ";Jet OLEDB:Database Password=xxxxxxx" cn.Open() The codes open a MDB file (Microsoft Access file) protected by a password. When I run the software in my computer, it works well. However, when it is tested in another computer, an error message appears saying "Cannot open a database created with a previous version of your application." The error message is shown after the third

someone knows how to delete pack foxpro data from oledb driver with c#

最后都变了- 提交于 2019-12-06 07:31:41
问题 this is my code //Probando insercion OleDbConnection conexionFoxPro = new OleDbConnection(); string rutaFoxPro = @"C:\Users\BigMander\Documents\Proyectos de Visual FoxPro\prueba.dbc"; conexionFoxPro.ConnectionString = String.Format("Provider=VFPOLEDB.1;Data Source={0};Exclusive=Yes;", rutaFoxPro); bool sePudoEjecutarTodo = true; try { conexionFoxPro.Open(); OleDbCommand comandoFoxPro = new OleDbCommand(); comandoFoxPro.CommandText = @"INSERT INTO test ([nombre], [telefono], [id]) VALUES (?, ?