我用如下代码 <% Dim conn
Set rs=Server.CreateObject("ADODB.Recordset")
sqlstr="Select * from Movie_User" dsnstr="dsn=MovieDB;uid=dian;pwd=123"
rs.Open sqlstr,dsnstr,3,1
%>
为什么不能连接本机的SQL数据库呢??? 希望有知道的牛人告诉一下
dsnstr="dsn=MovieDB;uid=dian;pwd=123"
-->
dsn="Driver={SQL Server};Server=(local);uid=dian;pwd=123"
<% Dim MM
MM= "Driver={SQL Server};Server=(local); UID=sa;PWD=as; DATABASE=aaa" %>
[此贴子已经被作者于2004-10-07 18:07:21编辑过]