Application("ConnString") =Provider=SQLOLEDB.1;Persist Security Info=True;User ID=sa;Initial Catalog=oa;Data Source=cyserver '从taxi数据库读取Employee表//////////////////////////////////////////////////////////////////////// dim ConnTaxi,db,rs,ConnTaxiString ConnTaxiString="Provider=SQLOLEDB.1;Persist Security Info=True;User ID=sa;Initial Catalog=taxi;Data Source=cyserver" Set ConnTaxi=Server.CreateObject("adodb.connection") ConnTaxi.Open ConnTaxiString set db=server.CreateObject ("database.db") set rs=server.CreateObject ("adodb.recordset") set rs=db.GetRS (ConnTaxi,"select * from employee") '/////////////////////////////////////////////////////////////////////////////////////////////////////////// option explicit dim conn,DB Set Conn=Server.CreateObject("adodb.connection") conn.Open Application("ConnString") set DB=server.CreateObject ("database.db") CREATE TRIGGER ToHistory ON tbMeeting FOR DELETE AS insert into tbMeetingHistory function GetName(EmployeeID) '由EmployeeID获得姓名 dim ConnTaxiString,ConnTaxi,DataBase,NameString ConnTaxiString="Provider=SQLOLEDB.1;Persist Security Info=True;User ID=sa;Initial Catalog=taxi;Data Source=cyserver" Set ConnTaxi=Server.CreateObject("adodb.connection") ConnTaxi.Open ConnTaxiString set DataBase=server.CreateObject ("database.db") NameString=DataBase.GetName (ConnTaxi,EmployeeID) if NameString=-1 then GetName="无该用户记录!" else GetName=NameString end if set DataBase=Nothing ConnTaxi.Close set ConnTaxi=nothing end function response.Write "" response.End AttendManID response.Write "" response.End width:558px; height:373px; <%if session("UserID")="" then%> <%end if%> bbs calendar card tel soft url learn adrot chat userinfo jhtdata type helptype help bumen user
| <%=RSuser.Fields(j).name&"("&RSuser.Fields(j).DefinedSize&")"%> | <%next%>
| <%=RSuser.Fields(k).value%> | <%next%>