杞人忧天上掉下个林妹妹

穿越旷野的妹妹啊,慢些走;请不要用你的沉默告诉我,你不回头!

导航

数据库链接

ACCESS

dim con,rs,str

function setcon(filename)
   set setcon=server.createobject("ADODB.connection")
   setcon.connectionstring="provider=microsoft.jet.OLEDB.4.0;data source="&server.mappath(filename)
   setcon.open
end function

set con=server.createobject("ADODB.connection")
set rs=server.createobject("ADODB.recordset")

SQL SERVER

function sqlcon(filename)
   set sqlcon=server.createobject("adodb.connection")
   sqlcon.open "driver={SQL Server};server=mmx200;uid=sa;pwd=qiren5761;database=" & filename
end function

posted on 2006-05-20 23:20  杞人  阅读(178)  评论(0编辑  收藏  举报