You are here: Re: A question about an error message « MsSQL Server « IT news, forums, messages
Re: A question about an error message

Posted by Erland Sommarskog on 12/19/06 16:28

(Comagmbh@gmx.de) writes:
> Hi! Okay I wrote this:
>
> ALTER VIEW view_results_7
> AS
> SELECT view_results_7a.*, table.MCC,
> table.MNC, ...table.HPRP
> FROM view_results_7a INNER JOIN
> table ON view_results_7a.MCC = table.MCC AND view_results_7a.MNC =
> table.MNC
> WHERE view_results_7a.IMSI <>
> IMSI_Blacklist..tblIMSI_Stiering_Blacklist.IMSI
>
>
> But there is still this error message:
>
> Server: No 107, 16, state 3 procedure view_results_7
> "The column prefix '%.*ls' does not match with a table name or alias
> name used in the query."

What ugly environment are you using that only gives the unexpanaded
error message?

In any case, that IMSI_Blacklist..tblIMSI_Stiering_Blacklist still
comes out of nowhere. You need to mention it in the FROM-JOIN clause.

Besides, you have something called "table" in the query above. Since
TABLE is a reserved keyword, I would expect that to yield a syntax error,
so I suspect that you are not even posting the query you are using.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация