odbc

How to restore ODBC connection after failure in MS Access

倾然丶 夕夏残阳落幕 提交于 2019-12-20 03:46:13
问题 There is a MS Access application with tables on MS SQL Server linked through ODBC. When connection is lost i receive ODBC error 3146. After connection is restored physically i still receive ODBC 3146 errors. I have to make something like a reconnect to server. How can i do this in MS Access? 回答1: I think all you need to do is refresh the table links. Are you asking how to relink the tables programmatically? Have you tried refreshing the links after being disconnnected and verified that it

MS SQL SERVER, PHP, PDO, ODBC: Login failed for user

*爱你&永不变心* 提交于 2019-12-20 02:53:05
问题 I'm trying to connect using a string: odbc:Driver={SQL Server Native Client 11.0};Server=(localdb)\v11.0;Database=test;uid=sa;password=123321; Result: SQLSTATE[28000] SQLDriverConnect: 18456 [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'sa'. When I try to connect using Windows ODBC Data Source Administrator the connection is successful. What the problem might be in? 回答1: The network user ' sa ' does not have permission to the Microsoft SQL Server. The best way

“Data source name not found and no default driver specified” for creating access connection

丶灬走出姿态 提交于 2019-12-20 02:47:20
问题 This is my connection to an access database in .NET: OdbcConnection conn = new OdbcConnection("Driver={Microsoft Access Driver (*.mdb)};Dbq=" + path + "\\Access.mdb;Uid=;Pwd=;"); And I got this problem: base {System.Data.Common.DbException} = {"ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"} I have tried couple of database connection strings from here: http://www.connectionstrings.com/access but none of them working. Any suggestions

Wide varchar field causes “Requested conversion is not supported” error using openquery with MySQL linked server

时间秒杀一切 提交于 2019-12-20 02:39:10
问题 I'm trying to migrate a table from MySql to MSSQL using openquery but I keep getting the following error message: OLE DB provider "MSDASQL" for linked server "MYSQL" returned message "Requested conversion is not supported.". Msg 7341, Level 16, State 2, Line 1 Cannot get the current row value of column "[MSDASQL].description" from OLE DB provider "MSDASQL" for linked server "MYSQL". The SQL query I'm trying to run: insert into dbo.tickets (id, description, createdAt) select * from openquery

how can i correctly parse a text file delimited by white space

左心房为你撑大大i 提交于 2019-12-19 21:39:31
问题 Below is my sample text file { Here is my schema file [Sample File.txt] ColNameHeader=True Format=TabDelimited CharacterSet=ANSI And here is the code i have so far writen to try and read the above sample file, the data rows read from the text file above is supposed to be returned for display in a dataGridView control. The problem is, its being returned as single column, yet i want to use those white spaces as the column delimiters. I have tried different character delimiters with out success.

Using typed bound parameters with PHP PDO-ODBC, unixODBC and FreeTDS

时光毁灭记忆、已成空白 提交于 2019-12-19 19:12:59
问题 I'm using the following setup to access a MS-SQL database from a PHP application RedHat Enterprise Linux 5 PHP 5.2.14 with PDO and PDO_ODBC unixODBC 2.2.11 FreeTDS 0.82.1.dev.20100810 Unparametrized queries work fine. The only issue is being forced to close cursor on single result statements (with PDOStatment::closeCursor) to avoid "0 [FreeTDS][SQL Server] Invalid cursor state (SQLSTATE=24000)" errors. But I'm having a major issue with typed bound parameter. When using code like this: $stmt =

Using typed bound parameters with PHP PDO-ODBC, unixODBC and FreeTDS

↘锁芯ラ 提交于 2019-12-19 19:12:15
问题 I'm using the following setup to access a MS-SQL database from a PHP application RedHat Enterprise Linux 5 PHP 5.2.14 with PDO and PDO_ODBC unixODBC 2.2.11 FreeTDS 0.82.1.dev.20100810 Unparametrized queries work fine. The only issue is being forced to close cursor on single result statements (with PDOStatment::closeCursor) to avoid "0 [FreeTDS][SQL Server] Invalid cursor state (SQLSTATE=24000)" errors. But I'm having a major issue with typed bound parameter. When using code like this: $stmt =

Using typed bound parameters with PHP PDO-ODBC, unixODBC and FreeTDS

柔情痞子 提交于 2019-12-19 19:11:15
问题 I'm using the following setup to access a MS-SQL database from a PHP application RedHat Enterprise Linux 5 PHP 5.2.14 with PDO and PDO_ODBC unixODBC 2.2.11 FreeTDS 0.82.1.dev.20100810 Unparametrized queries work fine. The only issue is being forced to close cursor on single result statements (with PDOStatment::closeCursor) to avoid "0 [FreeTDS][SQL Server] Invalid cursor state (SQLSTATE=24000)" errors. But I'm having a major issue with typed bound parameter. When using code like this: $stmt =

Diagnosing Connection to SQL Server

血红的双手。 提交于 2019-12-19 11:49:42
问题 I'm trying to create an ODBC connection to SQL Server, but when i do, i get error: Connection failed: SQLState: '01000' SQL Server Error: 10060 [Microsoft][ODBC_SQL Server Driver][TCP/IP Sockets] COnnectionOpen (Connect()). Connection failed: SQLState: '08001' SQL Server Error: 17 [Microsoft][ODBC_SQL Server Driver][TCP/IP Sockets] SQL Server does not exist or access denied. Here's what I've tried: not a firewall issue: tried with firewall on SQL Server turned off, and client turned off. Also

Do I Still Need To Install Oracle Client if Using Microsoft ODBC for Oracle to connect to an Oracle Database?

柔情痞子 提交于 2019-12-19 10:19:49
问题 Using ActiveX Data Objects 2.8 Library as a Reference from Excel VBA, and the connection string is: "Driver={Microsoft ODBC for Oracle}......." And I also have the "Microsoft ODBC for Oracle" (MSORCL32.dll) entry in the Drivers tab of Windows XP's ODBC Manager. Now, will I be able to connect to an oracle databse, without any oracle client/products installed on my machine? 回答1: I'm pretty sure you need to install Oracle client; what's more, I believe it has to be Oracle 8 Client (MS hasn't