reported this error, I tried is not successful, but he succeeded, there must be a reason; So the version I was using everybody popular 8.0 Add SQL Server Driver # VI/USR/LOCAL/UNIXODBC/ETC Odbcinst.ini to ODBC # Vi/usr/local/unixodbc/etc/odbc.ini Netstat-na | Find "LISTENING" Lookup port command is turned on General error, first look at the log, and then do not fall on the simple problem, such as Ping does not pass Ah, do not underestimate the
ODBC(Open Database interconnection): an early database interface technology introduced by Microsoft. It is actually the predecessor of ADO. Early database connections were very difficult. the format of each database is different. Developers must have a deep understanding of the underlying APIs of each database they develop. therefore, General APIs that can process a variety of databases have emerged. that is, the current
Tags: style blog http io ar os sp for strongVS2013 MFC ODBC connection SQL Server database programming (ii)Reprint Please specify: http://blog.csdn.net/my_acm/article/category/2616577In the previous article, I explained how to connect to a SQL Server databaseRefer to Http://wenku.baidu.com/link?url=h1rGgnhSmnclH2lFexHmlP_SZ2LUDRy5xM4wrbTfYlRXZLj2o0ugMT_ below Pfgrxa1xi2pm8nuueckgqra6d77ziedoymaqluudmaqqz2nq
Connection Failed sqlstate: '200' SQL Server Error: 01000 [Microsoft] [odbc SQL Server Driver] [TCP/IP sockets] connectionopen (connect () Connection Failed: SQL state: '000000' SQL Server Error: 17 [Microsoft] [odbc SQL Server Driver] [TCP/IP sockets] SQL server does not exist or access is denied.
Solution:->
VS2013 MFC ODBC connection SQL Server database programming (iii) Reprint Please specify: http://blog.csdn.net/my_acm/article/category/2616577Following the previous article on the database links and some instructions, this article will be implemented in the database and other operations such as adding and deleting.As shown is a simple small program that is finalized.First, add the Nm_click Responder for the
There is only one php_pdo_odbc.dll.So ~ The latest and best php Method for connecting to mssql is as follows:Copy codeThe Code is as follows:$ Cnx = new PDO ("odbc: Driver = {SQL Server}; Server = 127.0.0.1; Database = test;", 'sa ', 'asd123 ');Var_dump ($ cnx );$ A = $ cnx-> query ("SELECT * FROM [user]");Var_dump ($ );Foreach ($ a as $ B ){Var_dump ($ B );}?> The problem that PHP cannot connect to the MSSQL databaseToday, a new server is configured
$connstr = "Driver={microsoft Access DRIVER (*.mdb)}; Dbq= ". Realpath (" C:\Users\btang\xampp\htdocs\InterfaceSatcli\BdD_DO.mdb ");
$connid =odbc_connect ($connstr, "", "", SQL_CUR_USE_ODBC);
Echo Phpinfo ();
} catch (Exception $e) {
echo "connectionãaccess Impossible:", $e->getmessage ();
Die ();
}
?>
Reply to discussion (solution)
Connect access requires the MDB file in the same directory as the general user execution, please check
Connect access requires the MDB file in the
The database alias still exists when the connected data fails, but the connection is still re-established with this aliasIn Windows client, with input Db2cmdInput C:\USERS\YEXUXIA>DB2 List db directoryDisplay database aliases, database names, node namesC:\USERS\YEXUXIA>DB2 List Node DirectoryYou can see the client's current connection configuration for the node, node name, entry type (local), Protocol servi
ORCL =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.10) (PORT = 1521 ))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = orcl)))
(You can install a plsql statement to test whether it is successful)
Reference this website http://www.2cto.com/database/201305/212209.html
Complete odbc data source configuration
If the oracle database cannot be found, download the
When I was just using MySQL, I encountered the following problems:C: \ Program Files \ mysql \ MySQL Server 5.0 \ bin> MySQLError 1045 (28000): Access denied for user 'odbc '@ 'localhost' (using password: NO)
Windows:
The main reason is that the pathenvironment variable of mysqlis not configured. Because mysql.exe is placed in the MySQL/lib directory, it cannot be found if it is not set.
Solution: Go to the lib directory of the MySQL Installation File
Using the JDBC-ODBC bridge to connect to the Oracle database and JDBC driver is almost the same, so we don't have to set the environment variable. There are two key statements for connecting to the database in JDBC:
Class. forname ("oracle. JDBC. Driver. oracledriver ");Connection con = drivermanager. getconnection (
Source Name (DSN) using the ODBC Driver Manager. The ODBC Driver Manager is in the Windows Control panel, Administrative Tools. Add a "User DSN" Select "IBM DB2 DRIVER for Odbc–f:/work/clidriver" as DRIVER. Next, set "Data Source name" In "Database alias" row, click "Add". To ' Advanced Settings ' tab, click ' Add '. Add "Hostname". Add "Port", "Database",
[Translated from mos] list of well-known ODBC drivers for accessing Oracle Database
Source:List of Well Known ODBC Drivers For Accessing An Oracle Database (Document ID 1932774.1)
Applicable:Oracle ODBC Driver-Version 8.0.5.1 and laterInformation in this document applies to
In the previous version of Oracle, your username password is case insensitive, but in 11g, the case of the database default password is sensitive, so we know the fact that JDBC will turn it into uppercase when it gives the Oracle password, it's a strange thing.You may say: Well, then I will set the password to uppercase well, haha haha, you are finished, you know some programs, in the link
1.JDBC Connection database to add a Mysql-connector-java-5.1.38-bin.jar library2.ODBC connecting the database to add an ODBC data source3. Test codeDbhelper.java Code JDBC Connection DatabaseImport java.beans.Statement;Import Java.sql.DriverManager;Import com.mysql.jdbc.Connection;Import com.mysql.jdbc.PreparedStatemen
PHP and MySQL is the best combination of PHP web development, but when you want to migrate other platforms to the PHP platform, you will inevitably encounter porting problems, such as how asp+access platform porting? The first is the PHP connection to the Access database problem, how does PHP connect to an Access database without changing the database?
PHP provides a variety of connectivity database solutions, which explain how to use PHP ADOdb, PDO,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.