Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Syntax error on one server, no problem on another in microsoft.public.sqlserver.programming

Started 1 month ago by Tom Dacon
Two SQL Server 2005 SP3 instances, and a script that pulls a syntax error on one server, but runs fine on the other: Here's about the simplest SQL that shows the problem: select * from dp_order as o where o.customer_id in (select customer_id from dbo.dummy_function(o.customer_id)) and here's the error in SQL ...
Site: Discussions in microsoft.public.sqlserver.programming  Discussions in microsoft.public.sqlserver.programming - site profile
Forum: microsoft.public.sqlserver.programming  microsoft.public.sqlserver.programming - forum profile
Total authors: 1 author
Total thread posts: 2 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

Tom Dacon replied 1 month ago
Answered the question myself, as is the usual way of things... The database that the script failed on was in SQL Server 2000 compatibility mode. Looks like 2000 didn't SQL allow table valued UDFs in WHERE clauses if the UDF is passed the value of a column from a table in the query. Tom Dacon...

 

Top contributing authors

Name
Posts
Tom Dacon
2
user's latest post:
Syntax error on one server, no...
Published (2009-11-05 15:32:00)
  Answered the question myself, as is the usual way of things... The database that the script failed on was in SQL Server 2000 compatibility mode. Looks like 2000 didn't SQL allow table valued UDFs in WHERE clauses if the UDF is passed the value of a column from a table in the query. Tom Dacon  

Related threads on "Discussions in microsoft.public.sqlserver.programming":

Related threads on other sites:

Thread profile page for "Syntax error on one server, no problem on another in microsoft.public.sqlserver.programming" on http://www.microsoft.com/communities/newsgroups.... This report page is a snippet summary view from a single thread "Syntax error on one server, no problem on another in microsoft.public.sqlserver.programming", located on the Message Board at http://www.microsoft.com/communities/newsgroups.... This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity