Red Gate forums :: View topic - SQL Source Control can't parse my script, SqlServer 2008 do
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control 1
SQL Source Control 1 forum

SQL Source Control can't parse my script, SqlServer 2008 do

Search in SQL Source Control 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Cactus



Joined: 10 Feb 2011
Posts: 1

PostPosted: Thu Feb 10, 2011 10:28 pm    Post subject: SQL Source Control can't parse my script, SqlServer 2008 do Reply with quote

I'm having almost the same error as this post: http://www.red-gate.com/messageboard/viewtopic.php?p=43223&sid=2272a2786f47b8a076b955eb6f464af4

But my problem is with the method CONTAINS using the LANGUAGE keyword.

Here's a part of my query:

SELECT @CountRetailer = COUNT(*)
FROM RetailerSearchView ret
WHERE ret.IsActive = 1
AND
(
@RetailerCategoryId = 0 OR
ret.PrimaryCategoryId = @RetailerCategoryId OR
ret.SecondaryCategory1Id = @RetailerCategoryId OR
ret.SecondaryCategory2Id = @RetailerCategoryId
)
AND CONTAINS(*, @SearchCondition, LANGUAGE @Language)

and your parser seems to dislike the LANGUAGE @Language part of the CONTAINS method.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Mon Feb 21, 2011 5:59 pm    Post subject: Reply with quote

Thanks for your post.

Which version are you using? I've tried replicating the issue here on a similar script and it seems to work; however I'm using a version 2 EAP.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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