usemastergoifexists(select*fromdbo.sysdatabaseswherename='Hotel')dropdatabaseHotelGOcreatedatabaseHotelgouseHotelgoifexists(select*fromdbo.sysobjectswhereid=object_id(N'[dbo].[user_Info]')andOBJECTPROPERTY(id,N'IsUserTable')=1)droptable[dbo].[user_Info]G