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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 two tables with like column names causes prob.

Author  Topic 

acoustic
Starting Member

1 Post

Posted - 2001-01-19 : 17:49:32
If you run a query where two different tables have the same column name, (i.e. SELECT.....Visits.Notes, Contacts.Notes.....FROM....)
from an ASP page, how do you specify which record you want when you output the records. For example, I want to display the Visits.Notes record, some other data, then the Contacts.Notes record. If I use the following:
response.write rs("Visits.Notes") or
response.write rs("Contacts.Notes"), I get an error. If I use
response.write rs("notes"), it writes the records in the Contacts table, but I still can't find a way to access the Notes record from the Visits table. How do you specify which record to write?

Thanks for you help!
~Acoustic

   

- Advertisement -