msdasql

Linked server INSERT, UPDATE and DELETE fails with “Unknown provider error”

牧云@^-^@ 提交于 2019-12-24 08:09:43
问题 Suddenly INSERT, UPDATE and DELETE fails for a certain file (a table in a remote system which I believe is an AS/400). The linked server that we make use of is set up in SQL Server, and it's using an ODBC data source (DSN). The Data source is an "ODBC-data source for iSeries Access for Windows". Only one single table has this problem. We can make inserts and updates in other tables using the same linked server, without any errors, and SELECTs still work for the problematic table. We get these

Cannot initialize the data source object of OLE DB provider “MSDASQL” for linked server “(null)”

≡放荡痞女 提交于 2019-12-17 18:13:22
问题 Having an interesting issue. I'm reading from an excel file on a server via an OpenRowset in Sql2005. I've run the query a number of times without any problems. I've just gone out for a quick meeting and suddenly I get the error "Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)"" I've made sure the files are not in use on the server and even deleted them and recopied them over onto the server and still I'm getting the same error. UPDATE: This

“Requested conversion is not supported” using a linked server and ODBC

試著忘記壹切 提交于 2019-12-11 09:46:10
问题 Our web application stores UTF-8 encoded data in VARCHAR fields. Recently, we have provided our customers access to this data via ODBC using DataDirect's OpenAccess ODBC driver. This is achieved using DataDirect's OpenAccess SDK, writing a C# .Net class to interface with the service. We only allow customers to perform SELECT queries. We also limit results to 100K rows at this time. This solution really works great, except querying fields with some of this encoded data appeared as gibberish to

Cannot initialize the data source object of OLE DB provider “MSDASQL” for linked server “(null)”

偶尔善良 提交于 2019-11-28 06:35:32
Having an interesting issue. I'm reading from an excel file on a server via an OpenRowset in Sql2005. I've run the query a number of times without any problems. I've just gone out for a quick meeting and suddenly I get the error "Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)"" I've made sure the files are not in use on the server and even deleted them and recopied them over onto the server and still I'm getting the same error. UPDATE: This only seems to happen if I join two selects from different openrowsets. If I run the queries individually