Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
postgresql-odbc-08.04.0200 /
[ HOME SHELL ]
Name
Size
Permission
Action
config-opt.html
6
KB
-rw-r--r--
config.html
13.76
KB
-rw-r--r--
faq.html
28.33
KB
-rw-r--r--
howto-accesslo.html
2.35
KB
-rw-r--r--
howto-accessvba.html
6.24
KB
-rw-r--r--
howto-bo.html
1.67
KB
-rw-r--r--
howto-ch.html
4.04
KB
-rw-r--r--
howto-csharp.html
4.95
KB
-rw-r--r--
howto-vb.html
3.42
KB
-rw-r--r--
howto-vblo.html
8.52
KB
-rw-r--r--
index.html
4.35
KB
-rw-r--r--
license.txt
25.14
KB
-rw-r--r--
readme.txt
1.35
KB
-rw-r--r--
release.html
43.97
KB
-rw-r--r--
unix-compilation.html
2.35
KB
-rw-r--r--
win32-compilation.html
3.83
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : howto-ch.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>psqlODBC HOWTO - Ch</title> </HEAD> <body bgcolor="#ffffff" text="#000000" link="#ff0000" vlink="#a00000" alink="#0000ff"> <h1>psqlODBC HOWTO - Ch</h1> <p> <i> Author: Wayne Cheng (wayne@softintegration.com)<br> Release Date: 23 September 2003<br> Description: Example based Mini-Howto on Accessing PostgreSQL from Ch </i> <br><br> Ch is a C/C++ interpreter from <a href="http://www.softintegration.com">http://www.softintegration.com</a>.<br> It is designed for cross-platform scripting, shell programming, 2D/3D plotting, numerical computing, and embedded scripting. <br><br> Requirements to get the code to work: <br> <ul> <li>Ch Standard Edition or Professional Edition</li> <li>Ch ODBC Toolkit.</li> <li>IODBC, UNIXODBC or Microsoft ODBC manager.</li> <li>A PostgreSQL datasource.</li> </ul> <b>How to run ODBC code in Ch</b><br> You should be able to use the simple.c scripts, start Ch shell first. <br> <blockquote> <pre> % ch Ch Standard edition, version 4.0.0.11291 (C) Copyright 2001-2003 SoftIntegration, Inc. http://www.softintegration.com /home/wcheng> cd $CHHOME/package/iodbc/demos /usr/local/ch/package/iodbc/demos> ls odbctest.c simple.c /usr/local/ch/package/iodbc/demos> ./simple.c SQLAllocHandle() OK SQLSetEnvAttr() ok SQLAllocHandle() ok SQLSetConnectAttr() ok /usr/local/ch/package/iodbc/demos> cat simple.c /**************************** simple.c *****************************/ #include <sqlext.h> #include <stdio.h> void ODBC_error ( /* Get and print ODBC error messages */ SQLHENV henv, /* ODBC Environment */ SQLHDBC hdbc, /* ODBC Connection Handle */ SQLHSTMT hstmt) /* ODBC SQL Handle */ { UCHAR sqlstate[10]; UCHAR errmsg[SQL_MAX_MESSAGE_LENGTH]; SDWORD nativeerr; SWORD actualmsglen; RETCODE rc = SQL_SUCCESS; while ( rc != SQL_NO_DATA_FOUND) { rc = SQLError(henv, hdbc, hstmt, sqlstate, &nativeerr, errmsg, SQL_MAX_MESSAGE_LENGTH - 1, &actualmsglen); if (rc == SQL_ERROR) { printf ("SQLError failed!\n"); return; } if (rc != SQL_NO_DATA_FOUND) { printf ("SQLSTATE = %s\n", sqlstate); printf ("NATIVE ERROR = %d\n", nativeerr); errmsg[actualmsglen] = '\0'; printf ("MSG = %s\n\n", errmsg); } } if (hdbc != SQL_NULL_HDBC) { SQLFreeHandle (SQL_HANDLE_DBC, hdbc); } if (henv != SQL_NULL_HENV) { SQLFreeHandle (SQL_HANDLE_ENV, henv); } } int main(void) { SQLHENV henv = SQL_NULL_HENV; SQLHDBC hdbc = SQL_NULL_HDBC; SQLHSTMT hstmt = SQL_NULL_HSTMT; RETCODE rc = SQL_SUCCESS; rc = SQLAllocHandle (SQL_HANDLE_ENV, SQL_NULL_HANDLE, &henv); if (rc != SQL_ERROR) { printf("SQLAllocHandle() OK\n"); rc = SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER)SQL_OV_ODBC3,0); if (rc != SQL_ERROR) { printf("SQLSetEnvAttr() ok\n"); rc = SQLAllocHandle (SQL_HANDLE_DBC, henv, &hdbc); if ( rc != SQL_ERROR) { printf("SQLAllocHandle() ok\n"); rc = SQLSetConnectAttr(hdbc, SQL_ATTR_AUTOCOMMIT, SQL_AUTOCOMMIT_OFF,0); if (rc != SQL_ERROR) { printf("SQLSetConnectAttr() ok\n"); SQLFreeHandle(SQL_HANDLE_DBC, hdbc); SQLFreeHandle(SQL_HANDLE_ENV, henv); } } } } if (rc == SQL_ERROR) { ODBC_error (henv, hdbc, hstmt); } } </pre> </body> </html>
Close