Solved

problem with sp_fulltext_table

Posted on 2004-03-26
5
352 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
ID: 10685538
Try:
sp_fulltext_table 'dbo.test','drop'
0
 
LVL 12

Expert Comment

by:ill
ID: 10685551
-- input variables are varchar !

sp_fulltext_table 'test', 'drop'
0
 
LVL 13

Expert Comment

by:danblake
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'
0
 
LVL 13

Expert Comment

by:danblake
ID: 10685566
ill,

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

Expert Comment

by:danblake
ID: 10685570
sysname is a nvarchar


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

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

919 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

18 Experts available now in Live!

Get 1:1 Help Now