problem with sp_fulltext_table

Posted on 2004-03-26
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?

Question by:d_kamal
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
LVL 13

Accepted Solution

danblake earned 50 total points
ID: 10685538
sp_fulltext_table 'dbo.test','drop'
LVL 12

Expert Comment

ID: 10685551
-- input variables are varchar !

sp_fulltext_table 'test', 'drop'
LVL 13

Expert Comment

ID: 10685553
It is because the @action has to be quoted with ' ' identifiers...
so you may find you can just use:

sp_fulltext_table test,'drop'
LVL 13

Expert Comment

ID: 10685566

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

Expert Comment

ID: 10685570
sysname is a nvarchar

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

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Table where row act as column 11 71
MS SQL Sever Import/export problem 7 51
How to trim a value in SQL 2 28
Need SQL Update 2 9
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 …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

726 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