Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
galego
Starting Member
4 Posts |
Posted - 2008-07-18 : 17:58:46
|
I have some (inherited) classic asp (ado/vb) code tht works fine against a SQL 2K system, but not so wellTransacting on the first value in the table works fine in general. I thought it might somehow related to the cursor type defined in the rs.Open call (see below), but it all seems to really be dependent on whether it is one specific row of data or not.The queries being run via ... sSQL = "SELECT * FROM foo WHERE bar = '" & barVar & "' and Status = 'Whatever'" set rs = Server.CreateObject("ADODB.RecordSet") rs.Open sSQL, Cn,3 ,1 ' I've tried the different number defs as well as the cursorType Names, doesn't seem to matter response.Write(rs.RecordCount & "<br>") ' this gives me back -1 or 0 as noted above.It all seems to be that row or not that row. I cannot find any hard coding in it. Can anyone offer any enlightenment? TIA! |
|
|
|
|