%
'宣告Connection(資料庫連結)物件
Set DBConnection= Server.CreateObject("ADODB.Connection")
'設定與資料庫連接的連結字串
ConnectionString ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("./JORSTW.mdb")
'開啟連接資料庫的通道
DBConnection.Open ConnectionString
'宣告Recordset物件
Set rs=Server.CreateObject("ADODB.Recordset")
'開啟Book2資料表
rs.Open "sch",DBConnection
%>
<%
If rs Is Nothing Then
Response.Write "GetMdbRecordset 呼叫失敗!"
Response.End
End If
%>
|
|
|
Last updated:
<%
DA=Date
Response.Write DA
%>
|
|
 |
|
Copyright © 2004 operations Research Society of taiwan, ORSTW.
Addess: Box 985, No.181, Sec. 3, Taichung Port Rd., Taichung City 407, Taiwan.
TEL: 866-4-23505386, Miss Chen. FAX: 866-4-23591756 |
 |
|