- VBScript code
''''''''''''''''''''''''''''' Access数据库设置 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''' SqlDataBase = "database/wodig#2008.asa" '数据库路径 SqlProvider = "Microsoft.Jet.OLEDB.4.0" '驱动程序[ Microsoft.Jet.OLEDB.4.0 Microsoft.ACE.OLEDB.12.0 ] Connstr="Provider="&SqlProvider&";Data Source="&Server.MapPath(SqlDataBase) SqlNowString="Now()" SqlChar="'" IsSqlVer="ACCESS"'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''Else'''''''''''''''''''''''''''''' SQL数据库设置 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' SqlLocalName ="(local)" '连接IP [ 本地用 (local) 外地用IP ] SqlUserName ="sa" 'SQL用户名 SqlPassword ="123456" 'SQL用户密码 SqlDataBase ="Wodig2007" '数据库名 SqlProvider ="SQLOLEDB" '驱动程序 [ SQLOLEDB SQLNCLI ] ConnStr="Provider="&SqlProvider&"; User ID="&SqlUserName&"; Password="&SqlPassword&"; Initial CataLog="&SqlDataBase&"; Data Source="&SqlLocalName&";" SqlNowString="GetDate()" IsSqlVer="MSSQL"'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
我问了下其它人,说是数据库连接错误。对VBS不了解,问下
===================================================
报错信息:
Microsoft VBScript 编译器错误 '800a0409'
未结束的字符串常量
\wwwroot\Conn.asp, line 45
------解决方案--------------------------------------------------------
在你引用Conn.asp的页面你打印一下哪条SQL