Red Gate forums :: View topic - Prompt Failure w/MERGE statements
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

Prompt Failure w/MERGE statements

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
RRB



Joined: 19 Jun 2009
Posts: 4

PostPosted: Wed Nov 10, 2010 5:32 pm    Post subject: Prompt Failure w/MERGE statements Reply with quote

<Extract>
MERGE Wine.Producer AS CurrentData
USING
(
SELECT DISTINCT ProducerID, ProducerName
FROM Wine.Import
) AS NewData
ON CurrentData.ProducerID = NewData.ProducerID
WHEN MATCHED THEN
UPDATE
SET
CurrentData.ProducerName = NewData.
</Extract>

SQL Prompt fails to suggest any of the column names for the "NewData" object (or any other for that matter) after I enter the final period as shown in the extract. No error messages of any kind are generated.
Back to top
View user's profile Send private message
RRB



Joined: 19 Jun 2009
Posts: 4

PostPosted: Wed Nov 10, 2010 5:34 pm    Post subject: Reply with quote

Correction: the prompt failures are ONLY related to the references to the "NewData" object.
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