Solved

problem with sp_fulltext_table

Posted on 2004-03-26
5
347 Views
Last Modified: 2011-04-14
when i run

sp_fulltext_table test, drop

it gives me error

Server: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'drop'.

if i give qualifide table name

sp_fulltext_table dbo.test, drop

then it gives me error

Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '.'.

what could be the problem?

0
Comment
Question by:d_kamal
  • 4
5 Comments
 
LVL 13

Accepted Solution

by:
danblake earned 50 total points
Comment Utility
Try:
sp_fulltext_table 'dbo.test','drop'
0
 
LVL 12

Expert Comment

by:ill
Comment Utility
-- input variables are varchar !

sp_fulltext_table 'test', 'drop'
0
 
LVL 13

Expert Comment

by:danblake
Comment Utility
It is because the @action has to be quoted with ' ' identifiers...
so you may find you can just use:

sp_fulltext_table test,'drop'
0
 
LVL 13

Expert Comment

by:danblake
Comment Utility
ill,

the name 'test' is input sysname data-type.
0
 
LVL 13

Expert Comment

by:danblake
Comment Utility
sysname is a nvarchar


Often table names do not need to be fully quoted when passed to a stored procedure.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now