Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ambiguous column name
Message
General information
Forum:
Sybase
Category:
SQL Syntax
Miscellaneous
Thread ID:
01585695
Message ID:
01585762
Views:
31
>Are now moving to sqlserver from sybase and are testing new applications with the database, but it has created a problem: many of the queries that are running are generating the error Ambiguous column name are dozens of screens that are presenting this problem not occurred in sybase. Is there some command to make consistent sybase queries that generated no problem?.
>
>The queries are in each form and invoked with SQLEXEC ()
>
>Sample :
>
>work fine in Sybase but not in sqlserver
>
>select DESC_PROF,CODI_PROF,DESC_PROF from PROF order by DESC_PROF
>
>thank you very much for your help.

You have DESC_PROF twice, change the alias of one of the columns if you really need to have it twice, i.e. select DESC_PROF,CODI_PROF,DESC_PROF as NEW_DESC_PROF from PROF order by DESC_PROF
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform