﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Leon Platt / Article Discussions / Article Discussions by Author  / ASP and ADO Gotcha - Duplicate Field Names in a Query / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 13:33:29 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: ASP and ADO Gotcha - Duplicate Field Names in a Query</title><link>http://www.sqlservercentral.com/Forums/Topic581-28-1.aspx</link><description>Once the Join is done, there are no P. and A. qualifiers anymore.  You simply have to alias the fieldnames to something meaningful.  I suppose it's considered a 'feature' since many times the identically named fields would have identical data (but then why return both?). </description><pubDate>Tue, 05 Feb 2002 11:34:00 GMT</pubDate><dc:creator>BobAtDBS</dc:creator></item><item><title>RE: ASP and ADO Gotcha - Duplicate Field Names in a Query</title><link>http://www.sqlservercentral.com/Forums/Topic581-28-1.aspx</link><description>I agree with Leon that this isn't so much about ADO as it is best practices. If you're aliasing your tables and cols correctly, you'll never see this. Just out of curiousity, can anyone tell me if this is a bug or a feature of ADO?Andy </description><pubDate>Tue, 14 Aug 2001 05:06:00 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item><item><title>RE: ASP and ADO Gotcha - Duplicate Field Names in a Query</title><link>http://www.sqlservercentral.com/Forums/Topic581-28-1.aspx</link><description>&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;Is this article for real? You must be very new to ADO programming to just be hitting this.&lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt;That would be an incorrect assumption but thanks for the feedback anyway.  The thing is, I probably never would have run across this if it wasn't for the cut and paste programming I happend to be doing at the time.  Typically I would have written the sql statement by hand in which case I would have aliased the fields accordingly.  Yes GRN - you are correct  &lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;use a alias i suppose !! &lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt; Although there are several solutions to this problem the best is to alias the rating as "Article Rating" and "Book Rating", thus no ambiguity.  The purpose of this Tip was not to uncover some deep dark secret of ADO but rather to give other programmers something to think about when creating sql statements that return record sets in ADO.  </description><pubDate>Sat, 11 Aug 2001 21:35:00 GMT</pubDate><dc:creator>Leon Platt</dc:creator></item><item><title>RE: ASP and ADO Gotcha - Duplicate Field Names in a Query</title><link>http://www.sqlservercentral.com/Forums/Topic581-28-1.aspx</link><description>Is this article for real?  You must be very new to ADO programming to just be hitting this. </description><pubDate>Thu, 09 Aug 2001 15:42:00 GMT</pubDate><dc:creator>robiwon</dc:creator></item><item><title>RE: ASP and ADO Gotcha - Duplicate Field Names in a Query</title><link>http://www.sqlservercentral.com/Forums/Topic581-28-1.aspx</link><description>use a alias i suppose !! </description><pubDate>Wed, 08 Aug 2001 06:11:00 GMT</pubDate><dc:creator>GRN</dc:creator></item><item><title>RE: ASP and ADO Gotcha - Duplicate Field Names in a Query</title><link>http://www.sqlservercentral.com/Forums/Topic581-28-1.aspx</link><description>That's wonderful, but what is the solution?</description><pubDate>Wed, 08 Aug 2001 05:59:00 GMT</pubDate><dc:creator>mmaslanik</dc:creator></item><item><title>ASP and ADO Gotcha - Duplicate Field Names in a Query</title><link>http://www.sqlservercentral.com/Forums/Topic581-28-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF=http://www.sqlservercentral.com/columnists/lplatt/aspandadogotchaduplicatefieldnamesinaquery.asp&gt;http://www.sqlservercentral.com/columnists/lplatt/aspandadogotchaduplicatefieldnamesinaquery.asp&lt;/A&gt;</description><pubDate>Mon, 16 Jul 2001 00:00:00 GMT</pubDate><dc:creator>Leon Platt</dc:creator></item></channel></rss>