Re: Forward-only recordsets
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Wed, 16 Apr 2008 16:18:29 -0400
JohnnyC wrote:
I've got a strange problem with a forward-only recordset.
The front-end is an ASP web. The backend is a sql2005 database.
In the code, there are sql statements using '*'. For example "select
* from tableA"
This is pretty universally regarded as a bad practice in production
code: http://www.aspfaq.com/show.asp?id=2096
The recordset is populated using theIt may be an issue with the datatypes. Are you using ODBC and are Text
connection.execute method. i.e. set rs = conn.execute(sql)
When referencing the fields in the recordset, if they are not
referenced in the same order as the underlying table, we are getting
blanks returned. If I use explicit field names in the sql call, it
doesn't matter the order of how we read the rs fields.
or Image columns involved?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Follow-Ups:
- Re: Forward-only recordsets
- From: JohnnyC
- Re: Forward-only recordsets
- References:
- Forward-only recordsets
- From: JohnnyC
- Forward-only recordsets
- Prev by Date: Forward-only recordsets
- Next by Date: Re: Could not update; currently locked error
- Previous by thread: Forward-only recordsets
- Next by thread: Re: Forward-only recordsets
- Index(es):
Relevant Pages
|
|