Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 13th, 2006, 02:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default Incorrect syntax near 'FULLTEXT'?

The following query, which looks good to me, gets "Incorrect syntax near 'FULLTEXT'" when I try to run it in the 2005 Management Studio and in Enterprise Manager:

CREATE FULLTEXT CATALOG [VirtualMOSCatalog]
IN PATH N'c:\Program Files\Microsoft SQL Server\MSSQL\FTDATA'
WITH ACCENT_SENSITIVITY = ON
AUTHORIZATION [dbo]

The database is Full-Text Index enabled and this code was automatically generated from another database.

I get a similar error from this query:

CREATE LOGIN [MOSuser] WITH PASSWORD=N'abc123', DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON

What do I need to do to get these queries to run?
 
Old April 18th, 2006, 09:34 AM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Ron, I copied and pasted your exact syntax into a query window in my SQL Server 2005 environment and both statements executed without error. Are you still getting this error?

 
Old April 21st, 2006, 10:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Yeah. It's driving me nuts. I'm trying to run it by simply opening the file in a window in Management Studio. is there someplace else these sorts of scripts have to be run to recognize the syntax?
 
Old April 21st, 2006, 12:53 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Not that i know of. That is where i ran them...in a query window in Management Studio.

I would start dissecting the statement, make it as simple as possible. For example:

CREATE FULLTEXT CATALOG VirtualMOSCatalog
GO

If that succeeds, drop it and try a more complicated statement:

CREATE FULLTEXT CATALOG VirtualMOSCatalog
IN PATH 'c:\program files\microsoft sql server\mssql\data'
GO

and so on. I would also try the same thing with the CREATE LOGIN statement...


The Following User Says Thank You to SQLScott For This Useful Post:
Ron Howerton (February 22nd, 2013)
 
Old April 24th, 2006, 07:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Tried that. Still puked on FULLTEXT. But we understand why, now.

The problem is that the script syntax is for a SQL Server 2005 database and we're still running 2000, although using the new Server Management Studio. For some reason understood only by the developer, she used 2005 to generate the script even though it was a SQL Server 2000 database being scripted. The Studio won't translate 2005 code to 2000. We got 2000 format script - problem solved.

So, it's just a slightly smaller version of the miles/kilometers miscommunication experienced by that doomed Mars explorer. ;)

Thanks for checking my sanity, though. :)
 
Old August 30th, 2006, 03:39 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Guys, I recently ran into the same issue but was able to get around it using enterprise manager to create my index. Can you explain what the difference was in the script that allowed it to work on a 2000 database.

Thx





Similar Threads
Thread Thread Starter Forum Replies Last Post
Incorrect syntax near '.' meraj ADO.NET 6 February 27th, 2012 01:01 AM
Incorrect syntax near '!' sinapra Classic ASP Databases 8 August 25th, 2004 02:15 AM
Incorrect syntax near '`' Hez Classic ASP Databases 3 August 5th, 2004 08:13 AM
Incorrect syntax...... Adam H-W Classic ASP Databases 8 June 21st, 2004 11:14 AM
Incorrect SQL Syntax??! ckudrna Access ASP 1 June 5th, 2003 01:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.