Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Delete Table

Author  Topic 

shapper
Constraint Violating Yak Guru

450 Posts

Posted - 2008-09-30 : 21:00:13
Hello,

When deleting table, Drop MyTable, how do I specify in which database the table is?

I am working with Visual Studio and I have a connection to Model database and I would like to delete a table from another database.

Is this possible?

Thanks,
Miguel

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-09-30 : 21:03:45
DROP TABLE DatabaseName.ObjectOwner.ObjectName

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -