Red Gate forums :: View topic - case sensitive column names
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt 5 EAP
SQL Prompt 5 EAP forum

case sensitive column names

Search in SQL Prompt 5 EAP forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
NormL



Joined: 09 Apr 2010
Posts: 5

PostPosted: Wed Aug 25, 2010 6:33 pm    Post subject: case sensitive column names Reply with quote

Expanding the * on the following query gives:

SELECT
cc.Id ,
Sequence ,
cp.Id ,
sequence
FROM Central.Table1 cc
JOIN Central.Table2 cp ON cc.Id = cp.Id

Which returns:
Ambiguous column name 'Sequence'.
Ambiguous column name 'sequence'.

Would prefer it to generate this:

SELECT
cc.Id ,
cc.Sequence ,
cp.Id ,
cp.sequence
FROM Central.Table1 cc
JOIN Central.Table2 cp ON cc.Id = cp.Id
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group