Ambigous Troulbe With Asp And Sun-asp

Jul 28, 2007

hi

I have a trouble with my ASP-script. It works fine on my microsoft server. But on the unix SUN-ASP-server there is a problem.

I am make an SQL-call where I have 2 ambigous fields (ie two identical from two different tables). It is no problem access the data, but when i am going to get the data it gives me an error.

It's like this:

SQL="Select usernames.*,team.* FROM usernames,team;"
set rs=conn.execute(sql)
(both usernames and teams has the field ID"

And now when i get data i noramlly use

id1=rs("usernames.id")
id2=rs("team.id")

But this xxx.yyy in rs DOESN'T work on the sun server compared to my Access-server.

How can i resolve this? Hope to get help on this ;)

View 2 Replies


ADVERTISEMENT

Ambigous Column Name Message

Jun 11, 2007

I am modifying an existing stored procedure in SQL server 2005. I have added a new field to the sp and am now receiving an ambiguous column name message. The column being referred to was in the sp before I modified. The column is on the line above where I added my new field ( EMPLOYEE NUMBER) to the sp. I am at a loss to why I'm getting this error message when executing the sp because this column existed before I modified. Can anyone help me understand why I'm getting this message all of a sudden and/ or where to look for help? Thanks in advance for any light you can help shed on this matter. Code snippet is below:



[BILL DUE DATE], [PAYMENT DATE AND TIME],

[EMPLOYEE NUMBER] )

Msg 209, Level 16, State 1, Procedure spBuildNoReasonLetter, Line 34

Ambiguous column name 'PAYMENT DATE AND TIME'.



View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved