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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Slow Connectivity over ODBC 8 32
SQL Help 27 40
Query Syntax 17 32
SQL - Update field defined as Text 6 15
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

813 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

15 Experts available now in Live!

Get 1:1 Help Now