odbc - udl file with classic asp ADODB.RecordSet count is 0 but should be higher -


i working on classic asp adodb.recordset count 0 should higher (i.e. there should 1 or more records returned query).

how can tell if recordset opened? recordset uses udl file connect database. udl has "test connection" button, , button works.

this functionality working years, has stopped working. suspect udl connection bad, how verify that?

code:

set con1=createobject("adodb.connection") set rs_a1=createobject("adodb.recordset")  con1.cursorlocation = aduseclient con1.open "file name=c:\winnt\udl_dlls\f1.udl"  strsql = "select * session_mvrecord_long session = '" & strrssession & "'"  rs_a1.open strsql,con1  'set filter ourrecord1 record--  rs_a1.filter ="ourrecord1status <> '' or ourrecord1yr <> '' or   ourrecord1key <> ''"  rs_a1.movelast rs_a1.movefirst if rs_a1.recordcount <= 0 then%> 'do stuff 


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -