<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-495177919198719500.post8146972654620250313..comments</id><updated>2011-11-05T05:21:25.661-07:00</updated><category term='Integration Services SSIS'/><category term='SQL Azure'/><category term='Link List'/><category term='SQL Data Services'/><category term='Transact SQL T-SQL'/><category term='SQL Server Training'/><category term='Business Intelligence'/><category term='SQL Server Administration'/><category term='SQL Server Denali'/><category term='Analysis Services SSAS'/><category term='Reporting Services SSRS'/><category term='SQL Server General'/><title type='text'>Comments on Microsoft Sql Server Tutorials: Check if a database or table exists using Sql Serv...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.sqlservercurry.com/feeds/8146972654620250313/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html'/><author><name>Suprotim Agarwal</name><uri>http://www.blogger.com/profile/08349831623922214390</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_0j4bzarlOBg/TEefNfVYJBI/AAAAAAAABOE/GoGXFIVogfU/S220/Supmvp.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-7579389090292008022</id><published>2011-11-05T05:21:25.661-07:00</published><updated>2011-11-05T05:21:25.661-07:00</updated><title type='text'>@Vagelis

substitute the PRINT with a SELECT. Enjo...</title><content type='html'>@Vagelis&lt;br /&gt;&lt;br /&gt;substitute the PRINT with a SELECT. Enjoy =)&lt;br /&gt;&lt;br /&gt;Ivano</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/7579389090292008022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/7579389090292008022'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1320495685661#c7579389090292008022' title=''/><author><name>ReNegaDE</name><uri>http://www.blogger.com/profile/14396190072906234049</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-854814332'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-6778365420619011633</id><published>2010-09-08T15:32:24.932-07:00</published><updated>2010-09-08T15:32:24.932-07:00</updated><title type='text'>Most Excellent, thank you.  I hope it&amp;#39;s clear ...</title><content type='html'>Most Excellent, thank you.  I hope it&amp;#39;s clear to everyone that this is a query that you&amp;#39;d be running on the server itself, and that we who are running VB. code against the server are going to construct these as a query strings that we&amp;#39;d be running from a command object (or however you choose to run queries).  This seems well suited to be made as a stored procedure, pass it the table name, perhaps object type and schema and have the result returned.  I&amp;#39;ll post that once I figure it out.&lt;br /&gt;Sorry I&amp;#39;m contributing over two years after the rest of you...&lt;br /&gt;Best Regards</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/6778365420619011633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/6778365420619011633'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1283985144932#c6778365420619011633' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2024721639'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-6254544818446064443</id><published>2009-11-07T02:11:09.574-08:00</published><updated>2009-11-07T02:11:09.574-08:00</updated><title type='text'>hello
i have a problem with those if statements in...</title><content type='html'>hello&lt;br /&gt;i have a problem with those if statements in sql server&lt;br /&gt;&lt;br /&gt;i call that query with vb.net&lt;br /&gt;&lt;br /&gt;IF OBJECT_ID (&amp;#39;hn.dbo.AWBuildVersion&amp;#39;,&amp;#39;U&amp;#39;) IS NOT  NULL print &amp;#39;table exists&amp;#39;  ELSE Print &amp;#39;Table Does Not Exists&amp;#39;&lt;br /&gt;&lt;br /&gt;and i reseave the message &lt;br /&gt;the read try is not valid because it doesnt exist data&lt;br /&gt;&lt;br /&gt;can anyone help??</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/6254544818446064443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/6254544818446064443'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1257588669574#c6254544818446064443' title=''/><author><name>vagelis</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-138961620'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-8279155432779387390</id><published>2009-02-18T01:39:00.000-08:00</published><updated>2009-02-18T01:39:00.000-08:00</updated><title type='text'>Thank you very much</title><content type='html'>Thank you very much</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/8279155432779387390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/8279155432779387390'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1234949940000#c8279155432779387390' title=''/><author><name>Senthil</name><uri>http://www.blogger.com/profile/13751284164349932360</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1390827787'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-7279857358378969137</id><published>2009-01-23T05:24:00.000-08:00</published><updated>2009-01-23T05:24:00.000-08:00</updated><title type='text'>Very useful, you can also do this if youre running...</title><content type='html'>Very useful, you can also do this if youre running across several db's in a cursor or something.&lt;BR/&gt;&lt;BR/&gt;declare @db_name varchar(255)&lt;BR/&gt;set @db_name = 'db_test'&lt;BR/&gt;  /*only run in dbs that have view*/&lt;BR/&gt;  IF OBJECT_ID (@db_name+'.dbo.custom_count_dbm_mth2_vw','V') IS NOT NULL&lt;BR/&gt;  Print 'do this'&lt;BR/&gt;  ELSE&lt;BR/&gt;  Print 'do nothing or something else'</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/7279857358378969137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/7279857358378969137'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1232717040000#c7279857358378969137' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1727433345'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-442762889264939983</id><published>2009-01-23T05:22:00.000-08:00</published><updated>2009-01-23T05:22:00.000-08:00</updated><title type='text'>Done this before, am having a blonde day so this w...</title><content type='html'>Done this before, am having a blonde day so this was very helpful thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/442762889264939983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/442762889264939983'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1232716920000#c442762889264939983' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-350559831'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-7963876761753577395</id><published>2008-09-25T11:06:00.000-07:00</published><updated>2008-09-25T11:06:00.000-07:00</updated><title type='text'>Thanks for the information</title><content type='html'>Thanks for the information</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/7963876761753577395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/7963876761753577395'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1222365960000#c7963876761753577395' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1123004319'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-993357997997966896</id><published>2008-07-05T20:12:00.000-07:00</published><updated>2008-07-05T20:12:00.000-07:00</updated><title type='text'>Thanks, I was also looking for the same thing.  Th...</title><content type='html'>Thanks, I was also looking for the same thing.  Thank you.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/993357997997966896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/993357997997966896'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1215313920000#c993357997997966896' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1470996494'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-3610436990391514528</id><published>2008-06-11T11:06:00.000-07:00</published><updated>2008-06-11T11:06:00.000-07:00</updated><title type='text'>thank you, this was very useful</title><content type='html'>thank you, this was very useful</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/3610436990391514528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/8146972654620250313/comments/default/3610436990391514528'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html?showComment=1213207560000#c3610436990391514528' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2007/12/check-if-database-or-table-exists-using.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-8146972654620250313' source='http://www.blogger.com/feeds/495177919198719500/posts/default/8146972654620250313' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1919299955'/></entry></feed>
