odbc

How to connect to a User DSN using codeigniter?

前提是你 提交于 2019-12-11 07:38:32
问题 I am able to connect to a User DSN on my linux box (using ODBC). How do I get to connect using code igniter? in my database.php I have the default database: $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'user'; $db['default']['password'] = 'pass'; $db['default']['database'] = 'db_main'; $db['default']['dbdriver'] = 'mysql'; $db['default']['dbprefix'] = ''; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] =

How can I best use VBA in Access or Excel to test an ODBC connection?

*爱你&永不变心* 提交于 2019-12-11 07:33:41
问题 Given a pre-configured ODBC System DSN, I'd like to write a function that gracefully tests that connection using VBA. Private Function TestConnection(ByVal dsnName As String) As Boolean ' What goes here?? ' End Function Edit: To clarify, the System DSNs are pointing to external SQL Server 2005 databases, with Windows NT authentication. One approach I've tried is to send some random query to the target database and catch the error. If the query works, return true. If there's an error then

QODBC SELECT taking > 15 minutes to return results

可紊 提交于 2019-12-11 07:21:08
问题 I'm pretty new to using QODBC for QuickBooks reporting. One of the first SELECT queries I prepared essentially flags customers with existing unused payments in the ReceivePayment table, querying against invoices with remaining balance for that same customer. The output is (or should be) a list of customers grouped by CustomerRefFullName, with a sum of unused payments in column #2, and sum of total balance remaining from open invoices. It's a fairly simple query. When I import the table to MS

Format Date Number from Database

守給你的承諾、 提交于 2019-12-11 07:14:58
问题 Not sure if I should edit this question or just ask another question in a different post. I am having a hard time doing the reverse of what I originally asked. How do I get the "date number" in php. I want to assign the current date number to a variable to so I can use it in my query to compare what is already in the database. I can not see the SQL Server database but I am connecting to it using ODBC and PHP on a Linux box. I was told that the field "meeting_start" was a "Date Number". When I

android odbc connection for oracle 10g [duplicate]

て烟熏妆下的殇ゞ 提交于 2019-12-11 07:08:24
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: android jdbc odbc connection before i used oracle database 11g for my android application and successfully stored values. Unfortunately my oracle database 11g could not open due to some problem . I uninstalled oracle 11g and installed oracle database 10g edition. now i compiled program and close emulator and open table in oracle the values could not be stored . I dont know how this problem occur. Here in my

How connect Weka to MSSQL server

自作多情 提交于 2019-12-11 06:34:47
问题 I want to connect to MSSQL server in Weka 3.8 . I tried lots of things and I couldn't find a way to connect to SQLServer 2012 Database . Error: driver not found. I applied all steps about JDBC-ODBC bridge (link below) https://andersspur.wordpress.com/2013/10/11/connect-weka-to-sql-server-2012-and-14/ ErrorImage : 回答1: I know it is late, but I had the same problem, and this took me a while to find the solution. I am almost sure you found the solution. In here, it is the second step. However, I

MySQL: how to get the list of tables using ODBC

耗尽温柔 提交于 2019-12-11 06:34:06
问题 I am connecting to a MySQL DB trough a terminal who only have a program with an ODBC connection to a MySQL DB. I can put querys in the program, but not access MySQL directly. I there a way to query the DB to obtain the list of tables? 回答1: There is a SQL query: Show tables; You should be able to execute that query. 来源: https://stackoverflow.com/questions/308809/mysql-how-to-get-the-list-of-tables-using-odbc

Setup an ODBC connection to a MS Access DB under Data Explorer in XE2 Enterprise that does not use a DSN

跟風遠走 提交于 2019-12-11 06:30:26
问题 Using the Enterprise version of XE2, which includes native dbExpress ODBC support, I have successfully created a "Connection" where the Database Name is the name of the System DSN, and the Password is the MS Access database password. I can click Test Connection on the Modify Connection page, and the Database Explorer reports Test connection succeeded. Dragging and dropping the connection from the Data Explorer creates a TSQLConnection with the Driver property set to ODBC and the Params

How to set up ODBC 10.1b for Progress DB

杀马特。学长 韩版系。学妹 提交于 2019-12-11 06:25:30
问题 I'm trying to set up an ODBC client driver for Progress 10.1b. I was able to install the client software that is required, but there is apparently also an ODBC.reg script file that needs to be run to correctly set up the registry in order for me to use the ODBC drivers. Can anyone point me to where I would find this script? Or tell me the set of registry entries that would have to be made? 回答1: That's not a standard part of the install process. Are these the steps that you followed to get the

Excel date parameter in SQL query

此生再无相见时 提交于 2019-12-11 06:16:26
问题 I use an SQL query to retrieve a data table from an oracle database with excel. When a fixed date is used I get this request: SELECT * FROM MyTable WHERE MyTable.Date > {ts '2014-09-30 00:00:00'} What I would like to do is replace the fixed date by a date from a cell. I tried the folowing: SELECT * FROM MyTable WHERE MyTable.Date > ? SELECT * FROM MyTable WHERE MyTable.Date > {ts ?} SELECT * FROM MyTable WHERE MyTable.Date > {ts '?'} SELECT * FROM MyTable WHERE MyTable.Date > {ts [?]} SELECT