<?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/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3588981341049634935</id><updated>2026-10-10T12:53:33.158+05:30</updated><category term="T-Sql queries"/><title type='text'>Microsoft SQL Server DBA</title><subtitle type='html'>This blog is for Microsoft SQL Database Administrator (DBA), one can view the posts and can post their comment/concern to this blog regarding Microsoft SQL Server Administration. The blog will have information related Microsoft SQL Server Administration and latest updates.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-6496390398071101342</id><published>2012-01-26T17:47:00.001+05:30</published><updated>2012-01-26T17:47:20.135+05:30</updated><title type='text'>SQL Server 2008 different editions...!</title><content type='html'>&lt;div&gt;&lt;b&gt;SQL Server 2008 is available in the following editions:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;􀁑 &lt;u&gt;Enterprise&lt;/u&gt; Designed for the largest organizations and those needing to leverage the&lt;/div&gt;&lt;div&gt;full power of the SQL Server 2008 platform.&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;􀁑 &lt;u&gt;Standard&lt;/u&gt; Designed for small and midsized organizations that do not need all the&lt;/div&gt;&lt;div&gt;capabilities available in SQL Server 2008 Enterprise.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;􀁑 &lt;u&gt;Workgroup&lt;/u&gt; Suitable for small departmental projects with a limited set of features.&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;􀁑 &lt;u&gt;Express&lt;/u&gt; A freely redistributable version of SQL Server that is designed to handle&lt;/div&gt;&lt;div&gt;the needs of embedded applications as well as the basic data storage needs for&lt;/div&gt;&lt;div&gt;server-based applications, such as Web applications with a small number of users.&lt;/div&gt; &lt;div&gt;platform, please refer to the book Microsoft SQL Server 2008 Step by Step (Microsoft Press,&lt;/div&gt;&lt;div&gt;2008), which provides overview chapters on every SQL Server 2008 feature.&lt;/div&gt;&lt;div&gt;12 CHAPTER 1 Installing and Confi guring SQL Server 2008&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;􀁑 &lt;u&gt;Compact&lt;/u&gt; Designed as an embedded database.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;􀁑 &lt;u&gt;Developer&lt;/u&gt; Designed for use by developers in creating SQL Server applications.&lt;/div&gt;&lt;div&gt;SQL Server 2008 Developer has all the features and capabilities as SQL Server 2008&lt;/div&gt; &lt;div&gt;Enterprise, except that it is not allowed to be used in a production environment.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;􀁑 &lt;u&gt;Evaluation&lt;/u&gt; Designed to allow organizations to evaluate SQL Server 2008. SQL Server&lt;/div&gt;&lt;div&gt;2008 Evaluation has all the features and capabilities as SQL Server 2008 Enterprise,&lt;/div&gt; &lt;div&gt;except that it is not allowed to be used in a production environment and it expires&lt;/div&gt;&lt;div&gt;after 180 days.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;-- &lt;br&gt;&lt;span style=&quot;border-collapse:collapse;font-family:arial,sans-serif;font-size:13px&quot;&gt;For more articles, Please Visit : &lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot; style=&quot;color:rgb(0,0,204)&quot; target=&quot;_blank&quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;br&gt;  </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/6496390398071101342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2012/01/sql-server-2008-different-editions.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/6496390398071101342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/6496390398071101342'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2012/01/sql-server-2008-different-editions.html' title='SQL Server 2008 different editions...!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-7614639463862379531</id><published>2011-08-10T01:21:00.001+05:30</published><updated>2011-08-10T01:21:28.305+05:30</updated><title type='text'>Good Microsoft SQL Server information sites.</title><content type='html'>Good Microsoft SQL Server information sites.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-top:7.5pt;margin-right:0cm;margin-bottom:7.5pt; margin-left:0cm;line-height:normal;mso-outline-level:2&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://www.mssqlcity.com/Articles/Replic/SetupSR/SetupSR.htm&quot;&gt;http://www.mssqlcity.com/Articles/Replic/SetupSR/SetupSR.htm&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-top:7.5pt;margin-right:0cm;margin-bottom:7.5pt; margin-left:0cm;line-height:normal;mso-outline-level:2&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://www.w3schools.com/sql/&quot;&gt;http://www.w3schools.com/sql/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-top:7.5pt;margin-right:0cm;margin-bottom:7.5pt; margin-left:0cm;line-height:normal;mso-outline-level:2&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://www.1keydata.com/sql/&quot;&gt;http://www.1keydata.com/sql/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-top:7.5pt;margin-right:0cm;margin-bottom:7.5pt; margin-left:0cm;line-height:normal;mso-outline-level:2&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://vyaskn.tripod.com/iq.htm&quot;&gt;http://vyaskn.tripod.com/iq.htm&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-top:7.5pt;margin-right:0cm;margin-bottom:7.5pt; margin-left:0cm;line-height:normal;mso-outline-level:2&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://users.telenet.be/pecop/sqlr/sqlbasics.html&quot;&gt;http://users.telenet.be/pecop/sqlr/sqlbasics.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-top:7.5pt;margin-right:0cm;margin-bottom:7.5pt; margin-left:0cm;line-height:normal;mso-outline-level:2&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://blog.sqldbasupport.com/&quot;&gt;http://blog.sqldbasupport.com/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-top:7.5pt;margin-right:0cm;margin-bottom:7.5pt; margin-left:0cm;line-height:normal;mso-outline-level:2&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://databases.aspfaq.com/database/should-i-use-a-view-a-stored-procedure-or-a-user-defined-function.html&quot;&gt;http://databases.aspfaq.com/database/should-i-use-a-view-a-stored-procedure-or-a-user-defined-function.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-top:7.5pt;margin-right:0cm;margin-bottom:7.5pt; margin-left:0cm;line-height:normal;mso-outline-level:2&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://www.aspfaq.com/downloads.asp&quot;&gt;http://www.aspfaq.com/downloads.asp&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span lang=&quot;EN-US&quot; style=&quot;font-size:11.0pt;line-height:115%;font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:AR-SA&quot;&gt;&lt;a href=&quot;http://www.java2s.com/Code/SQLServer/CatalogSQLServer.htm&quot;&gt;&lt;b&gt;http://www.java2s.com/Code/SQLServer/CatalogSQLServer.htm&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;&lt;span style=&quot;border-collapse:collapse;font-family:arial, sans-serif;font-size:13px&quot;&gt;For more articles, Please Visit : &lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot; style=&quot;color:rgb(0, 0, 204)&quot; target=&quot;_blank&quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;br&gt;  &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/7614639463862379531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/08/good-microsoft-sql-server-information.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/7614639463862379531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/7614639463862379531'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/08/good-microsoft-sql-server-information.html' title='Good Microsoft SQL Server information sites.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-2780524640515017468</id><published>2011-08-06T21:39:00.001+05:30</published><updated>2011-08-06T21:39:53.134+05:30</updated><title type='text'>Which system database of which we can&#39;t take the backup?</title><content type='html'>&lt;p class=&quot;docText&quot;&gt;We can&amp;#39;t take the backup of the tempdb database and the &lt;span class=&quot;docEmphasis&quot;&gt;tempdb&lt;/span&gt;&lt;a name=&quot;engine utilizes&quot;&gt;&lt;/a&gt; database is a universal &amp;quot;scratch&amp;quot; area within SQL  Server. The SQL Server engine utilizes tempdb as a temporary storage area when  doing sorting and aggregation operations. &lt;a name=&quot;iddle1001&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1002&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1004&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1407&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1507&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1749&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle2003&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle3048&quot;&gt;&lt;/a&gt;&lt;a name=&quot;use of&quot;&gt;&lt;/a&gt;Applications can also utilize tempdb  through the use of temporary tables, procedures, and cursors. You can look at  tempdb as serving a function similar to the paging file within Windows. Anything  created within tempdb, by its very nature, is temporary. When you restart a SQL  Server instance, tempdb is wiped out and re-created.&lt;/p&gt;&lt;p class=&quot;docText&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium; &quot;&gt;You should never create any object that is required to be persistent within tempdb, because you will lose anything stored in tempdb when the instance is restarted.&lt;/span&gt;&lt;/p&gt; -- &lt;br&gt;&lt;span style=&quot;border-collapse:collapse;font-family:arial, sans-serif;font-size:13px&quot;&gt;For more articles, Please Visit : &lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot; style=&quot;color:rgb(0, 0, 204)&quot; target=&quot;_blank&quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;br&gt;  </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/2780524640515017468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/08/which-system-database-of-which-we-cant.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/2780524640515017468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/2780524640515017468'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/08/which-system-database-of-which-we-cant.html' title='Which system database of which we can&#39;t take the backup?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-4132521876364560683</id><published>2011-08-06T21:30:00.001+05:30</published><updated>2011-08-06T21:30:28.857+05:30</updated><title type='text'>How to get list of Database Users</title><content type='html'>&lt;div&gt;The below query will list of out list of Database user&amp;#39;s&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;use ReportServer&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;sp_helpuser&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-- &lt;br&gt;&lt;span style=&quot;border-collapse:collapse;font-family:arial, sans-serif;font-size:13px&quot;&gt;For more articles, Please Visit : &lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot; style=&quot;color:rgb(0, 0, 204)&quot; target=&quot;_blank&quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;br&gt;  &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/4132521876364560683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/08/how-to-get-list-of-database-users.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/4132521876364560683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/4132521876364560683'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/08/how-to-get-list-of-database-users.html' title='How to get list of Database Users'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-5741010591738492544</id><published>2011-06-29T00:01:00.000+05:30</published><updated>2011-06-29T00:01:40.921+05:30</updated><title type='text'>The basic differences between Primary Key and Unique key are as follows</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;1) By default Primary Key will generate Clustured Index whereas Unique Key will Generate Non-Clustured Index.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;2) Primary Key is a combination of Unique and NOT NULL Constraints so it can’t have duplicate values or any NUll Whereas for Oracle UNIQUE Key can have any number of NULL whereas for SQL Server It can have only one NULL &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3) A table can have only one PK but It can have any number of UNIQUE Key.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/5741010591738492544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/basic-differences-between-primary-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/5741010591738492544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/5741010591738492544'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/basic-differences-between-primary-key.html' title='The basic differences between Primary Key and Unique key are as follows'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-7232669927515231737</id><published>2011-06-26T17:07:00.001+05:30</published><updated>2011-06-26T17:12:13.564+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="T-Sql queries"/><title type='text'>Copy data from one table to another table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial; font-size: x-small;&quot;&gt;The following is the query to copy the data from one table to another table.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;select * into employee2 from employee1&lt;/div&gt;&lt;div&gt;Here Table&amp;nbsp;employee1 is existing table and take backup in another table named :&amp;nbsp;employee1. It will automatically will create the another table&amp;nbsp;employee1&amp;nbsp;with the same structure.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRbECWOp-oLN93n7hUpZEOw7TR_WfPpSk27WOO4QBnUr4_MuZnUXY0SmWXgYpY3JQL14wNfbdNunuH1NeETnitgz64HDPnd_6h_Ys-2pki9Y-ATAPu6IoSu9V6mTKzMg2jja362uQ8qxs/s1600/copy+table.bmp&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRbECWOp-oLN93n7hUpZEOw7TR_WfPpSk27WOO4QBnUr4_MuZnUXY0SmWXgYpY3JQL14wNfbdNunuH1NeETnitgz64HDPnd_6h_Ys-2pki9Y-ATAPu6IoSu9V6mTKzMg2jja362uQ8qxs/s320/copy+table.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/7232669927515231737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/copy-data-from-one-table-to-another.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/7232669927515231737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/7232669927515231737'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/copy-data-from-one-table-to-another.html' title='Copy data from one table to another table'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRbECWOp-oLN93n7hUpZEOw7TR_WfPpSk27WOO4QBnUr4_MuZnUXY0SmWXgYpY3JQL14wNfbdNunuH1NeETnitgz64HDPnd_6h_Ys-2pki9Y-ATAPu6IoSu9V6mTKzMg2jja362uQ8qxs/s72-c/copy+table.bmp" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-3507948955251833739</id><published>2011-06-26T16:32:00.002+05:30</published><updated>2011-06-26T16:41:25.718+05:30</updated><title type='text'>Microsoft Database mirroring</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: normal; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -.25in;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;The database mirroring is implement only one database at time&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;The selected database must be in full recovery mode only (Other recovery mode won&#39;t work)&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;You can&#39;t mirror on system databases like (master, msdb, tempdb, model)&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;-- &lt;br /&gt;
&lt;span style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;For more articles, Please Visit :&amp;nbsp;&lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot; style=&quot;color: #0000cc;&quot; target=&quot;_blank&quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/3507948955251833739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/microsoft-database-mirroring.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/3507948955251833739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/3507948955251833739'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/microsoft-database-mirroring.html' title='Microsoft Database mirroring'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-633953259294264678</id><published>2011-06-26T14:40:00.001+05:30</published><updated>2011-06-26T14:40:49.047+05:30</updated><title type='text'>What is bit datatype and what&#39;s the information that can be stored inside a bit column?</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 17px; &quot;&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt; Bit datatype is used to store Boolean information like 1 or 0 (true or false). Until SQL Server 6.5 bit datatype could hold either a 1 or 0 and there was no support for NULL. But from SQL Server 7.0 onwards, bit datatype can represent a third state, which is NULL.&lt;/p&gt; &lt;/span&gt;&lt;br&gt;-- &lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; &quot;&gt;For more articles, Please Visit : &lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot; target=&quot;_blank&quot; style=&quot;color: rgb(0, 0, 204); &quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;br&gt;  </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/633953259294264678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/what-is-bit-datatype-and-whats.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/633953259294264678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/633953259294264678'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/what-is-bit-datatype-and-whats.html' title='What is bit datatype and what&#39;s the information that can be stored inside a bit column?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-4301251150474887531</id><published>2011-06-26T14:36:00.001+05:30</published><updated>2011-06-26T17:12:30.328+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="T-Sql queries"/><title type='text'>What&#39;s the difference between a primary key and a unique key?</title><content type='html'>&lt;br clear=&quot;all&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 17px; &quot;&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt; Both primary key and unique enforce uniqueness of the column on which they are defined. But by default primary key creates a clustered index on the column, where are unique creates a nonclustered index by default. Another major difference is that, primary key doesn&amp;#39;t allow NULLs, but unique key allows one NULL only.&lt;/p&gt; &lt;/span&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; &quot;&gt;For more articles, Please Visit : &lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot; target=&quot;_blank&quot; style=&quot;color: rgb(0, 0, 204); &quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;br&gt;  </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/4301251150474887531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/whats-difference-between-primary-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/4301251150474887531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/4301251150474887531'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/whats-difference-between-primary-key.html' title='What&#39;s the difference between a primary key and a unique key?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-8697148403606989586</id><published>2011-06-20T02:49:00.000+05:30</published><updated>2011-06-20T03:07:44.972+05:30</updated><title type='text'>What are the steps you will take to improve performance of a poor performing query?</title><content type='html'>&lt;div&gt;&lt;p style=&quot;margin-top:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left: 0in;line-height:13.15pt&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 15px; &quot;&gt;This is a very open ended question and there could be a lot of reasons behind the poor performance of a query. But some general issues that you could talk about would be: No indexes, table scans, missing or out of date statistics, blocking, excess recompilations of stored procedures, procedures and triggers without SET NOCOUNT ON, poorly written query with unnecessarily complicated joins, too much normalization, excess usage of cursors and temporary tables.&lt;span class=&quot;apple-converted-space&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left: 0in;line-height:13.15pt&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family: Arial;color:black&quot;&gt; Some of the tools/ways that help you troubleshooting performance problems are: SET SHOWPLAN_ALL ON, SET SHOWPLAN_TEXT ON, SET STATISTICS IO ON, SQL Server Profiler, Windows NT /2000 Performance monitor, Graphical execution plan in Query Analyzer.&lt;span class=&quot;apple-converted-space&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left: 0in;line-height:13.15pt&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Visit : &lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;                                                &lt;br&gt; </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/8697148403606989586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/what-are-steps-you-will-take-to-improve.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/8697148403606989586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/8697148403606989586'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/what-are-steps-you-will-take-to-improve.html' title='What are the steps you will take to improve performance of a poor performing query?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-6931836298818457639</id><published>2011-06-20T02:28:00.001+05:30</published><updated>2011-06-20T02:28:31.875+05:30</updated><title type='text'>How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?</title><content type='html'>&lt;p style=&quot;margin-top:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left: 0in;line-height:13.15pt&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 15px; &quot;&gt;SQL Server can be started from command line, using the SQLSERVR.EXE. This EXE has some very important parameters with which a DBA should be familiar with. -m is used for starting SQL Server in single user mode and -f is used to start the SQL Server in minimal confuguration mode.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left: 0in;line-height:13.15pt&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left: 0in;line-height:13.15pt&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;Visit : &lt;/span&gt;&lt;/font&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal; &quot;&gt;&lt;a href=&quot;http://microsoft-sql-server-dba.blogspot.com/&quot;&gt;http://microsoft-sql-server-dba.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/6931836298818457639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/how-to-restart-sql-server-in-single.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/6931836298818457639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/6931836298818457639'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/how-to-restart-sql-server-in-single.html' title='How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-5503086405819247474</id><published>2011-06-08T21:47:00.001+05:30</published><updated>2011-06-08T21:47:42.506+05:30</updated><title type='text'>How to find the database ID</title><content type='html'>&lt;div&gt;How to find the database ID in MS Sql Server.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;SELECT * FROM sysdatabases&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Name       dbid&lt;/div&gt;&lt;div&gt;----------------------------------&lt;/div&gt;&lt;div&gt;&lt;div&gt;master&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;1&lt;/div&gt; &lt;div&gt;tempdb&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;2&lt;/div&gt;&lt;div&gt;model&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;3&lt;/div&gt;&lt;div&gt;msdb&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;4&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;These all are default database IDs in MS Sql Server which is assigned after installation.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/5503086405819247474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/how-to-find-database-id.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/5503086405819247474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/5503086405819247474'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/how-to-find-database-id.html' title='How to find the database ID'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3588981341049634935.post-2748250211434274803</id><published>2011-06-04T23:03:00.001+05:30</published><updated>2011-06-04T23:03:43.760+05:30</updated><title type='text'>Welcome to Microsoft SQL Server DBA</title><content type='html'>&lt;div class=&quot;gmail_quote&quot;&gt;Welcome to first post to Microsoft SQL Server DBA Blog...! &lt;/div&gt;&lt;br&gt; </content><link rel='replies' type='application/atom+xml' href='http://microsoft-sql-server-dba.blogspot.com/feeds/2748250211434274803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/welcome-to-microsoft-sql-server-dba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/2748250211434274803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3588981341049634935/posts/default/2748250211434274803'/><link rel='alternate' type='text/html' href='http://microsoft-sql-server-dba.blogspot.com/2011/06/welcome-to-microsoft-sql-server-dba.html' title='Welcome to Microsoft SQL Server DBA'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>