T
tokey
Unregistered / Unconfirmed
GUEST, unregistred user!
<% Dim Cnn, StrCnn
Set Cnn = Server.CreateObject("ADODB.Connection")
StrCnn = "Provider=sqloledb;
User ID=sa;
Password=1223;
Initial Catalog=kwkhgl;
Data Source=tokey"
Cnn.Open StrCnn
set rssubSys=Server.createObject("ADODB.Recordset")
set Rshospital=server.createObject("ADODB.Recordset")
Sqlstr="select * from Hospital where hosid="&request("Hosid")
Rshospital.open Sqlstr,Cnn
MYsqlstr="select * from Hospitalsys where hosid="&request("Hosid")
rssubSys.open MYsqlstr,Cnn
%>
request("hosid")有值,两个表都有记录,但返回的数据集中只有rsHospital有记录,
rssubsys.recordcount=-1,为什么会这样,谁能回答我的问题,还请指教.
Set Cnn = Server.CreateObject("ADODB.Connection")
StrCnn = "Provider=sqloledb;
User ID=sa;
Password=1223;
Initial Catalog=kwkhgl;
Data Source=tokey"
Cnn.Open StrCnn
set rssubSys=Server.createObject("ADODB.Recordset")
set Rshospital=server.createObject("ADODB.Recordset")
Sqlstr="select * from Hospital where hosid="&request("Hosid")
Rshospital.open Sqlstr,Cnn
MYsqlstr="select * from Hospitalsys where hosid="&request("Hosid")
rssubSys.open MYsqlstr,Cnn
%>
request("hosid")有值,两个表都有记录,但返回的数据集中只有rsHospital有记录,
rssubsys.recordcount=-1,为什么会这样,谁能回答我的问题,还请指教.