Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sp_dropobjectdef Error Message

Status
Not open for further replies.

6656

Programmer
Nov 5, 2002
104
US
Hi,
I got a message "incorrect syntax SP_DROPOBJECTDEF " from running below code. Please someone can help me to make correction. Thanks in advance. Mike

/* sql code */
IF OBJECT_ID('OTLT') IS NOT NULL
BEGIN
DROP VIEW OTLT
SP_DROPOBJECTDEF 'OTLT' /* deletes the CIS mapping */
IF OBJECT_ID('OTLT') IS NOT NULL
PRINT '<<< FAILED DROPPING view OTLT >>>'
ELSE
PRINT '<<< DROPPED view OTLT >>>'
END
go
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top