odbc

freetds locale.conf, date format

北战南征 提交于 2019-12-10 20:34:11
问题 I'm using freetds and following manual I can set date format in /etc/locale.conf . From origin I didn't have it, so I created it manually. And now I'm getting such date format: May 21 2013 05:30:39:000PM I set locales.conf like this: [default] date format = %Y-%m-%d %H:%M:%S [en_US] date format = %Y-%m-%d %H:%M:%S language = us_english # charset = iso_1 [es_ES] date format = %Y-%m-%d %H:%M:%S language = spanish # charset = iso_1 [pt_BR] date format = %Y-%m-%d %H:%M:%S language = Portuguese #

Excel 2016 and ODBC driver for PostgreSQL

扶醉桌前 提交于 2019-12-10 19:48:17
问题 I am trying to connect Excel 2016 for Mac (on OS X El Capitan, 10.11) to a PostgreSQL database through ODBC connection; so I downloaded the drivers, specifically Actual Open source Databases. I set everything up, test the connection successfully, but as soon as I try to save the settings, Excel crashes. Should I try to re-install Excel? Any advice is strongly appreciated! (I know already, Excel sucks ... but I still need to establish the connection) Best, Vincenzo 回答1: Excel 2016 has issues

Can i use a 32 Bit ODBC Driver for my 64 Bit app

谁说胖子不能爱 提交于 2019-12-10 19:22:39
问题 I have a Win32 application that makes ODBC-Connections. We connect using SQLDriverConnect() which displays a dialog to select the data source. In the x64-Version the Dialog shows and offers 2 different 32 Bit MS ACCESS Drivers. When i select one of these, in the 32 Bit version i would see a open file dialog to select a .mdb file. In the 64 Bit version the call to SQLDriverConnect() at this point returns with -1. SQLError() returns: "[Microsoft][ODBC Driver Manager] Data source name not found

What is the ConnectionString to create a OdbcConnection for an access mdb file

不问归期 提交于 2019-12-10 19:14:42
问题 I want to connect from c# to an Access MDB file by using Odbc. When I try to execute OdbcConnection con = new OdbcConnection( "Driver={Microsoft Access Driver (*.mdb)};DBQ=c:\\temp\\test.mdb;"); I get the following exception: exc {System.Data.Odbc.OdbcException (0x80131937): ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) at System.Data.Odbc

Invalid parameter number, SQL state S1093 php odbc mssql

久未见 提交于 2019-12-10 19:03:51
问题 We have a uni student doing work experience at the moment and he's doing a Wordpress prototype for us (as we have neither Wordpress or PHP experience). It's running on a Windows server and while Wordpress itself is running in mySQL, as all our existing databases are in MS SQL Server 2005/2008 and he's trying to call a stored procedure in a php page using this code: $connection = odbc_connect('DB', 'UNAME', 'PWORD'); $request = odbc_prepare($connection, "CALL ProcName(?, ?, ?)"); if(!$request)

Dapper not adding parameters

删除回忆录丶 提交于 2019-12-10 18:45:46
问题 I am trying to use Dapper for our complex queries to remove any lost overhead that was previously existing with NH. I have the following query (note this has been considerably shrunk): SELECT DISTINCT * FROM tasks t WHERE t.initials = @UserInits Which is called via our repository as so: taskRepo.RawExec<TaskListItemDTO>(Query,new {UserInits = "SAS"}) Our implementation of DapperExec consist as follows: public IEnumerable<T> RawExec<T>(string SQL, object param) { return _session.Connection

Pyodbc - The specified DSN contains an architecture mismatch between the Driver and Application

安稳与你 提交于 2019-12-10 18:45:44
问题 I'm trying to connect to a MS Access Database (.accdb file) via python. I used pyodbc to do this connection: import pyodbc conn = pyodbc.connect("DRIVER = {Microsoft Access Driver (*.mdb, *.accdb)}; DBG=C:\\test_db.accdb") However, I got the following error: ('IM002, '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)') I went to the ODBC Data Source Administrator and when I tried to configure or remove the Driver I got

ODBC driver for HBase/Phoenix

不打扰是莪最后的温柔 提交于 2019-12-10 18:06:20
问题 I need to connect Tableau to HBase or Phoenix and Tableau does not support JDBC. Bummer! I've read about the proprietary Simba driver but haven't seen any reports of people using it. I don't feel like forking over money when it's not ideal, and my employer feels the same way. Is there another way to connect Tableau to HBase or Phoenix? How are other people doing it? I don't like the idea of using Hive to connect to HBase because one of the main reasons to go away from Hive is its atrocious

Howto convert datetime to date with an ODBC function?

*爱你&永不变心* 提交于 2019-12-10 17:57:31
问题 Question: I need to get the DATE ONLY (= date WITHOUT time) with an ODBC escape sequence . However SELECT {fn CONVERT(SomeTable.Col_With_DateTime_Value, SQL_DATE)} FROM SomeTable does return the column as datetime value (date WITH time). Is there any ODBC function I can use to get the date value only ? Note: This is not a duplicate question. I know one can use the non -ODBC convert function, like CONVERT(char(8), getdate(), 112) AS v112_ISO CONVERT(char(10), getdate(), 104) AS v104_XML but I

DSN-less ODBC connect string for legacy Sybase Adaptive Server Anywhere

一个人想着一个人 提交于 2019-12-10 17:53:00
问题 This is a failed response to this article: Sybase, VB and ADO I just did a VB6 project connecting to a legacy ASA 7 database. After failing to use ASAProv OLEDB provider altogether (for one reason or another) and much research, here is the connect string for OLEDB Provider for ODBC shim for a DSN-less ODBC driver connection: Provider=MSDASQL.1;Driver={Adaptive Server Anywhere 7.0};CommLinks=TCPIP,SharedMemory;EngineName=<database_name>;UID=DBA;PWD=SQL where <database_name> is the instance