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 othellomy on 12/20/06 04:27

Hi,
As suggested by Erland, table is a reserve keyword therefore you
can't have it in your query. I thought you are using table to
reference some pseodo table in the from clause so I used that because
you did not post the actual query. You have to post the actual query
for two reasons. Reason 1: I can see if you are using the 'table'
keyword in your query. If yeas, then it is obvious that was the error.
Number 2: if you have a table name in the select clause but missing
from the from clause then it will also cause error and also if you have
more tables in the from clause but not joining them appropriately in
the join or where clasue then it will be error too. So, the best thing
is if you post the actual query exactly as is.

Comagmbh@gmx.de wrote:
> Hi
>
> Thanks for your answer, but the problem still exists. There is the same
> error message like before.
>
> othellomy@yahoo.com schrieb:
>
> >
> > ALTER VIEW view_results_7
> > AS
> > SELECT TOP 100 PERCENT view_results_7a.*, table.MCC,
> > table.MNC, ...table.HPRP
> > FROM view_results_7a INNER JOIN
> > table ON view_results_7a.MCC = table.MCC
> > WHERE view_results_7a.IMSI <> tblIMSI_Stiering_Blacklist.IMSI
> > ORDER BY view_results_7a.BegTime DESC
> >
>
>
> I have forgot to tell you that the table tblIMSI_Stiering_Blacklist is
> from another database but on the same server, so I have to write in
> this way:
>
> ALTER VIEW view_results_7
> AS
> SELECT TOP 100 PERCENT view_results_7a.*, table.MCC,
> table.MNC, ...table.HPRP
> FROM view_results_7a INNER JOIN
> table ON view_results_7a.MCC = table.MCC
> WHERE view_results_7a.IMSI <>
> IMSI_Blacklist.dbo.tblIMSI_Stiering_Blacklist.IMSI
> ORDER BY view_results_7a.BegTime DESC
>
> The error is still the same :-(

 

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

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