odbc

What are the access restrictions on accessing a DSN

风流意气都作罢 提交于 2019-12-08 11:50:07
问题 We are running part of our app as a windows service and it needs to b able to access DSNs in order to import through ODBC. However there seem to be a lot of restrictions found through trial and error on what DSNs it can access. For example it seems that it cannot 1. access a system DSN unless the account that is running the service has admin privileges. (I get an Access Denied error, when trying to connect) 2. access a user DSN that was created by a different user (this one is understandable)

How to set ConnectionTimeout to 0 in Sql Server 2008?

余生长醉 提交于 2019-12-08 11:06:38
问题 I set timeout to 0 but the connection close prematuraly, what is wrong with this statement ? Using odbcconn As New OdbcConnection(DataShared.gstrCNN) odbcconn.ConnectionTimeout = 0 odbcconn.Open() Dim OdbcCmd As New OdbcCommand( _ "{ ? = CALL [proc_Cp_GenEstadoCta](" & _ PCOD_EMPR & ", " & _ PPER_ANUAL & "," & _ DataShared.gintCODUSER & " ) }", odbcconn) OdbcCmd.Parameters.Add("@return", OdbcType.Int) OdbcCmd.Parameters("@return").Direction = ParameterDirection.ReturnValue OdbcCmd

MS Access with MySQL Linked Tables not getting new record

╄→гoц情女王★ 提交于 2019-12-08 10:42:43
问题 So I've been trying to set my tables in MySQL to use as linked tables in a MS Access front-end file. I had these tables as MS Access tables and everything worked well. I wanted to separate the tables from this file and went and exported the tables to a MySQL DB. The exporting process works well and everything looked fine the file is running correctly. But my data entry forms are now showing blank. I tried setting Data Entry to off and the forms show up with the data from the linked tables but

LAMP (PHP) accessing Access Database with ODBC with MDBTools Driver

你。 提交于 2019-12-08 09:48:25
问题 Can anyone tell me if there is limited SQL support using unixODBC drivers on Ubuntu with PHP? I've setup a basic lamp server on Ubuntu 11.10, and I'm trying to query an Access database. I've installed php5-odbc and MDB Tools. Here is some sample code: <?php $conn = odbc_connect('logindb','',''); if (!$conn) { echo "failed"; } $sql = "SELECT * FROM class"; //$sql = "SELECT class.desc, event_classes.event_class_id FROM class inner join //event_classes on class.class_id = event_classes.class_id"

lotuscript: some questions about connecting to a SQL DB

穿精又带淫゛_ 提交于 2019-12-08 09:34:57
问题 I've got this code that is working... I read from an MS SQL database some rows from a table and then send an email for each row. I'm about to add an "attachment" field, on my SQL database and I'd like to add the attachment at the end of my body. I have two questions: 1) what datatype should I use on MS SQL? (Binary field, maybe) and 2) if someone else has some example code, I'd really appreciate it. A bonus question: on a more advanced version of this script, i first run by all my results

Connect to Foxpro with PHP using OLE DB driver

别等时光非礼了梦想. 提交于 2019-12-08 09:16:42
问题 I'm trying to connect to a Foxpro database using the OLE DB Driver I downloaded the driver from http://www.microsoft.com/en-us/download/details.aspx?id=14839 and installed it then create a php script $conn = new COM("ADODB.Connection") or die("Cannot start ADO"); $conn->Open("Provider=vfpoledb.1;Data Source=C:\Opera3\Comp_I.DBC;Collating Sequence=machine"); This gives me the following error Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> ADODB.Connection<br/><b

Connect PHP to AS400 with ODBC or DB2

余生颓废 提交于 2019-12-08 07:44:46
问题 I'm trying to connect my WEB server to AS400. The web server has not DB2 library neither ODBC library. I have installed XAMPP in my Windows computer, and one of my colleagues also did. He has Client Access on his Computer. We both installed: - XAMPP - ibm_data_server_driver_package_win32_v10.5.exe We tried to install PECL DB2 extension (LINK) but unsuccessfully (got error ".\php.exe appears to have a suffix .exe, but config variable php" : seems that nobody has solved this problem on Windows.

Slow connection from Excel VBA to PostgreSQL database

痞子三分冷 提交于 2019-12-08 07:37:58
问题 I have a view in a PostgreSQL database. Executing the view in pgAdmin is very fast (10,000 records). But executing "Select * From myView;" from VBA is VERY slow. I connect to the database using ADO and ODBC. Can anyone give me a hint on how to speed up things? A small example: Sub TEST() Dim CN As New ADODB.Connection Dim RS As New ADODB.Recordset Dim Data As Variant Dim SQL As String Dim ConStr As String ConStr = "Server=11.22.33.44;" & _ "DSN=PostgreSQL35W 32bit;" & _ "UID=xxx;" & _ "PWD

exactly what does the statement handle(hstmt) do? in ODBC

不羁岁月 提交于 2019-12-08 07:20:41
问题 I`m new to write c code for ODBC but here I have question... after searching for the tutorial for odbc function tutorials for C, I still caanot get exactly how they work collaborately... what does the statement handle hstmt exactly do for database data? I knew it controls the SQL query statements that I give as a parameter. but,, then every SQL statements that i give as query should have each statement handle(hstmt) for each of them? or one statement handle for several SQL query statements?

IIS 7.5 using 32 bit driver instead of 64 bit

你。 提交于 2019-12-08 06:55:30
I am using IIS 7.5 on a Windows Server 2008 R2 machine to connect to a MySQL server through ODBC driver 3.51. When I developed the application in VS 2010, I created a 64 DSN (using c:\windows\sysWOW64\odbcad32.exe) for the connection and everything was going great. However when I have deployed the application on IIS, it is not using this DSN. So I created a 32 bit DSN. Now I am facing the problem of Arithmetic operation resulted in an overflow on every other page. Please help. How can make IIS use 64 bit DSN that I created while developing the application? Check the Enable 32 Bit Applications