{"id":19,"date":"2010-06-22T20:33:31","date_gmt":"2010-06-22T20:33:31","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=19"},"modified":"2022-02-17T07:14:16","modified_gmt":"2022-02-17T07:14:16","slug":"does-table-exist","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/sql-server\/queries-microsoft-sql-server\/statements-general\/does-table-exist","title":{"rendered":"Does Table Exist"},"content":{"rendered":"<pre><code>\r\n\tSqlCommand1 = gcnew SqlClient::SqlCommand();\r\n\tSqlCommand1->Connection = SqlConnection1;\r\n\tSqlCommand1->CommandType = CommandType::Text;\r\n\tSqlCommand1->CommandText = \"SELECT count(*) FROM sysobjects WHERE name ='tblLocations'\";\r\n\tif (!Convert::ToBoolean(SqlCommand1->ExecuteScalar()))\t\/\/True if label does exist\r\n\t{\r\n\r\n\t}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SqlCommand1 = gcnew SqlClient::SqlCommand(); SqlCommand1->Connection = SqlConnection1; SqlCommand1->CommandType = CommandType::Text; SqlCommand1->CommandText = &#8220;SELECT count(*) FROM sysobjects WHERE name =&#8217;tblLocations'&#8221;; if (!Convert::ToBoolean(SqlCommand1->ExecuteScalar())) \/\/True if label does exist { }<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-statements-general"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":86,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/19\/revisions\/86"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}