直播中
2.Sql Server 數(shù)據(jù)庫,想用OLE db連數(shù)據(jù)庫,拜托諸位大蝦指教,怎么連呀?
答:<%
set cn=server.createobject("adodb.connection")
cn.provider="sqloledb"
cn.open "driver={SQL server};server=(Local);uid=sa;pwd=;
database=your database"
set rs=......
%>
3.如何定義一個session 數(shù)組?
答:Dim MyArray()
Redim MyArray(5)
Session("StoredArray") = MyArray
用的時候這樣:LocalArray = Session("StoredArray")
LocalArray(1) = " there"
Response.Write(LocalArray(0)&LocalArray(1))