domain .tw idv.tw .com.tw
你正在閱覽 :: 繁體中文:: 學習 ASP SQL VB HTML code

學習 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在閱覽 :: 繁體中文 Chinese_Traditional

學習.主題:
首頁
ASP
. Active-Server-Flash
. Array
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
. Function
. GetSQLserver
. Header
. mySQL
»ADODB.Connection
. Record
. Recordset
. Request
. Response
. Server
. Server-CreateObject
. ServerVariables
. Session
. Special-Symbols
. String
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....學習.教學 > ASP > mysql »

w3 learning

ASP

mySQL

:: ADODB.Connection

More detial or script code example

Connect to MySQL DB from ASP VB script pages.

由 mySQL 資料庫連結到 ASP 網頁
Description:

<% Dim Conn, oRs Dim qry, connectstr Dim db_name, db_username, db_userpassword Dim db_server, fieldname, tablename db_server="----your server-----" 'sometimes IP, domain, or a designed server, (Data Source) localhost db_name="--dbname--" 'sometimes your db username : sometimes title of description, (Initial Catalog) db_username="--username--" 'your db username (User Id) db_userpassword="PW" 'your db password (Password) fieldname="c1" tablename="tb1" connectstr="Driver={MySQL ODBC 3.51 Driver};SERVER="&db_server&";UID="& db_username &";PWD="& db_userpassword &";DATABASE="& db_name &";OPTION=3;" set conn=Server.CreateObject("ADODB.Connection") conn.open connectstr %>

OPTION=3; 不一定使用

Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=[主機位址]; DATABASE=[資料庫名稱]; UID=[帳號];PASSWORD=[密碼]; OPTION=3"
ADODB.Connection

..
...
...

[ 8/20/2008 ]

www learning school add more scripts and tips memo
You are at >>3WT.EZER.COM >> 3WT.EZER.COM/ASP/MYSQL/INDEX.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker
back to top Ezer code adding :: Questions ;email