odbc

MySQL not generating correct results using ODBC date parameter

♀尐吖头ヾ 提交于 2019-12-14 02:28:14
问题 I recently upgraded my version of MySQL to 5.6.10 (community edition on Linux), subsequently I am unable to properly run a Crystal Report that worked fine talking to MySQL 5.0.24a via the MySQL ODBC driver 3.5.1. The report is built off an SQL command which works fine if I manually type in the query and date ala 2013-05-15 into the MySQL client, but when passing the parameter to it via ODBC (which reformats the date in the query as {d '2013-05-15'} MySQL returns random results, meaning one

Could not open Paradox.net

柔情痞子 提交于 2019-12-13 22:39:17
问题 Trying Delphi 10.2 Tokyo with Paradox FireDAC ODBC on Windows 10 throws error Could not open Paradox.net. This link describes the problem: https://msdn.microsoft.com/en-us/library/bb221383(v=office.12).aspx An Embarcadero FireDAC ODBC connection to Paradox table, by default will set ParadoxNetPath to System32 folder: ODBCAdvanced=CollatingSequence=ASCII;DefaultDir=C:\DEV\TPDEMOS\DATA;DriverId=538;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=600;ParadoxNetPath=C:\Windows\system32

SQLServer Error: 18546 - SQLState 28000

孤人 提交于 2019-12-13 18:36:09
问题 I have a 3-level application running. WebServer IIS7.5 and SQLServer 2008 R2 Express Database and OS WinServer 2008 WebEdition. When I try to connect via ODBC from a PC on the network have this error. Remote connections with MSSM (Microsoft SqlServer Managemet Studio) work properly. I want to use this ODBC to connect Hyperion to SQLServer Can you help me? 回答1: I resolve to enable TCP/IP service in SQL Server Configuration Manager. After this , if problem persist disable firewall on private

PHP, Oracle and ODBC: How to check if result set is empty?

☆樱花仙子☆ 提交于 2019-12-13 18:07:44
问题 Dear nerds and forumianers, I have a delicious problem with PHP on a Oracle database with ODBC driver. First the code: $ora_conn = odbc_connect($ora_dsn, $ora_user, $ora_pass, SQL_CUR_USE_ODBC); $ora_data = odbc_exec($ora_conn,$sql); //echo "test: ".odbc_num_rows( $ora_data ); //exit; if(odbc_num_rows( $ora_data ) > 0){ // do something in case no result came back } if($ora_data){ // do something in case result came back } If I uncomment the test, I always get back -1! No matter if the

Using SQL to query an Excel worksheet without a header row

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 16:36:33
问题 I have been searching for a solution for a while, and I find myself coming up empty handed. The question is: Can you build a SQL query against a worksheet if you don't have a distinct header row for column references? Easily enough: | A | B 1 | FirstName | LastName 2 | John | Davis 3 | Mary | Parker SELECT [LastName] FROM [Sheet1$] WHERE [FirstName] = 'John' --> "Davis" However, I tend to work with header-less CSV files, so what could I do if I don't have the header row to steer by? | A | B 1

Persuade Access 2007 to use a .UDL file/oledb connection?

冷暖自知 提交于 2019-12-13 16:25:23
问题 Is there any way of coaxing Access 2007 into using a .UDL file? Specifically, one of our older products uses an Interbase 6.0 database. My client would like to link to his database, for read/write, using Access 2007 (in the short term). While this isn't my preferred way of doing things at all, given it's all single-user and the other access to the Interbase database is all done via a Delphi 7 client, I can't really just say 'no' - at least, not until I have the time to 'properly' give him

Large character field sizes in SAS

微笑、不失礼 提交于 2019-12-13 15:57:12
问题 I am trying to import a large blob field from a MySQL table via SAS ODBC passthrough. The field is larger than the maximum length allowed in SAS. According to SAS 9.2 documentation character type fields can have a maximum length of 32k. Has anyone had experience storing large character fields in SAS? Any suggestions other than the obvious one of breaking it down into smaller substrings? Thanks Rob 回答1: If you REALLY do need all 32K of that data to operate on, I would import it into more than

OdbcCommand. Parametrization with table name

淺唱寂寞╮ 提交于 2019-12-13 15:16:07
问题 I have a problem doing a parametrized sql query to a OdbcConnection to a odbc driver in C#. The column name and table name will be configurable from a web gui so I want it protected from injections using (OdbcCommand command = connection.CreateCommand()) { command.CommandText = "SELECT ? FROM ?"; command.CommandTimeout = SynchTimeout; command.CommandType = CommandType.Text; command.Parameters.Add(new OdbcParameter(string.Empty, "User")); command.Parameters.Add(new OdbcParameter(string.Empty,

How to show a standard windows data sources (ODBC) dialog

混江龙づ霸主 提交于 2019-12-13 14:24:28
问题 Is there any simple way to display a standard windows data sources dialog from a winforms application? I'd like to show it to a user and pick up a system dsn or create a new one and return a datasource name. I haven't found any references to an existing wrappers in .net so I suppose I can only use a win API for that. Any existing solution or a snippet of code would be appreciated. 回答1: It seems that it is not possible to get the selected data source name from this dialog. Here is the winapi

Trying to read data out of MSysObjects with ODbc in C#, but getting no permission error

好久不见. 提交于 2019-12-13 13:53:20
问题 As described in the title: I am trying to read out data from MSysObjects in a Access 2010 database, but I get an exception telling me I am not allowed to read from that table. I can read out of the other non-MSys Tables. SQL Query I am using: SELECT * FROM MSysObjects WHERE Type=1 AND Flags=0 Connection String: Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb;Uid=Admin;Pwd=; This is the standard Connection Sting as seen on http://www.connectionstrings.com/access/ How