ASP中的SQL语句&变量&用法
sql="selecttchridfromteacherwheretchridlike"&teacherid怎么报错为:MicrosoftOLEDBProviderfor...
sql="select tchrid from teacher where tchrid like "&teacherid
怎么报错为:Microsoft OLE DB Provider for ODBC Drivers '80040e14'
[Microsoft][ODBC Microsoft Access Driver] ������ (��������ʧ) �ڲ�ѯ����ʽ 'tchrid like' �С�
请高手指教,谢谢 展开
怎么报错为:Microsoft OLE DB Provider for ODBC Drivers '80040e14'
[Microsoft][ODBC Microsoft Access Driver] ������ (��������ʧ) �ڲ�ѯ����ʽ 'tchrid like' �С�
请高手指教,谢谢 展开
2个回答
展开全部
建议你使用Provider方式打开数据库,用driver方式有时候会报错的。
<%
dim DBName,conn,connstr
DBName="../Curriculum.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(DBName)
conn.Open connstr
%>
<%
dim DBName,conn,connstr
DBName="../Curriculum.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(DBName)
conn.Open connstr
%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询