{"id":1652,"date":"2018-09-30T19:28:42","date_gmt":"2018-09-30T19:28:42","guid":{"rendered":"http:\/\/www.theSQLReport.com\/?p=1652"},"modified":"2018-09-30T19:31:51","modified_gmt":"2018-09-30T19:31:51","slug":"teradata-error-drop-database-failed-3552","status":"publish","type":"post","link":"https:\/\/www.theSQLReport.com\/?p=1652","title":{"rendered":"TERADATA ERROR &#8211; DROP DATABASE Failed. 3552:"},"content":{"rendered":"<p>When attempting to drop a database that I created for temporary use, I received the following error when I ran the &#8220;DROP DATABASE &lt; database name &gt;&#8221; command:<\/p>\n<h5>DROP DATABASE Failed. 3552: Cannot DROP databases with tables, journal tables, views, macros, or zones.<\/h5>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2018\/09\/DropDatabaseFailed3552.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1654 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2018\/09\/DropDatabaseFailed3552.jpg\" alt=\"DROP DATABASE Failed 3552\" width=\"752\" height=\"239\" \/><\/a><\/p>\n<p>All the objects in the database need to be deleted first, before the database can be dropped.\u00a0 The &#8220;DELETE DATABASE &lt; database name &gt;&#8221; will remove all objects existing in the database.\u00a0 Then the &#8220;DROP DATABASE&#8221; command can be run successfully.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2018\/09\/DropDatabaseSuccess.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1653 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2018\/09\/DropDatabaseSuccess.jpg\" alt=\"DELETE DATABASE \" width=\"616\" height=\"235\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2018\/09\/DropDatabaseSuccess.jpg 616w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2018\/09\/DropDatabaseSuccess-300x114.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2018\/09\/DropDatabaseSuccess-210x80.jpg 210w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When attempting to drop a database that I created for temporary use, I received the following error when I ran the &#8220;DROP DATABASE &lt; database name &gt;&#8221; command: DROP DATABASE &hellip; <a class=\"readmore\" href=\"https:\/\/www.theSQLReport.com\/?p=1652\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1654,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[136,135],"class_list":["post-1652","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-teradata","tag-delete-database","tag-drop-database"],"_links":{"self":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1652"}],"collection":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1652"}],"version-history":[{"count":4,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1652\/revisions"}],"predecessor-version":[{"id":1658,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1652\/revisions\/1658"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/media\/1654"}],"wp:attachment":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}