Re: Referencing data column by it's name
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Sat, 25 Nov 2006 15:20:25 -0500
nospam@xxxxxxxxx wrote:
here's my code:
<%
set conn = server.createobject("ADODB.Connection")
conn.open "databasename"
set rs = conn.execute("select * from myTable")
http://www.aspfaq.com/show.asp?id=2096
var_firstname = rs(1)
This is the most efficient way to refer to a column (or any item in any
collection) .... bar none. Why do you want to change?
// THE NAME OF COLUMN 1 IS FirstName
rs("Firstname") will work, but what is the need?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- References:
- Referencing data column by it's name
- From: nospam
- Referencing data column by it's name
- Prev by Date: Re: Referencing data column by it's name
- Next by Date: Re: Referencing data column by it's name
- Previous by thread: Re: Referencing data column by it's name
- Next by thread: Re: Referencing data column by it's name
- Index(es):
Relevant Pages
|
|