<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013890" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013890</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/adding-alias-asp-sql-string#comment-1080400</link>
    <description> &lt;p&gt;You can setup aliases for tables in your query but I think you still have to reference them by their real name in the ASP page.&lt;/p&gt;
 </description>
     <pubDate>Mon, 02 Apr 2001 21:59:42 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1080400 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Are you saying it can&#039;t be done?</title>
    <link>https://www.webmaster-forums.net/web-database-development/adding-alias-asp-sql-string#comment-1080399</link>
    <description> &lt;p&gt;Hardcoding the field headings into the asp code is what I have been doing up until now. But I thought that giving the field names aliases in the recordset would be easier. Are you saying that this cannot be done?&lt;/p&gt;
 </description>
     <pubDate>Mon, 02 Apr 2001 21:40:37 +0000</pubDate>
 <dc:creator>akohl</dc:creator>
 <guid isPermaLink="false">comment 1080399 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/adding-alias-asp-sql-string#comment-1080383</link>
    <description> &lt;p&gt;Andy,&lt;/p&gt;
&lt;p&gt;I see what you mean. It&#039;s good practice not to use field names from the database in your presentation layer. The headings should be hard coded in the ASP to be something friendly for the user. This would avoid any mistakes in the future, incase someone renamed a field.&lt;/p&gt;
 </description>
     <pubDate>Mon, 02 Apr 2001 13:53:13 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1080383 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>alias</title>
    <link>https://www.webmaster-forums.net/web-database-development/adding-alias-asp-sql-string#comment-1080382</link>
    <description> &lt;p&gt;What I mean by alias is that rs.fields(0).name will return the alias that I chose instead of the actual name of the field, which might not be an appropriate field heading for presenting to the user.&lt;/p&gt;
 </description>
     <pubDate>Mon, 02 Apr 2001 13:46:53 +0000</pubDate>
 <dc:creator>akohl</dc:creator>
 <guid isPermaLink="false">comment 1080382 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/adding-alias-asp-sql-string#comment-1080376</link>
    <description> &lt;p&gt;Andy,&lt;/p&gt;
&lt;p&gt;I&#039;m not sure what you mean by alias, do you mean you want to use a variable? If so then you would code it like so:&lt;/p&gt;
&lt;p&gt;strSQL = &quot;SELECT * FROM My Table WHERE MyField = &#039;&quot; &amp;amp; MyVariable &amp;amp; &quot;&#039;&quot;&lt;/p&gt;
&lt;p&gt;As for books, I don&#039;t know of any specific titles, but I find books by WROX to be very good. An ASP book should at least have one chapter on databases. You can also find some examples at the following sites:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.asp101.com&quot; class=&quot;bb-url&quot;&gt;asp101.com&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.ultimateasp.com&quot; class=&quot;bb-url&quot;&gt;ultimateasp.com&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.freevbcode.com&quot; class=&quot;bb-url&quot;&gt;freevbcode.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 02 Apr 2001 12:56:10 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1080376 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
