deletion of table

  • how can we delete the all the user tables and SP'S from a database ?

  • if your using 2005

    then

    select 'drop table '+table_schema+'.'+table_name from information_schema

    select 'drop procedure '+routine_schema+'.'+routine_name from information_schema.ROUTINES

    where ROUTINE_TYPE ='procedure'

    this will generate drop script.

    or open SSMS open database and select tables folder and press f7 key select all user table press del button 🙂

    similarly procedures

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply