odbc

Manually Close ODBC DSN Connection

夙愿已清 提交于 2020-01-16 10:02:36
问题 I have an MS Access database that connects to another database via a user level DNS ODBC data source. When the connection is first initiated the ODBC driver will prompt me for a username and password. The database that it then connects to on the server is dependent on the username I use. Once the connection is established Access will retain / keep it alive until I close the Access database. Is there a way to force Access to close all open ODBC connections, requiring me to provide the login

Query SQL Server from SPSS how to connect

余生长醉 提交于 2020-01-16 09:35:50
问题 I am at a total loss on how to do what I think is a fairly simple and standard task: I am running SPSS 20 on Mac and want to connect to a SQL Server database on a remote server. When going to File -> Open Database -> New Query (The command names may be a bit off, my SPSS is in German and I'm just translating) it only shows myodbc as data source. I assume I have to add a driver for SQL Server however I don´t really know where to get it or how to install it as I cannot find it in the SPSS

Sql api is not supported for this database Error

假如想象 提交于 2020-01-16 09:11:32
问题 I'm trying to execute a query in Cosmo DB Mongo API, using the Cdata ODBC through Python. Below is the driver configuration: [CData ODBC Driver for Cosmos DB] Description=CData ODBC Driver for Cosmos DB 2019 Driver=/opt/cdata/cdata-odbc-driver-for-cosmosdb/lib/libcosmosdbodbc.x86.so UsageCount=1 Driver64=/opt/cdata/cdata-odbc-driver-for-cosmosdb/lib/libcosmosdbodbc.x64.so This is the code I'm using to make the query: import pyodbc cnxn = pyodbc.connect("DRIVER={CData ODBC Driver for Cosmos DB

Sql api is not supported for this database Error

南楼画角 提交于 2020-01-16 09:11:21
问题 I'm trying to execute a query in Cosmo DB Mongo API, using the Cdata ODBC through Python. Below is the driver configuration: [CData ODBC Driver for Cosmos DB] Description=CData ODBC Driver for Cosmos DB 2019 Driver=/opt/cdata/cdata-odbc-driver-for-cosmosdb/lib/libcosmosdbodbc.x86.so UsageCount=1 Driver64=/opt/cdata/cdata-odbc-driver-for-cosmosdb/lib/libcosmosdbodbc.x64.so This is the code I'm using to make the query: import pyodbc cnxn = pyodbc.connect("DRIVER={CData ODBC Driver for Cosmos DB

MS Access + ODBC 8.0 + MySQL some field show first 10 rows =0, though MySQL shows other values

ぐ巨炮叔叔 提交于 2020-01-16 08:41:09
问题 FEATURES: MS ACCESS 2010 + ODBC conector + MySQL server PROBLEM: All fields with datatype INT in first 10 rows show 0 (zero) values. If I short asc or desc still first 10 rows with INT = 0. When I trying to edit that records, sometimes I get "The data has been changed", but sometimes when update some field in these records, real value appears. Until I close and open that table, than value again become 0 I workaround all day to find solution, but I cant handle this problem. I have more than 10

User defined function for reading and manipulating frequently used excel files into R

假装没事ソ 提交于 2020-01-16 08:38:23
问题 It feels like this should be a simple problem but for whatever reason I am not getting it. I've got a bunch of tables I have to get at from SQL and other places and the code gets long. It's cumbersome and I'd just like to condense it by making functions() for each table so that when I call lets say load_table1 it runs the SQL code in R to load table1 with all the manipulations it needs. I've tried searching but functions are such a common theme that I can't quite find the right answer. The

Enterprise Architect - Microsoft OLE DB Provider for ODBC Drivers -2147217900 / '80040E14'

风流意气都作罢 提交于 2020-01-16 03:54:17
问题 I am setting up Sparx's Enterprise Architect to work in centralized mode using: EA version 10.0.1007 Database: MySQL CE version 5.6.13.1 Connector: mysql-connector-odbc-5.3.2-win32.msi I've successfully setup the database and connector in Data Sources. Test connection is working. On the first project, EA requesting to import project, in which I imported EABase.eap from C:\Program Files (x86)\Sparx Systems\EA. This is success also. I click the Add New Model from Pattern, choose the Name, and

R Getting the number of rows which have been updated

血红的双手。 提交于 2020-01-16 01:15:52
问题 How can we get the number of rows affected by the executed UPDATE query? r <- sqlQuery(channel, 'UPDATE foo SET bar = 1') What I get (from a connection to a MS SQL Server DB) is just a character(0) ... 回答1: From the Microsoft Data Access SDK ODBC Help guide: SQLRowCount returns the number of rows affected by an UPDATE, INSERT, or DELETE statement; an SQL_ADD, SQL_UPDATE_BY_BOOKMARK, or SQL_DELETE_BY_BOOKMARK operation in SQLBulkOperations; or an SQL_UPDATE or SQL_DELETE operation in SQLSetPos

Connecting to Sql Server CE via ODBC Connection

本秂侑毒 提交于 2020-01-15 15:16:40
问题 I have an app that uses the OdbcConnection classes to connect to Oracle and Sql Server. Works great. But I'm writng some tests and want to connect to Sql Serve CE, which is built into VS2010. What is the connection string to use? This fails: Data Source=Testing.sdf 回答1: There is no ODBC provider for SQL CE so no kind of connection string will work for you. To connect to SQL CE you'll need to use either OLE DB or the managed interface. 来源: https://stackoverflow.com/questions/7210870/connecting

Connecting to Sql Server CE via ODBC Connection

主宰稳场 提交于 2020-01-15 15:14:29
问题 I have an app that uses the OdbcConnection classes to connect to Oracle and Sql Server. Works great. But I'm writng some tests and want to connect to Sql Serve CE, which is built into VS2010. What is the connection string to use? This fails: Data Source=Testing.sdf 回答1: There is no ODBC provider for SQL CE so no kind of connection string will work for you. To connect to SQL CE you'll need to use either OLE DB or the managed interface. 来源: https://stackoverflow.com/questions/7210870/connecting