<?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: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-11743729</id><updated>2012-01-28T16:01:35.350-08:00</updated><category term='DTS'/><category term='Performance'/><category term='Download'/><category term='Change Track'/><category term='Connection'/><category term='Patching'/><category term='Outlook'/><category term='PORT'/><category term='SQL Server 2000'/><category term='SQL 2005'/><category term='Sharepoint - MOSS'/><category term='Windows'/><category term='Schema'/><category term='Policy Management'/><category term='Trace'/><category term='TSM'/><category term='Quality'/><category term='Exam Voucher'/><category term='VPN'/><category term='AWE'/><category term='Backup'/><category term='Event Viewer'/><category term='License'/><category term='SQL 2008 R2'/><category term='Query'/><category term='SSIS'/><category term='Database Usage'/><category term='Internal'/><category term='Poster'/><category term='Baseline'/><category term='Hotfix'/><category term='MOC'/><category term='Reporting Service'/><category term='PMP'/><category term='Virtual Lab'/><category term='Learn'/><category term='SQL Server 2005'/><category term='Shortcutkey'/><category term='Citrix'/><category term='Best Practices'/><category term='PASS'/><category term='SAC'/><category term='Setup'/><category term='Uninstall'/><category term='Flowchart'/><category term='SQL 2000'/><category term='SQL 2012'/><category term='SQL2000'/><category term='Chennai'/><category term='64 Bit'/><category term='DBA'/><category term='Free'/><category term='Service Account'/><category term='Installation'/><category term='DOS Batch'/><category term='Feature Pack'/><category term='Architecture'/><category term='SQL 2008'/><category term='Trigger'/><category term='Replication'/><category term='Service Pack'/><category term='Wizard'/><category term='Security'/><category term='Spatial'/><category term='TCP/IP'/><category term='Progress'/><category term='Clustter'/><category term='Configuration'/><category term='Whitepaper'/><category term='TNG'/><category term='Unicenter'/><category term='Profiler'/><category term='CPU'/><category term='Terminal Server'/><category term='Linked Server'/><category term='SQL Server vs Oracle'/><category term='Cluster'/><category term='Isolation'/><category term='Normalization'/><category term='SQL Server 2008'/><category term='Suspect'/><category term='Maintenance Plan'/><category term='Restore'/><category term='Registry'/><category term='SRDF'/><category term='SLA'/><category term='Idera'/><category term='SQL Safe'/><category term='DMV'/><category term='DMF'/><category term='Checklist'/><category term='Tools'/><category term='DBCC'/><category term='SAN'/><category term='Training'/><category term='CDC'/><category term='Audit'/><category term='Useful'/><title type='text'>SIVA SQL Server</title><subtitle type='html'>Adding fuel to my passion on SQL Server</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default?start-index=101&amp;max-results=100'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>220</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-11743729.post-8704414477347825140</id><published>2012-01-25T17:16:00.001-08:00</published><updated>2012-01-25T17:16:43.754-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2012'/><title type='text'>SQL Server 2012 official launch by March 7, 2012</title><content type='html'>&lt;p&gt;   &lt;br /&gt;&lt;a href="http://lh5.ggpht.com/-JELI8CBhsaE/TyCpcqja8yI/AAAAAAAAA4E/I2zrA9r39Mw/s1600-h/image%25255B4%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-V7pn0TWMVAQ/TyCpeSrbCsI/AAAAAAAAA4M/hPR45DvxNzo/image_thumb%25255B2%25255D.png?imgmax=800" width="500" height="129" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;SQL Server 2012 to be released officially by March 7, 2012.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.sqlserverlaunch.com"&gt;http://www.sqlserverlaunch.com&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8704414477347825140?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8704414477347825140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8704414477347825140' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8704414477347825140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8704414477347825140'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2012/01/sql-server-2012-official-launch-by.html' title='SQL Server 2012 official launch by March 7, 2012'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/-V7pn0TWMVAQ/TyCpeSrbCsI/AAAAAAAAA4M/hPR45DvxNzo/s72-c/image_thumb%25255B2%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2130421089717311542</id><published>2011-08-12T19:21:00.001-07:00</published><updated>2011-08-12T19:21:01.137-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reporting Service'/><title type='text'>How to get .rdl file of the Reports on Report Server</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Do you want to have copy of a report on the ReportServer?   &lt;br /&gt;What would be the case when, tt was not saved in SourceSafe. Is there a way to get the .rdl file for that report copied to local computer from the ReportServer?&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;For SQL Server 2005 Reporting Services&lt;/strong&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Go to Report on Report Manager&lt;/li&gt;    &lt;li&gt;Click properties of Report&lt;/li&gt;    &lt;li&gt;Under the report definition you will see Edit and Update link.&lt;/li&gt;    &lt;li&gt;if you click on Edit you can open or Save the RDL files&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-bg7SRA3PgQ4/TkXfeCAL-1I/AAAAAAAAA3U/QcN9GeGydlg/s1600-h/image%25255B14%25255D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-BzfzLadj6Mw/TkXff4qyP3I/AAAAAAAAA3Y/yHCN2Q3q1Uc/image_thumb%25255B10%25255D.png?imgmax=800" width="403" height="227" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;For SQL Server 2008 Reporting Services&lt;/strong&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Go to Report on Report Manager&lt;/li&gt;    &lt;li&gt;Click properties of Report&lt;/li&gt;    &lt;li&gt;Select Download on the top right corner&lt;/li&gt;    &lt;li&gt;Now you can open or Save the RDL files&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-2nL4mr6jviQ/TkXfhCA7oSI/AAAAAAAAA3c/VUBJvsU0ouY/s1600-h/image%25255B7%25255D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-6t-DLesow9k/TkXfiCKPIgI/AAAAAAAAA3g/MFDBHkIy8Mc/image_thumb%25255B5%25255D.png?imgmax=800" width="365" height="239" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2130421089717311542?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2130421089717311542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2130421089717311542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2130421089717311542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2130421089717311542'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/08/how-to-get-rdl-file-of-reports-on.html' title='How to get .rdl file of the Reports on Report Server'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/-BzfzLadj6Mw/TkXff4qyP3I/AAAAAAAAA3Y/yHCN2Q3q1Uc/s72-c/image_thumb%25255B10%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5447545370164351195</id><published>2011-08-01T02:31:00.001-07:00</published><updated>2011-08-01T02:31:35.797-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reporting Service'/><title type='text'>Can we backup reportservertempdb?</title><content type='html'>&lt;p&gt;   &lt;br /&gt;I have been asked by a DBA, if we can backup reportservertempdb, why not!    &lt;br /&gt;    &lt;br /&gt;Here is the answer:    &lt;br /&gt;    &lt;br /&gt;We should backup the database &lt;strong&gt;reportservertempdb&lt;/strong&gt; as we backup the &lt;strong&gt;reportserver.&lt;/strong&gt;    &lt;br /&gt;    &lt;br /&gt;The reason to backup the &lt;strong&gt;reportservertempdb&lt;/strong&gt; is to avoid having to recreate it if there is a hardware failure. In the event of hardware failure, it is not necessary to recover the data in &lt;strong&gt;reportservertempdb&lt;/strong&gt;, but you do need the table structure.     &lt;br /&gt;    &lt;br /&gt;If you lose &lt;strong&gt;reportservertempdb&lt;/strong&gt;, the only way to get it back is to recreate the report server database. If you recreate the reportservertempdb, it is important that it have the same name as the primary report server database.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5447545370164351195?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5447545370164351195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5447545370164351195' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5447545370164351195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5447545370164351195'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/08/can-we-backup-reportservertempdb.html' title='Can we backup reportservertempdb?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6958398480666222703</id><published>2011-08-01T02:20:00.001-07:00</published><updated>2011-08-11T02:53:35.020-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='Maintenance Plan'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2000'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2000'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance'/><title type='text'>System database msdb size in huge! How to purge MSDB Backup and Restore History?</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;On one of my SQL Server 2008 Instance, the msdb database sizes around 4 GB.&amp;#160; I decided to find out the which table / index occupies major junk on this. I have used query below;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="649"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="643"&gt;--- Query 1, if there is partition          &lt;br /&gt;          &lt;br /&gt;          &lt;p&gt;SELECT TOP 10 SERVERNAME=@@SERVERNAME,DB_NAME=DB_NAME(),TABLE_NAME=OBJECT_NAME(I.ID),INDEX_NAME=I.NAME,INDID,USED, ROWS, SIZE_N_MB = ROUND((USED*8.0/1024.0),2),            &lt;br /&gt;ROWMODCTR,STATISTICDT=STATS_DATE(I.ID,INDID)             &lt;br /&gt;FROM SYSINDEXES I, SYSOBJECTS O             &lt;br /&gt;WHERE I.ID = O.ID             &lt;br /&gt;AND INDID IN ( 0,1)             &lt;br /&gt;AND XTYPE = 'U'             &lt;br /&gt;ORDER BY USED DESC&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="643"&gt;--- Query 2 If there are partitions          &lt;br /&gt;          &lt;br /&gt;          &lt;p&gt;SELECT object_name(i.object_id) as objectName,            &lt;br /&gt;i.[name] as indexName,             &lt;br /&gt;sum(a.total_pages) as totalPages,             &lt;br /&gt;sum(a.used_pages) as usedPages,             &lt;br /&gt;sum(a.data_pages) as dataPages,             &lt;br /&gt;(sum(a.total_pages) * 8) / 1024 as totalSpaceMB,             &lt;br /&gt;(sum(a.used_pages) * 8) / 1024 as usedSpaceMB,             &lt;br /&gt;(sum(a.data_pages) * 8) / 1024 as dataSpaceMB             &lt;br /&gt;FROM sys.indexes i             &lt;br /&gt;INNER JOIN sys.partitions p             &lt;br /&gt;ON i.object_id = p.object_id             &lt;br /&gt;AND i.index_id = p.index_id             &lt;br /&gt;INNER JOIN sys.allocation_units a             &lt;br /&gt;ON p.partition_id = a.container_id             &lt;br /&gt;GROUP BY i.object_id, i.index_id, i.[name]             &lt;br /&gt;ORDER BY sum(a.total_pages) DESC, object_name(i.object_id)&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;The output resulted;    &lt;br /&gt;    &lt;br /&gt;The following 5 big tables takes up 88% of the total database size of 3.8 GB. These 5 tables occupy 3.3 GB on the msdb database.     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Query 1: Output    &lt;br /&gt;&lt;/p&gt;  &lt;table border="0" cellspacing="0" cellpadding="0" width="873"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td width="154"&gt;&lt;strong&gt;TABLE_NAME&lt;/strong&gt;&lt;/td&gt;        &lt;td width="246"&gt;&lt;strong&gt;INDEX_NAME&lt;/strong&gt;&lt;/td&gt;        &lt;td width="43"&gt;&lt;strong&gt;INDID&lt;/strong&gt;&lt;/td&gt;        &lt;td width="49"&gt;&lt;strong&gt;USED&lt;/strong&gt;&lt;/td&gt;        &lt;td width="56"&gt;&lt;strong&gt;ROWS&lt;/strong&gt;&lt;/td&gt;        &lt;td width="76"&gt;&lt;strong&gt;SIZE_N_MB&lt;/strong&gt;&lt;/td&gt;        &lt;td width="93"&gt;&lt;strong&gt;ROWMODCTR&lt;/strong&gt;&lt;/td&gt;        &lt;td width="154"&gt;&lt;strong&gt;STATISTICDT&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupfile&lt;/td&gt;        &lt;td&gt;PK__backupfi__57D1800A17C286CF&lt;/td&gt;        &lt;td&gt;1&lt;/td&gt;        &lt;td&gt;233057&lt;/td&gt;        &lt;td&gt;4438738&lt;/td&gt;        &lt;td&gt;1820.76&lt;/td&gt;        &lt;td&gt;2646909&lt;/td&gt;        &lt;td width="154"&gt;2/14/2011 15:57&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupset&lt;/td&gt;        &lt;td&gt;PK__backupse__21F79AAB0E391C95&lt;/td&gt;        &lt;td&gt;1&lt;/td&gt;        &lt;td&gt;115791&lt;/td&gt;        &lt;td&gt;1489763&lt;/td&gt;        &lt;td&gt;904.62&lt;/td&gt;        &lt;td&gt;228112&lt;/td&gt;        &lt;td width="154"&gt;6/19/2011 6:00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupmediafamily&lt;/td&gt;        &lt;td&gt;PK__backupme__0C13C86F0880433F&lt;/td&gt;        &lt;td&gt;1&lt;/td&gt;        &lt;td&gt;50738&lt;/td&gt;        &lt;td&gt;1489616&lt;/td&gt;        &lt;td&gt;396.39&lt;/td&gt;        &lt;td&gt;23386&lt;/td&gt;        &lt;td width="154"&gt;7/26/2011 7:00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupfilegroup&lt;/td&gt;        &lt;td&gt;PK__backupfi__760CD67A12FDD1B2&lt;/td&gt;        &lt;td&gt;1&lt;/td&gt;        &lt;td&gt;43284&lt;/td&gt;        &lt;td&gt;2967333&lt;/td&gt;        &lt;td&gt;338.16&lt;/td&gt;        &lt;td&gt;1775145&lt;/td&gt;        &lt;td width="154"&gt;2/14/2011 15:57&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupmediaset&lt;/td&gt;        &lt;td&gt;PK__backupme__DAC69E4D04AFB25B&lt;/td&gt;        &lt;td&gt;1&lt;/td&gt;        &lt;td&gt;29250&lt;/td&gt;        &lt;td&gt;1489616&lt;/td&gt;        &lt;td&gt;228.52&lt;/td&gt;        &lt;td&gt;44462&lt;/td&gt;        &lt;td width="154"&gt;7/22/2011 15:43&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;sysjobhistory&lt;/td&gt;        &lt;td&gt;clust&lt;/td&gt;        &lt;td&gt;1&lt;/td&gt;        &lt;td&gt;3553&lt;/td&gt;        &lt;td&gt;33177&lt;/td&gt;        &lt;td&gt;27.76&lt;/td&gt;        &lt;td&gt;2428&lt;/td&gt;        &lt;td width="154"&gt;7/25/2011 8:14&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Query 2: Output&lt;/p&gt;  &lt;table border="0" cellspacing="0" cellpadding="0"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td width="131"&gt;&lt;strong&gt;objectName&lt;/strong&gt;&lt;/td&gt;        &lt;td width="244"&gt;&lt;strong&gt;indexName&lt;/strong&gt;&lt;/td&gt;        &lt;td width="72"&gt;&lt;strong&gt;totalPages&lt;/strong&gt;&lt;/td&gt;        &lt;td width="73"&gt;&lt;strong&gt;usedPages&lt;/strong&gt;&lt;/td&gt;        &lt;td width="70"&gt;&lt;strong&gt;dataPages&lt;/strong&gt;&lt;/td&gt;        &lt;td width="93"&gt;&lt;strong&gt;totalSpaceMB&lt;/strong&gt;&lt;/td&gt;        &lt;td width="94"&gt;&lt;strong&gt;usedSpaceMB&lt;/strong&gt;&lt;/td&gt;        &lt;td width="90"&gt;&lt;strong&gt;dataSpaceMB&lt;/strong&gt;&lt;/td&gt;        &lt;td width="77"&gt;&lt;strong&gt;Rows&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupfile&lt;/td&gt;        &lt;td&gt;PK__backupfi__57D1800A17C286CF&lt;/td&gt;        &lt;td&gt;233073&lt;/td&gt;        &lt;td&gt;233043&lt;/td&gt;        &lt;td&gt;231653&lt;/td&gt;        &lt;td&gt;1820&lt;/td&gt;        &lt;td&gt;1820&lt;/td&gt;        &lt;td&gt;1809&lt;/td&gt;        &lt;td&gt;4438738&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupset&lt;/td&gt;        &lt;td&gt;PK__backupse__21F79AAB0E391C95&lt;/td&gt;        &lt;td&gt;100217&lt;/td&gt;        &lt;td&gt;100200&lt;/td&gt;        &lt;td&gt;99826&lt;/td&gt;        &lt;td&gt;782&lt;/td&gt;        &lt;td&gt;782&lt;/td&gt;        &lt;td&gt;779&lt;/td&gt;        &lt;td&gt;1489763&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupfilegroup&lt;/td&gt;        &lt;td&gt;PK__backupfi__760CD67A12FDD1B2&lt;/td&gt;        &lt;td&gt;43289&lt;/td&gt;        &lt;td&gt;43283&lt;/td&gt;        &lt;td&gt;43077&lt;/td&gt;        &lt;td&gt;338&lt;/td&gt;        &lt;td&gt;338&lt;/td&gt;        &lt;td&gt;336&lt;/td&gt;        &lt;td&gt;1489616&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupmediafamily&lt;/td&gt;        &lt;td&gt;PK__backupme__0C13C86F0880433F&lt;/td&gt;        &lt;td&gt;39473&lt;/td&gt;        &lt;td&gt;39459&lt;/td&gt;        &lt;td&gt;39287&lt;/td&gt;        &lt;td&gt;308&lt;/td&gt;        &lt;td&gt;308&lt;/td&gt;        &lt;td&gt;306&lt;/td&gt;        &lt;td&gt;2967333&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;backupmediaset&lt;/td&gt;        &lt;td&gt;PK__backupme__DAC69E4D04AFB25B&lt;/td&gt;        &lt;td&gt;18737&lt;/td&gt;        &lt;td&gt;18728&lt;/td&gt;        &lt;td&gt;18654&lt;/td&gt;        &lt;td&gt;146&lt;/td&gt;        &lt;td&gt;146&lt;/td&gt;        &lt;td&gt;145&lt;/td&gt;        &lt;td&gt;1489616&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;br /&gt;Analyze and find out the minimum and maximum date range date available   &lt;br /&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="400"&gt;         &lt;p&gt;SELECT COUNT(*) AS 'TotalRecords',            &lt;br /&gt;MIN(backup_start_date) AS 'MinDate',             &lt;br /&gt;MAX(backup_start_date) AS 'MaxDate'             &lt;br /&gt;FROM dbo.backupset&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Resolution:        &lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;The solution is we have to purge these MSDB Backup and Restore history tables&lt;/p&gt;  &lt;p&gt;1. The &lt;b&gt;&lt;font color="#0000ff"&gt;sp_delete_backuphistory&lt;/font&gt; &lt;/b&gt;system stored procedure takes a single parameter - a cutoff date. Any data older than the supplied date is purged from the msdb tables.     &lt;br /&gt;    &lt;br /&gt;2. The &lt;b&gt;&lt;font color="#0000ff"&gt;sp_delete_database_backuphistory&lt;/font&gt;&lt;/b&gt;&amp;#160; system stored procedure allows you to delete historical backup data for a specific database. Unfortunately, this procedure does not offer the finer option of choosing a cutoff date. It's all or nothing. &lt;/p&gt;  &lt;p&gt;3. &lt;a href="http://technet.microsoft.com/en-us/library/ms175044(SQL.90).aspx"&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;sp_purge_jobhistory&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt; Removes the history records for a job.&lt;/p&gt;  &lt;p&gt;4. Try considering creating indexes on the above said 5 tables, if no of rows are huge.    &lt;br /&gt;Source: &lt;a title="http://weblogs.sqlteam.com/geoffh/archive/2008/01/21/MSDB-Performance-Tuning.aspx" href="http://weblogs.sqlteam.com/geoffh/archive/2008/01/21/MSDB-Performance-Tuning.aspx"&gt;http://weblogs.sqlteam.com/geoffh/archive/2008/01/21/MSDB-Performance-Tuning.aspx&lt;/a&gt;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="694"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="688"&gt;         &lt;p&gt;use msdb            &lt;br /&gt;go             &lt;br /&gt;--backupset &lt;/p&gt;          &lt;p&gt;Create index IX_backupset_backup_set_id on backupset(backup_set_id)            &lt;br /&gt;go             &lt;br /&gt;Create index IX_backupset_backup_set_uuid on backupset(backup_set_uuid)             &lt;br /&gt;go             &lt;br /&gt;Create index IX_backupset_media_set_id on backupset(media_set_id)             &lt;br /&gt;go             &lt;br /&gt;Create index IX_backupset_backup_finish_date on backupset(backup_finish_date)             &lt;br /&gt;go             &lt;br /&gt;Create index IX_backupset_backup_start_date on backupset(backup_start_date)             &lt;br /&gt;go             &lt;br /&gt;--backupmediaset             &lt;br /&gt;Create index IX_backupmediaset_media_set_id on backupmediaset(media_set_id)             &lt;br /&gt;go             &lt;br /&gt;--backupfile             &lt;br /&gt;Create index IX_backupfile_backup_set_id on backupfile(backup_set_id)             &lt;br /&gt;go             &lt;br /&gt;--backupmediafamily             &lt;br /&gt;Create index IX_backupmediafamily_media_set_id on backupmediafamily(media_set_id)             &lt;br /&gt;go             &lt;br /&gt;--restorehistory             &lt;br /&gt;Create index IX_restorehistory_restore_history_id on restorehistory(restore_history_id)             &lt;br /&gt;go             &lt;br /&gt;Create index IX_restorehistory_backup_set_id on restorehistory(backup_set_id)             &lt;br /&gt;go             &lt;br /&gt;--restorefile             &lt;br /&gt;Create index IX_restorefile_restore_history_id on restorefile(restore_history_id)             &lt;br /&gt;go             &lt;br /&gt;--restorefilegroup             &lt;br /&gt;Create index IX_restorefilegroup_restore_history_id on restorefilegroup(restore_history_id)             &lt;br /&gt;go &lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;5. Alternatively, check when the &lt;strong&gt;statistics&lt;/strong&gt; of these tables are last updated. Just run &lt;font color="#0000ff"&gt;&lt;strong&gt;sp_updatestats.&lt;/strong&gt;&lt;/font&gt;&lt;font color="#000000"&gt;&amp;#160; Just try &lt;b&gt;&lt;font color="#0000ff"&gt;sp_delete_backuphistory&lt;/font&gt;&lt;/b&gt;&amp;#160; after the statistics are updated. The result is awesome! Very quick response.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;&lt;strong&gt;&lt;u&gt;Permanent Resolution&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;6. Further restrict the Job history growth by setting in &lt;strong&gt;SQL Agent –&amp;gt; History&lt;/strong&gt; tab.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-0stOGdsNBy8/TkOmf9OpdRI/AAAAAAAAA3E/WROfWDrHCPA/s1600-h/image%25255B14%25255D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-3A64iEZ0nY0/TkOmicJBkHI/AAAAAAAAA3I/1px6xxHHKJU/image_thumb%25255B12%25255D.png?imgmax=800" width="589" height="419" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;7. Also on the SQL Server Maintenance Plan “&lt;strong&gt;History Cleanup Task&lt;/strong&gt;” can be of helpful&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-15W8wivxLPo/TkOmj5Cr0KI/AAAAAAAAA3M/TlT7LGD-CZs/s1600-h/image%25255B25%25255D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-eGm0mBcrFb4/TkOmmYXmP-I/AAAAAAAAA3Q/p-OZ3q_L1qQ/image_thumb%25255B21%25255D.png?imgmax=800" width="522" height="309" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6958398480666222703?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6958398480666222703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6958398480666222703' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6958398480666222703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6958398480666222703'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/08/system-database-msdb-size-in-huge-how.html' title='System database msdb size in huge! How to purge MSDB Backup and Restore History?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/-3A64iEZ0nY0/TkOmicJBkHI/AAAAAAAAA3I/1px6xxHHKJU/s72-c/image_thumb%25255B12%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6435721435443301930</id><published>2011-07-31T23:20:00.001-07:00</published><updated>2011-07-31T23:30:28.538-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='Policy Management'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>SQL Server 2008: syspolicy_purge_history job</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;This job is created automatically when on SQL Server 2008 &lt;em&gt;Policy Management&lt;/em&gt; is enabled.    &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;Policy Management&lt;/strong&gt; is a new feature introduced on SQL Server 2008 onwards.&lt;/p&gt;  &lt;p&gt;Once the Policy Management defined, the policy can be evaluated against targets to check for compliance. Each evaluation of compliance will be recorded in tables in system database msdb,    &lt;br /&gt;    &lt;br /&gt;&lt;font color="#0000ff"&gt;1. syspolicy_policy_execution_history_details_internal     &lt;br /&gt;2. syspolicy_policy_execution_history_internal      &lt;br /&gt;3. syspolicy_policy_category_subscriptions_internal      &lt;br /&gt;&lt;/font&gt;    &lt;br /&gt;The evaluation condition is built on top of object facets, which is predefined by Microsoft. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Purpose of the job, &lt;em&gt;syspolicy_purge_history:&lt;/em&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;It is to remove records in those tables to maintain so it does not pile up and take up space unnecessarily. It has three steps&lt;/p&gt;  &lt;p&gt;It does what instance it is running in and then erases system health records.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 1 :&amp;#160; &lt;br /&gt;&lt;/strong&gt;&lt;font color="#0000ff"&gt;The first step verifies if Policy Management is enabled. If yes, it will go to the second step&lt;/font&gt;    &lt;br /&gt;IF (msdb.dbo.fn_syspolicy_is_automation_enabled() != 1)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BEGIN    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; RAISERROR(34022, 16, 1)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; END &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;step 2     &lt;br /&gt;&lt;/strong&gt;&lt;font color="#0000ff"&gt;Deletes policy evaluation history prior to cutoff date, defined by HistoryRetentionInDays.&lt;/font&gt;    &lt;br /&gt;EXEC msdb.dbo.sp_syspolicy_purge_history &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;step 3     &lt;br /&gt;&lt;/strong&gt;&lt;font color="#0000ff"&gt;It works out what instance it is running in and then erases system health records.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;if ('$(ESCAPE_SQUOTE(INST))' -eq 'MSSQLSERVER') {$a = '\DEFAULT'} ELSE {$a = ''};   &lt;br /&gt;(Get-Item SQLSERVER:\SQLPolicy\$(ESCAPE_NONE(SRVR))$a).EraseSystemHealthPhantomRecords()&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6435721435443301930?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6435721435443301930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6435721435443301930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6435721435443301930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6435721435443301930'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/07/sql-server-2008-syspolicypurgehistory.html' title='SQL Server 2008: syspolicy_purge_history job'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4349208009528028273</id><published>2011-07-12T05:19:00.001-07:00</published><updated>2011-07-14T03:43:35.694-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Service Pack'/><category scheme='http://www.blogger.com/atom/ns#' term='Setup'/><title type='text'>Silent Mode Installation of SQL Server 2008 SP2</title><content type='html'>&lt;p&gt;   &lt;br /&gt;Here is the command for SQL Server 2008 Express Edition Silent mode installation of SP2.&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="569"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="563"&gt;         &lt;p&gt;SQLEXPR_x86_ENU.exe /Q /ACTION=PATCH /INSTANCENAME=SQLEXPRESS&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4349208009528028273?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4349208009528028273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4349208009528028273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4349208009528028273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4349208009528028273'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/07/silent-mode-installation-of-sql-server.html' title='Silent Mode Installation of SQL Server 2008 SP2'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1246902406210385646</id><published>2011-05-27T17:49:00.001-07:00</published><updated>2011-05-27T17:49:37.651-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Internal'/><category scheme='http://www.blogger.com/atom/ns#' term='Architecture'/><title type='text'>CHECKPOINT in SQL Server</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;What is CHECKPOINT?&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;As per BOL definition “ Writes all &lt;em&gt;dirty pages&lt;/em&gt; for the current database to disk.      &lt;br /&gt; Dirty pages are data pages that have been entered into the buffer cache and modified, but not yet written to disk.       &lt;br /&gt;Checkpoints save time during a later recovery by creating a point at which all dirty pages are guaranteed to have been written to disk”      &lt;br /&gt;      &lt;br /&gt;&lt;/font&gt;&lt;font color="#008000"&gt;This minimizes the active portion of the log that must be processed during a full recovery of a database.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;What are the Events that causes CHECKPOINT?&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;1. &lt;font color="#008000"&gt;Before &lt;strong&gt;Database Backup&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Before a database backup, the Database Engine automatically performs a checkpoint so that all changes to the database pages are contained in the backup. &lt;/p&gt;  &lt;p&gt;&lt;font color="#008000"&gt;2. Active Log exceeds &lt;em&gt;&lt;u&gt;recovery interval&lt;/u&gt;&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;The active portion of the log exceeds the size that the server could recover in the amount of time specified in the recovery interval server configuration option. &lt;/p&gt;  &lt;p&gt;&lt;font color="#008000"&gt;3. The &lt;strong&gt;log becomes 70 percent full&lt;/strong&gt;, and the database is in log-truncate mode.&lt;/font&gt; &lt;/p&gt;  &lt;p&gt;A database is in log truncate mode when both these conditions are TRUE: the database is using the Simple recovery model, and, after execution of the last BACKUP DATABASE statement that referenced the database, one of the following events occurs: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;BULK_LOG Recovery:&lt;/strong&gt; A minimally logged operation is performed in the database, such as a minimally logged bulk copy operation or a minimally logged WRITETEXT statement is executed. &lt;/li&gt;    &lt;li&gt;An &lt;strong&gt;ALTER DATABASE&lt;/strong&gt; statement is executed that &lt;strong&gt;adds or deletes a file&lt;/strong&gt; in the database &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;font color="#008000"&gt;4. &lt;strong&gt;Stopping a SQL Server&lt;/strong&gt; issues a checkpoint in each database on the server&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#008000"&gt;5. CHECKPOINT:      &lt;br /&gt;&lt;/font&gt;A CHECKPOINT statement is explicitly executed. A checkpoint occurs in the current database for the connection.&lt;/p&gt;  &lt;p&gt;&lt;font color="#008000"&gt;6. Database Shutdown     &lt;br /&gt;&lt;/font&gt;An activity requiring a database shutdown is performed. For example, AUTO_CLOSE is ON and the last user connection to the database is closed, or a database option change is made that requires a restart of the database.&lt;/p&gt;  &lt;p&gt;&lt;font color="#008000"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1246902406210385646?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1246902406210385646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1246902406210385646' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1246902406210385646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1246902406210385646'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/checkpoint-in-sql-server.html' title='CHECKPOINT in SQL Server'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1382916641793811489</id><published>2011-05-19T07:06:00.001-07:00</published><updated>2011-05-19T07:06:26.954-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='64 Bit'/><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>SQL Server Management Studio – SSMS is a 32 bit application</title><content type='html'>&lt;p&gt;   &lt;br /&gt;SQL Server Management Studio – SSMS is a 32 bit application. Even when we install 64 bit SQL Server Database Engine, we will get 32 bit SSMS installed on the server.&lt;/p&gt;  &lt;p&gt;Default SSMS install location&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="680"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="89"&gt;32 Bit Server&lt;/td&gt;        &lt;td valign="top" width="585"&gt;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="89"&gt;64 Bit Server&lt;/td&gt;        &lt;td valign="top" width="585"&gt;C:\Program Files &lt;strong&gt;(x86)&lt;/strong&gt;\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1382916641793811489?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1382916641793811489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1382916641793811489' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1382916641793811489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1382916641793811489'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/sql-server-management-studio-ssms-is-32.html' title='SQL Server Management Studio – SSMS is a 32 bit application'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2488606534343019100</id><published>2011-05-16T16:55:00.001-07:00</published><updated>2011-05-16T16:55:55.350-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='Maintenance Plan'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>Maintenance Plan Error: Alter failed for Server SQLServer_Instance</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;Error message: Alter failed for Server ‘SivaSQL2008’&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TdG5fCgZtUI/AAAAAAAAA18/c_xnfMRSBWc/s1600-h/image%5B12%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TdG5hgxQ_RI/AAAAAAAAA2A/nboUk-oFV2s/image_thumb%5B10%5D.png?imgmax=800" width="240" height="228" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;    &lt;br /&gt;When I ran &lt;strong&gt;SQL Profiler&lt;/strong&gt; and checked why its failing, observed;    &lt;br /&gt;Errors when it was trying to execute     &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;SP_CONFIGURE 'USER OPTION',0 ;     &lt;br /&gt;RECONFIGURE      &lt;br /&gt;&lt;/strong&gt;    &lt;br /&gt;&lt;font color="#0000ff"&gt;Error: 5808, Severity: 16, State: 1     &lt;br /&gt;Ad hoc update to system catalogs is not supported.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;The reason for why AD HOC UPDATE TO SYSTEM CATALOGS is not supported.   &lt;br /&gt;Why it is trying to change SYSTEM CATALOGS at first place? &lt;/p&gt;  &lt;p&gt;In SQL Server 2000 and older, this option allowed users to make updates directly to the system tables.    &lt;br /&gt;In SQL Server 2005 and higher, the system tables are, replaced with the Resource Database and system views.     &lt;br /&gt;This option is no longer supported in SQL Server 2005 and higher version, and though we can set Allow Updates to 1 with no error. As soon as we run &lt;strong&gt;RECONFIGURE&lt;/strong&gt;, we will receive the error that ad hoc updates are not supported. &lt;/p&gt;  &lt;p&gt;Because &lt;strong&gt;Allow Updates&lt;/strong&gt; had been set to 1 and my Maintenance Plan runs the &lt;strong&gt;RECONGIFURE&lt;/strong&gt; statement, this error was thrown and the Maintenance Plan failed.    &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;&lt;u&gt;As per Books On Line:       &lt;br /&gt;        &lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;Changing the &lt;strong&gt;allow updates &lt;/strong&gt;option will cause the &lt;strong&gt;RECONFIGURE&lt;/strong&gt; statement to fail. Changes to the allow updates option should be removed from all scripts.    &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;&lt;u&gt;Resolution:&lt;/u&gt;&lt;/strong&gt;    &lt;br /&gt;So to resolve is configured ALLOW UPDATE back to 0 and again ran Maintenance Plan and it executes fine. &lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="400"&gt;         &lt;p&gt;sp_configure 'allow update', 0           &lt;br /&gt;reconfigure&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2488606534343019100?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2488606534343019100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2488606534343019100' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2488606534343019100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2488606534343019100'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/maintenance-plan-error-alter-failed-for.html' title='Maintenance Plan Error: Alter failed for Server SQLServer_Instance'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_w7ME_yT4MGY/TdG5hgxQ_RI/AAAAAAAAA2A/nboUk-oFV2s/s72-c/image_thumb%5B10%5D.png?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1990320156589418148</id><published>2011-05-16T05:48:00.001-07:00</published><updated>2011-05-16T05:48:49.774-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2000'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2000'/><category scheme='http://www.blogger.com/atom/ns#' term='Wizard'/><title type='text'>How to create scripts for an entire database or specific object in SQL Server 2008?</title><content type='html'>&lt;p&gt;   &lt;br /&gt;In this post I would like to address the requirement of;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;How to create scripts for an entire database ? &lt;/li&gt;    &lt;li&gt;How to create scripts limit it to specific objects? &lt;/li&gt;    &lt;li&gt;How to restore SQL Server 2005 database on SQL Server 2000? &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;SQL Server &lt;strong&gt;Database Publishing Wizard&lt;/strong&gt; enables the deployment of SQL Server databases into a hosted environment on either a SQL Server 2000 or 2005 server.     &lt;br /&gt;    &lt;br /&gt;It generates a single SQL script file which can be used to recreate a database (both schema and data) in a shared hosting environment where the only connectivity to a server is through a web-based control panel with a script execution window.     &lt;br /&gt;    &lt;br /&gt;If supported by the hosting service provider, the Database Publishing Wizard can also directly upload databases to servers located at the shared hosting provider.&lt;/p&gt;  &lt;p&gt;We can use the &lt;strong&gt;&lt;u&gt;Generate and Publish Scripts Wizard&lt;/u&gt;&lt;/strong&gt; to create scripts for transferring a database from one instance of the Database Engine to another. You can generate scripts for a database on an instance of the Database Engine in your local network, or from SQL Azure.     &lt;br /&gt;    &lt;br /&gt;The generated scripts can be run on another instance of the Database Engine or SQL Azure.&amp;#160; &lt;br /&gt;    &lt;br /&gt;We can also use the wizard to publish the contents of a database directly to a Web service created by using the Database Publishing Services. &lt;/p&gt;  &lt;p&gt;We can create scripts for an &lt;strong&gt;entire database, or limit it to specific objects.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff" size="3"&gt;What version of SQL Servers are supported on this?&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="601"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="166"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="207"&gt;&lt;strong&gt;Source Database &lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="222"&gt;&lt;strong&gt;Target Database&amp;#160; &lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="166"&gt;SQL Server Instance Version Supported&lt;/td&gt;        &lt;td valign="top" width="235"&gt;         &lt;ul&gt;           &lt;li&gt;&lt;font color="#0000ff"&gt;SQL Server 2005&lt;/font&gt; &lt;/li&gt;            &lt;li&gt;&lt;font color="#0000ff"&gt;SQL Server 2008 &lt;/font&gt;&lt;/li&gt;            &lt;li&gt;&lt;font color="#0000ff"&gt;SQL Server 2008 R2&lt;/font&gt; &lt;/li&gt;            &lt;li&gt;&lt;font color="#0000ff"&gt;SQL Azure&lt;/font&gt; &lt;/li&gt;         &lt;/ul&gt;       &lt;/td&gt;        &lt;td valign="top" width="259"&gt;         &lt;ul&gt;           &lt;li&gt;&lt;font color="#ff8000"&gt;SQL Server 2005&lt;/font&gt; &lt;/li&gt;            &lt;li&gt;&lt;font color="#ff8000"&gt;SQL Server 2008&lt;/font&gt; &lt;/li&gt;            &lt;li&gt;&lt;font color="#ff8000"&gt;SQL Server 2008 R2&lt;/font&gt; &lt;/li&gt;            &lt;li&gt;&lt;font color="#ff8000"&gt;SQL Azure&lt;/font&gt; &lt;/li&gt;            &lt;li&gt;&lt;font color="#ff8000"&gt;SQL Server 2000&lt;/font&gt; &lt;/li&gt;         &lt;/ul&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="166"&gt;Permission needed&lt;/td&gt;        &lt;td valign="top" width="235"&gt;db_ddladmin&lt;/td&gt;        &lt;td valign="top" width="259"&gt;db_ddladmin&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="166"&gt;Pre-existence&lt;/td&gt;        &lt;td valign="top" width="235"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="259"&gt;The target database must be created at the hosting provider before the source database is published.          &lt;br /&gt;Publishing overwrites objects in that existing database&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff" size="4"&gt;Supported Objects for Publishing&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The following table lists the objects that can be published and the versions of SQL Server on which they are supported by the Generate and Publish Scripts Wizard.&lt;/p&gt;  &lt;table border="1" cellspacing="0" cellpadding="0"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;&lt;b&gt;Database object&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;&lt;b&gt;SQL Server 2008 R2&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;&lt;b&gt;SQL Server 2008&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;&lt;b&gt;SQL Server 2005&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;&lt;b&gt;SQL Server 2000&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Application role&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Assembly&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;No&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;CHECK constraint&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;CLR (common language runtime) stored procedure&lt;sup&gt;1&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;No&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;CLR user-defined function&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;No&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Database role&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;DEFAULT constraint&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Full-text catalog&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Index&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Rule&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Schema&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;No&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Stored procedure&lt;sup&gt;1&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Synonym&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;Table&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;User&lt;sup&gt;2&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;User-defined aggregate&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;No&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;User-defined data type&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;User-defined function&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;User-defined table&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;No&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;No&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;User-defined type&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;No&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;View&lt;sup&gt;1&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top"&gt;         &lt;p&gt;XML schema collection&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="17%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="15%"&gt;         &lt;p&gt;Yes&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="13%"&gt;&amp;#160;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;br /&gt;  &lt;p&gt;1 Published without encryption.    &lt;br /&gt;2 Any non-system users that exist in the database are published as Roles.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff" size="4"&gt;How to generate SQL Scripts using Generate and Publish Scripts Wizard&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;We can create Transact-SQL scripts for multiple objects by using the Generate and Publish Scripts Wizard.. You can also generate a script for individual objects or multiple objects by using the Script as menu in Object Explorer.    &lt;br /&gt;    &lt;br /&gt;Use the Generate and Publish Scripts Wizard to create a Transact-SQL script for many objects.     &lt;br /&gt;The wizard generates a script of all the objects in a database, or a subset of the objects that you select. The wizard has many options for your scripts, such as whether to include permissions, collation, constraints, and so on.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 1:      &lt;br /&gt;      &lt;br /&gt;&lt;/strong&gt;In Object Explorer, expand &lt;strong&gt;Databases&lt;/strong&gt;, right-click a database, point to &lt;strong&gt;Tasks&lt;/strong&gt;, and then click &lt;strong&gt;Generate Scripts&lt;/strong&gt;. Follow the steps in the wizard to script the database objects.     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TdEb1DZt3dI/AAAAAAAAA0U/fcWTr2lnwtI/s1600-h/image%5B8%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TdEb4x1O7mI/AAAAAAAAA0Y/QeqdDnCribw/image_thumb%5B7%5D.png?imgmax=800" width="388" height="397" /&gt;&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TdEb7qZt8gI/AAAAAAAAA0c/h3zhwVOx3vI/s1600-h/image5%5B1%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEcCfQzQ1I/AAAAAAAAA0g/hJVQdQ73IYQ/image5_thumb.png?imgmax=800" width="413" height="309" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;    &lt;br /&gt;&lt;/p&gt; &lt;strong&gt;Step 2:&lt;/strong&gt; On the Choose &lt;strong&gt;Objects &lt;/strong&gt;page, select the objects to be included in the script   &lt;br /&gt;  &lt;p&gt;   &lt;br /&gt;&lt;strong&gt;&lt;font color="#0000ff" size="4"&gt;Script &lt;u&gt;entire database&lt;/u&gt; and all database objects&lt;/font&gt;       &lt;br /&gt;&lt;/strong&gt;Click to generate scripts for all objects in the database and to include a script for the database itself.     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEcEXkb6sI/AAAAAAAAA0k/TN-1v91AZBA/s1600-h/image10%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TdEcJ6bIp2I/AAAAAAAAA0o/hQ0eaorOOR4/image10_thumb%5B1%5D.png?imgmax=800" width="443" height="376" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 1.3:&lt;/strong&gt; On the Set Scripting Options page, select Save scripts to a specific location.     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEcMcmfWsI/AAAAAAAAA0s/qwp4ynRMg3Q/s1600-h/image18%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEcPgRaBGI/AAAAAAAAA0w/QDcnBysMC9c/image18_thumb%5B1%5D.png?imgmax=800" width="468" height="424" /&gt;&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;Select &lt;strong&gt;Save scripts&lt;/strong&gt; to a specific location     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEcSrOqjhI/AAAAAAAAA00/S8LhxFaJkGY/s1600-h/image78%5B3%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEcVteSwEI/AAAAAAAAA04/OaAdFRdQzXc/image78_thumb%5B2%5D.png?imgmax=800" width="519" height="389" /&gt;&lt;/a&gt;     &lt;br /&gt;Summary:     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TdEcXkQ3WlI/AAAAAAAAA08/jLKw46egn7I/s1600-h/image83%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TdEcanSk7uI/AAAAAAAAA1A/8ckrXLt1FfA/image83_thumb%5B1%5D.png?imgmax=800" width="490" height="336" /&gt;&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;Click &lt;strong&gt;Finish&lt;/strong&gt;.     &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;To generate the Script for the Data on the table:        &lt;br /&gt;&lt;/font&gt;&lt;/strong&gt;    &lt;br /&gt;Set “Script Data: &lt;strong&gt;True “&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEcdbTXUiI/AAAAAAAAA1E/ZLJAxsYeZsc/s1600-h/image72%5B1%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TdEchOklPJI/AAAAAAAAA1I/pFsGC04Dfsk/image72_thumb.png?imgmax=800" width="423" height="236" /&gt;&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;&lt;font size="4"&gt;Select &lt;u&gt;specific database objects&lt;/u&gt;&lt;/font&gt;&lt;/strong&gt;       &lt;br /&gt;&lt;/font&gt;Click to limit the wizard to generate scripts for only the specific objects in the database that you choose.&lt;/p&gt;  &lt;p&gt;For example I have selected &lt;em&gt;Tables&lt;/em&gt; Object&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TdEcjiTg0OI/AAAAAAAAA1M/JRHrQiSyAjc/s1600-h/image24%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TdEcnm7prvI/AAAAAAAAA1Q/DGugG2vpTQQ/image24_thumb%5B1%5D.png?imgmax=800" width="427" height="346" /&gt;&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;Within Tables Object, I have chosen &lt;em&gt;HumanResources.Employee&lt;/em&gt; Table     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TdEcpj7DkfI/AAAAAAAAA1U/C8OsQheD2tY/s1600-h/image30%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TdEctDmBJCI/AAAAAAAAA1Y/Nw9UdxuyP-Y/image30_thumb%5B1%5D.png?imgmax=800" width="473" height="388" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;    &lt;br /&gt;Select &lt;strong&gt;Save scripts&lt;/strong&gt; to a specific location     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TdEcwGirrgI/AAAAAAAAA1c/Oaix1StPdgE/s1600-h/image35%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEczZhbKzI/AAAAAAAAA1g/lfZANHTsimk/image35_thumb%5B1%5D.png?imgmax=800" width="493" height="356" /&gt;&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;Script Wizard Summary     &lt;br /&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEc1gGez0I/AAAAAAAAA1k/2KIVFQ1yV_0/s1600-h/image41%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TdEc5jTo91I/AAAAAAAAA1o/_8yEiMV7zKI/image41_thumb%5B1%5D.png?imgmax=800" width="521" height="405" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEc8rBqnHI/AAAAAAAAA1s/E6EiqLQTMIQ/s1600-h/image52%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEdAe0XQ1I/AAAAAAAAA1w/CFK-qItS6j0/image52_thumb%5B1%5D.png?imgmax=800" width="567" height="404" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;View of the Output file generated:    &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TdEdFNXy3vI/AAAAAAAAA10/2XLzsPAYmUY/s1600-h/image57%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TdEdKWX3DcI/AAAAAAAAA14/HQYOpUdL5ZY/image57_thumb%5B1%5D.png?imgmax=800" width="575" height="291" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;References:&lt;/strong&gt;     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb895179.aspx"&gt;Using the Generate and Publish Scripts Wizard&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms178078.aspx"&gt;How to: Generate a Script (SQL Server Management Studio)&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1990320156589418148?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1990320156589418148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1990320156589418148' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1990320156589418148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1990320156589418148'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/how-to-create-scripts-for-entire.html' title='How to create scripts for an entire database or specific object in SQL Server 2008?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TdEb4x1O7mI/AAAAAAAAA0Y/QeqdDnCribw/s72-c/image_thumb%5B7%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2176557579984360787</id><published>2011-05-11T01:44:00.001-07:00</published><updated>2011-05-11T01:44:16.623-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Learn'/><category scheme='http://www.blogger.com/atom/ns#' term='Useful'/><title type='text'>Useful Microsoft SQL Server websites on SQL Server</title><content type='html'>&lt;p&gt;   &lt;br /&gt;Here, is the list of useful Microsoft SQL Server Websites.&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="851"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="182"&gt;&lt;strong&gt;Title&lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="264"&gt;&lt;strong&gt;Description / Content&lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="399"&gt;&lt;strong&gt;Website&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="182"&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;Microsoft SQL Server             &lt;br /&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="264"&gt;Commercial Site         &lt;br /&gt;Buy, About Pricing, Edition, License          &lt;br /&gt;Positioning whitepapers          &lt;br /&gt;Case Study          &lt;br /&gt;Edition          &lt;br /&gt;Product Information          &lt;br /&gt;Customers          &lt;br /&gt;Partners          &lt;br /&gt;Support&lt;/td&gt;        &lt;td valign="top" width="399"&gt;&lt;a href="http://www.microsoft.com/sqlserver/en/us/default.aspx"&gt;http://www.microsoft.com/sqlserver/en/us/default.aspx&lt;/a&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="182"&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;SQL Server Books On Line ( BOL )&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="264"&gt;Books On Line - BOL&lt;/td&gt;        &lt;td valign="top" width="399"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms130214.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms130214.aspx&lt;/a&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="182"&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;MSDN SQL Server Forum&lt;/strong&gt;&lt;/font&gt; &lt;/td&gt;        &lt;td valign="top" width="264"&gt;SQL Server Online Community Forum&lt;/td&gt;        &lt;td valign="top" width="399"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms130214.aspx"&gt;http://social.msdn.microsoft.com/Forums/en/category/sqlserver/&lt;/a&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="182"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="264"&gt;SQL Server Training Webinars         &lt;br /&gt;Community Blogs          &lt;br /&gt;Learning Resources&lt;/td&gt;        &lt;td valign="top" width="399"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms130214.aspx"&gt;http://msdn.microsoft.com/en-us/sqlserver/default.aspx&lt;/a&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="182"&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;SQL Server Technet&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="264"&gt;Troubleshoot an issue         &lt;br /&gt;Top Support Solutions&lt;/td&gt;        &lt;td valign="top" width="399"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms130214.aspx"&gt;http://&lt;/a&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms130214.aspx"&gt;technet.microsoft.com/en-us/sqlserver/default.aspx&lt;/a&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="182"&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;SQL Server Certification&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="264"&gt;Certification Path         &lt;br /&gt;Certification Title          &lt;br /&gt;Courses&lt;/td&gt;        &lt;td valign="top" width="399"&gt;&lt;a title="http://www.microsoft.com/learning/en/us/certification/cert-sql-server.aspx" href="http://www.microsoft.com/learning/en/us/certification/cert-sql-server.aspx"&gt;http://www.microsoft.com/learning/en/us/certification/cert-sql-server.aspx&lt;/a&gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2176557579984360787?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2176557579984360787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2176557579984360787' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2176557579984360787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2176557579984360787'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/useful-microsoft-sql-server-websites-on.html' title='Useful Microsoft SQL Server websites on SQL Server'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-296813913823817765</id><published>2011-05-11T01:22:00.001-07:00</published><updated>2011-05-11T01:22:59.767-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='Trigger'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>Msg 3701, Level 11, State 5, Line 1 Cannot drop the trigger ‘ ‘,  because it does not exist or you do not have permission.</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I got the error message below, when i was playing with DDL Trigger on SQL Server 2008.   &lt;br /&gt;The trigger exists, i have cross verified querying;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="400"&gt;         &lt;p&gt;select *            &lt;br /&gt;from master.sys.server_triggers             &lt;br /&gt;where name = 'connection_limit_trigger'&lt;/p&gt;          &lt;br /&gt;          &lt;p&gt;select objectproperty(1435152158, 'isTrigger') isTrigger           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ,objectproperty(1435152158, 'ownerid') ownerID&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Error Message:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Msg 3701, Level 11, State 5, Line 1   &lt;br /&gt;Cannot drop the trigger 'connection_limit_trigger', because it does not exist or you do not have permission.&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Resolution:&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;After scratching my head, i found the resolution. It is simple !&lt;/p&gt;  &lt;p&gt;If the trigger is DATABASE Level scope use below   &lt;br /&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="400"&gt;         &lt;p&gt;Drop TRIGGER connection_limit_trigger &lt;strong&gt;on Database&lt;/strong&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Otherwise if it is Server Level scope please try below;   &lt;br /&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="400"&gt;Drop TRIGGER connection_limit_trigger &lt;strong&gt;on all server&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Cause:       &lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;The lost bold command i.e. scope level makes the different.    &lt;br /&gt;When we use DDL Trigger and trying to drop using the DROP command, we should match the scope level of the trigger when it created.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-296813913823817765?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/296813913823817765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=296813913823817765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/296813913823817765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/296813913823817765'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/msg-3701-level-11-state-5-line-1-cannot.html' title='Msg 3701, Level 11, State 5, Line 1 Cannot drop the trigger ‘ ‘,  because it does not exist or you do not have permission.'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-726467424936825352</id><published>2011-05-10T18:40:00.001-07:00</published><updated>2011-05-10T18:40:08.172-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>The server principal is set as the execution context of a trigger or event notification and cannot be dropped.</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I got error message below when i try to drop a login named ‘test_login’&lt;/p&gt;  &lt;p&gt;Error Message:   &lt;br /&gt;Msg 15186, Level 16, State 1, Line 1    &lt;br /&gt;The server principal is set as the execution context of a trigger or event notification and cannot be dropped.&lt;/p&gt;  &lt;p&gt;It means that there are&amp;#160; &lt;strong&gt;execute as&lt;/strong&gt; username in a stored procedure or function or triggers, and that is why it will not allow me to drop the user.    &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;EXECUTE&lt;/strong&gt; permission - a check is made to see if this permission is granted. If yes the user is allowed to run the stored procedure&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;EXECUTE AS&lt;/strong&gt; - when the stored procedure is run, it will run under the context of the user specified in the clause rather than the context of the user who has run it.&lt;/p&gt;  &lt;p&gt;Use the query below find the &lt;strong&gt;execute as&lt;/strong&gt; object&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="400"&gt;select object_name(object_id)          &lt;br /&gt;from sys.sql_modules           &lt;br /&gt;where execute_as_principal_id = user_id('test_login')&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-726467424936825352?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/726467424936825352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=726467424936825352' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/726467424936825352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/726467424936825352'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/server-principal-is-set-as-execution.html' title='The server principal is set as the execution context of a trigger or event notification and cannot be dropped.'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1492038290383719675</id><published>2011-05-10T17:19:00.001-07:00</published><updated>2011-05-10T17:19:08.374-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='DMV'/><title type='text'>How to find the Dynamic Management Views on SQL Server Management Studio?</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Expand the Views –&amp;gt; System Views on each database nodes.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TcnV4p2cxdI/AAAAAAAAA0M/16NIWLh_uc8/s1600-h/image%5B17%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TcnV-UwgafI/AAAAAAAAA0Q/yAdC_GIq8eQ/image_thumb%5B15%5D.png?imgmax=800" width="440" height="445" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1492038290383719675?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1492038290383719675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1492038290383719675' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1492038290383719675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1492038290383719675'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/how-to-find-dynamic-management-views-on.html' title='How to find the Dynamic Management Views on SQL Server Management Studio?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TcnV-UwgafI/AAAAAAAAA0Q/yAdC_GIq8eQ/s72-c/image_thumb%5B15%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5724586525860186412</id><published>2011-05-03T18:46:00.001-07:00</published><updated>2011-05-03T18:48:28.141-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Audit'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='CDC'/><category scheme='http://www.blogger.com/atom/ns#' term='Change Track'/><title type='text'>Change Tracking Vs. Change Data Capture ( CDC ) in SQL Server 2008</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Here we find the difference between the Change Track vs Change Data Capture in SQL Server 2008. Both helps in tracking the table changes and security compliance.&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="638"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="298"&gt;&lt;strong&gt;Change Track&lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="334"&gt;&lt;strong&gt;Change Data Capture – CDC&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;&lt;strong&gt;It is about fact:           &lt;br /&gt;&lt;/strong&gt;It captures only the fact as the tracking table has changed. It does NOT capture the data.          &lt;br /&gt;Therefore, change tracking is more limited in the historical questions it can answer compared to change data capture. However, for those applications that do not require the historical information, there is far less storage overhead because of the changed data not being captured&lt;/td&gt;        &lt;td valign="top" width="334"&gt;&lt;strong&gt;It is about the Data:           &lt;br /&gt;&lt;/strong&gt;Change data capture provides historical change information for a user table by capturing both the fact that DML changes were made and the actual data that was changed. &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;         &lt;p&gt;Storage:           &lt;br /&gt;Internal tables are placed on the same filegroup as the parent entity. You could use the &lt;strong&gt;sys.internal_tables&lt;/strong&gt; catalog view to show all the internal tables and parent entities. For example:            &lt;br /&gt;&lt;font color="#0000ff"&gt;select name, object_name(parent_id) as parent_object from sys.internal_tables&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="334"&gt;Storage:         &lt;br /&gt;When change data capture is enabled for a database, a few things are added to the database, including a new schema (called &lt;strong&gt;cdc&lt;/strong&gt;), some metadata tables, and a trigger to capture Data Definition Language (DDL) events.           &lt;br /&gt;          &lt;br /&gt;The two function names are, respectively, &lt;strong&gt;fn_cdc_get_all_changes_ &lt;/strong&gt;and &lt;strong&gt;fn_cdc_get_net_changes_&lt;/strong&gt;, with the capture instance name appended. Note that (like the change tracking feature) this functionality requires the table to have a &lt;strong&gt;primary key&lt;/strong&gt; or other &lt;strong&gt;unique index&lt;/strong&gt;.          &lt;br /&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;Supported on “Simple” recovery model also.         &lt;br /&gt;It is recommended that you use &lt;strong&gt;snapshot isolation&lt;/strong&gt; when change tracking is enabled. Snapshot isolation itself can add significant workload overhead and requires much more careful management of tempdb.&lt;/td&gt;        &lt;td valign="top" width="334"&gt;Prevents Log truncation.         &lt;br /&gt;Forces full logging of some bulk operations.          &lt;br /&gt;          &lt;br /&gt;One major point to note here is that once change data capture is enabled, the transaction log behaves just as it does with &lt;strong&gt;transactional replication&lt;/strong&gt;—the log cannot be truncated until the log reader has processed it. This means a checkpoint operation, even in SIMPLE recovery mode, &lt;u&gt;will not truncate&lt;/u&gt; the log unless it has already been processed by the log reader.&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;It uses &lt;strong&gt;synchronous&lt;/strong&gt; tracking mechanism.          &lt;br /&gt;once a database is enabled for change tracking, a &lt;strong&gt;version number&lt;/strong&gt; is instituted, which allows ordering of operations&lt;/td&gt;        &lt;td valign="top" width="334"&gt;Change Data Capture (CDC) uses the &lt;strong&gt;asynchronous&lt;/strong&gt; process that reads the transaction log.&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;Change Tracking has minimal impact on the system.&lt;/td&gt;        &lt;td valign="top" width="334"&gt;It has almost nil impact as it asynchronous mechanism reads from the transaction log.&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;It uses &lt;strong&gt;TempDB &lt;/strong&gt;heavily&lt;/td&gt;        &lt;td valign="top" width="334"&gt;It uses transaction log.         &lt;br /&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;DDL Restriction:         &lt;br /&gt;There are restrictions on the DDL that can be performed on a table being tracked. The most notable restriction is that the &lt;u&gt;primary key cannot be altered&lt;/u&gt; in any way. The other restriction worth calling out here is that an ALTER &lt;u&gt;TABLE SWITCH&lt;/u&gt; will fail if either table involved has change tracking enabled.&lt;/td&gt;        &lt;td valign="top" width="334"&gt;No such DDL restriction&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;SQL Agent not needed&lt;/td&gt;        &lt;td valign="top" width="334"&gt;It requires SQL Agent to be running.         &lt;br /&gt;SQL Agent Job &amp;amp; Transaction Replication:          &lt;br /&gt;Two SQL Agent jobs may be created: the &lt;strong&gt;capture job&lt;/strong&gt; and the &lt;strong&gt;cleanup job&lt;/strong&gt;. I say &amp;quot;may be created&amp;quot; because the capture job is the same as the one used for harvesting transactions in transactional replication.           &lt;br /&gt;If transactional replication is already configured, then only the cleanup job will be created and the existing log reader job will also be used as the capture job&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="298"&gt;Permission required to enable: SYSADMIN&lt;/td&gt;        &lt;td valign="top" width="334"&gt;Permission required to enable: DBOwner&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Reference:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc280519.aspx"&gt;Comparing Change Data Capture and Change Tracking&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/magazine/2008.11.sql.aspx?pr=blog"&gt;Tracking Changes in your Enterprise&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5724586525860186412?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5724586525860186412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5724586525860186412' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5724586525860186412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5724586525860186412'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/change-tracking-vs-change-data-capture.html' title='Change Tracking Vs. Change Data Capture ( CDC ) in SQL Server 2008'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6272808921622667033</id><published>2011-05-02T04:05:00.001-07:00</published><updated>2011-05-02T04:07:55.133-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2000'/><category scheme='http://www.blogger.com/atom/ns#' term='Restore'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2000'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title type='text'>How to find the status of Backup / Restore in SQL Server 2000</title><content type='html'>&lt;p&gt;   &lt;br /&gt;To know the status of backup or restore in SQL Server 2000 ;&lt;/p&gt;  &lt;p&gt;1. Find the SPID which is restoring the DB using &lt;strong&gt;sp_who2&lt;/strong&gt; or from sysprocesses&lt;/p&gt;  &lt;p&gt;2. Execute &lt;strong&gt;dbcc outputbuffer(&lt;em&gt;SPID&lt;/em&gt;)&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;From the output get the %completed status:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/Tb6P8aDwr6I/AAAAAAAAA0E/8AOY190iDfs/s1600-h/image%5B16%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/Tb6P_5pfujI/AAAAAAAAA0I/-lF4xIEXpzk/image_thumb%5B14%5D.png?imgmax=800" width="677" height="379" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6272808921622667033?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6272808921622667033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6272808921622667033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6272808921622667033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6272808921622667033'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/05/how-to-find-status-of-backup-restore-in.html' title='How to find the status of Backup / Restore in SQL Server 2000'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_w7ME_yT4MGY/Tb6P_5pfujI/AAAAAAAAA0I/-lF4xIEXpzk/s72-c/image_thumb%5B14%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2176347777081231436</id><published>2011-04-26T01:54:00.001-07:00</published><updated>2011-04-26T04:58:31.999-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Schema'/><category scheme='http://www.blogger.com/atom/ns#' term='Query'/><title type='text'>Schema in SQL Server</title><content type='html'>&lt;p&gt;&amp;#160; &lt;br /&gt;&lt;strong&gt;Users and schemas are completely separate&lt;/strong&gt;. The behavior of schemas changed in SQL Server 2005. Schemas are no longer equivalent to database users;A schema is simply a container of objects. &lt;strong&gt;Schemas own objects and principles own schemas.&lt;/strong&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;A single schema can contain objects owned by multiple database users. &lt;/li&gt;    &lt;li&gt;A database user can be dropped without dropping objects in a corresponding schema &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;font color="#ff0080"&gt;A schema can be owned by any user, and its ownership is transferable. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;Why Schema introduced on SQL Server?&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The Users and Schemas separation means objects and schemas can be created before users are added to the database. It also means a user can be dropped without specifically dropping the objects owned by that user. &lt;strong&gt;A schema can only be owned by one user at a time, but a single user can simultaneously own many schemas.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;How to transfer Schema ownership?&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The following example transfers ownership of the schema LabProduction to user Sivaprasad.&lt;/p&gt;  &lt;p&gt;&lt;a name="CodeSpippet4"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#808080"&gt;ALTER AUTHORIZATION ON SCHEMA::LabProduction TO Sivaprasad;      &lt;br /&gt;GO       &lt;br /&gt;&lt;/font&gt;    &lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms187359.aspx"&gt;Changes the ownership of a securable – using ALTER AUTHORIZATION&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;ALTER AUTHORIZATION can be used to change the ownership of any entity that has an owner. Ownership of database-contained entities can be transferred to any database-level principal. Ownership of server-level entities can be transferred only to server-level principals&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;How to move objects between Schema?&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms173423.aspx"&gt;ALTER SCHEMA&lt;/a&gt; can only be used to move securables between schemas in the same database. To change or drop a securable within a schema, use the ALTER or DROP statement specific to that securable.     &lt;br /&gt;&lt;font color="#c0c0c0"&gt;&lt;font color="#333333"&gt;       &lt;br /&gt;For example, below modifies the schema HumanResources by transferring the table Address from schema Person into the schema&lt;/font&gt;      &lt;br /&gt;      &lt;br /&gt;ALTER SCHEMA HumanResources TRANSFER Person.Address;       &lt;br /&gt;GO&lt;/font&gt;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="511"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="505"&gt;         &lt;p&gt;-- Create TestDB Database           &lt;br /&gt;Create database TestDB            &lt;br /&gt;go &lt;/p&gt;          &lt;p&gt;-- Change the DB Context to TestDB           &lt;br /&gt;Use TestDB            &lt;br /&gt;go &lt;/p&gt;          &lt;p&gt;-- Created Schema Student            &lt;br /&gt;Create Schema Student            &lt;br /&gt;go &lt;/p&gt;          &lt;p&gt;--– Created table in Student schema –           &lt;br /&gt;Create Table Student.Student_Info            &lt;br /&gt;(            &lt;br /&gt;Student_No int Primary Key identity(1,1),            &lt;br /&gt;Student_Name varchar(50)            &lt;br /&gt;)             &lt;br /&gt;go            &lt;br /&gt;            &lt;br /&gt;--– Insert Data            &lt;br /&gt;Insert Into Student.Student_Info Values('Sivaprasad')            &lt;br /&gt;go            &lt;br /&gt;            &lt;br /&gt;--– Select Data            &lt;br /&gt;Select * From Student.Student_Info            &lt;br /&gt;go            &lt;br /&gt;            &lt;br /&gt;--– Create another schema Course             &lt;br /&gt;Create Schema Course            &lt;br /&gt;go&lt;/p&gt;          &lt;p&gt;           &lt;br /&gt;--– Transfer Objects from Student Schema to Course Schema            &lt;br /&gt;ALTER SCHEMA Course            &lt;br /&gt;TRANSFER Student.Student_Info            &lt;br /&gt;go &lt;/p&gt;          &lt;p&gt;--– Assign Permission to Schema            &lt;br /&gt;GRANT SELECT ON SCHEMA::Course TO Sivaprasad            &lt;br /&gt;go&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2176347777081231436?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2176347777081231436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2176347777081231436' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2176347777081231436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2176347777081231436'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/04/schema-in-sql-server.html' title='Schema in SQL Server'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3647922244956011691</id><published>2011-04-08T23:05:00.001-07:00</published><updated>2011-04-08T23:05:11.209-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Outlook'/><title type='text'>MS Outlook: The form you selected could not be displayed. Contact your administrator.</title><content type='html'>&lt;p&gt;   &lt;br /&gt;Error message: The form you selected could not be displayed. Contact your administrator.&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TZ_21tNhRGI/AAAAAAAAAzU/3iNADr8LTDg/s1600-h/image%5B5%5D.png"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TZ_21tNhRGI/AAAAAAAAAzU/3iNADr8LTDg/s1600-h/image%5B5%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TZ_23JclMxI/AAAAAAAAAzY/sHWTITtufVo/image_thumb%5B3%5D.png?imgmax=800" width="553" height="92" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Cause:&lt;/u&gt;&lt;/strong&gt;&amp;#160;&amp;#160; Problem with the form cache&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Resolution:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Select –&amp;gt; Tools –&amp;gt; Options –&amp;gt; Others Tab&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TZ_242U8uoI/AAAAAAAAAzc/OtjJeasTh_s/s1600-h/image%5B19%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TZ_27ClVYGI/AAAAAAAAAzg/xccxrEfvur0/image_thumb%5B9%5D.png?imgmax=800" width="384" height="343" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Select Advanced Options..&lt;/p&gt;  &lt;p&gt;Select Custom Forms..&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TZ_28a6xXgI/AAAAAAAAAzk/bXsCyhI_56k/s1600-h/image%5B21%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TZ_2_EpJjlI/AAAAAAAAAzo/W7XjqsF9tKA/image_thumb%5B11%5D.png?imgmax=800" width="380" height="371" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Click Manage Forms&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TZ_2_8NZ_cI/AAAAAAAAAzs/VquZUD9o_-Y/s1600-h/image%5B23%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TZ_3CYhsb7I/AAAAAAAAAzw/E1dK0VgrwWM/image_thumb%5B13%5D.png?imgmax=800" width="331" height="281" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Clear Cache&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TZ_3DRiQYnI/AAAAAAAAAz0/Mn6ddCW86fk/s1600-h/image%5B25%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TZ_3E5ExvuI/AAAAAAAAAz4/l_nckARy1BU/image_thumb%5B15%5D.png?imgmax=800" width="347" height="234" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Otherwise try copying the file &lt;strong&gt;OUTLOOK.box&lt;/strong&gt; from other user profiles.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3647922244956011691?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3647922244956011691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3647922244956011691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3647922244956011691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3647922244956011691'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/04/ms-outlook-form-you-selected-could-not.html' title='MS Outlook: The form you selected could not be displayed. Contact your administrator.'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_w7ME_yT4MGY/TZ_23JclMxI/AAAAAAAAAzY/sHWTITtufVo/s72-c/image_thumb%5B3%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1647877012826679200</id><published>2011-03-14T19:48:00.001-07:00</published><updated>2011-03-14T19:48:28.195-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOS Batch'/><title type='text'>How to set environment variable permanent in DOS</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;By using the &lt;strong&gt;SET&lt;/strong&gt; the environment value persist till the current session live.    &lt;br /&gt;To set the environment value permanent in DOS use the &lt;strong&gt;SETX&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;a href="http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=dc2d3339-8f36-4fba-a406-2a2a2ad7208c"&gt;Download SETX&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1647877012826679200?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1647877012826679200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1647877012826679200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1647877012826679200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1647877012826679200'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2011/03/how-to-set-environment-variable.html' title='How to set environment variable permanent in DOS'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4061277969772784746</id><published>2010-12-18T21:09:00.001-08:00</published><updated>2010-12-18T21:09:43.364-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Service Pack'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>Download Microsoft SQL Server 2005 Service Pack 4 RTM</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Service Pack 4 (SP4) for Microsoft SQL Server 2005 is now available for download. &lt;/p&gt;  &lt;p&gt;SQL Server 2005 SP4 includes SQL Server 2005 SP3 cumulative update 1 to 11, customer requested fixes, along with instances of the SQL Server 2005 SP4 database Engine support for DAC operations.&lt;/p&gt;  &lt;p&gt;It can be downloaded from&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b953e84f-9307-405e-bceb-47bd345baece"&gt;Microsoft SQL Server 2005 Service Pack 4 RTM&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4061277969772784746?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4061277969772784746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4061277969772784746' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4061277969772784746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4061277969772784746'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/12/download-microsoft-sql-server-2005.html' title='Download Microsoft SQL Server 2005 Service Pack 4 RTM'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7113315642245501521</id><published>2010-12-16T06:15:00.001-08:00</published><updated>2010-12-16T06:15:18.840-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>SQL Server has encountered 2 occurrence(s) of cachestore flush for the 'Bound Trees' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Error:   &lt;br /&gt;SQL Server has encountered 2 occurrence(s) of cachestore flush for the 'Bound Trees' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.&lt;/p&gt;  &lt;p&gt;Cause:   &lt;br /&gt;When we take the database &lt;strong&gt;OFFLINE&lt;/strong&gt; this error raised.&lt;/p&gt;  &lt;p&gt;Reference: &lt;a title="http://support.microsoft.com/kb/917828" href="http://support.microsoft.com/kb/917828"&gt;http://support.microsoft.com/kb/917828&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7113315642245501521?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7113315642245501521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7113315642245501521' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7113315642245501521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7113315642245501521'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/12/sql-server-has-encountered-2.html' title='SQL Server has encountered 2 occurrence(s) of cachestore flush for the &amp;#39;Bound Trees&amp;#39; cachestore (part of plan cache) due to some database maintenance or reconfigure operations.'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-168103324231663667</id><published>2010-12-15T17:23:00.001-08:00</published><updated>2010-12-16T00:51:02.668-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>The server principal is not able to access the database under the current security context.</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I reproduced the error below;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Issue 1:&lt;/strong&gt;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="675"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="669"&gt;&lt;strong&gt;Msg 916, Level 14, State 1, Line 1            &lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;The server principal &amp;quot;Test_Login&amp;quot; is not able to access the database &amp;quot;testdb&amp;quot; under the current security context.&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;1. Created database ‘&lt;b&gt;testdb’&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;2. Created the login ‘&lt;b&gt;Test_Login&lt;/b&gt;’. The login not granted access on the database ‘testdb’&lt;/p&gt;  &lt;p&gt;3. On logging on ‘Test_Login’, tried accesing the database ‘testdb’ and got the error.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TQlqIc0WLeI/AAAAAAAAAys/__EH8C7FDGc/s1600-h/clip_image002%5B11%5D.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TQlqJkYDK2I/AAAAAAAAAyw/wHI9UH_l6Vs/clip_image002_thumb%5B8%5D.jpg?imgmax=800" width="644" height="389" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;From the error message, when the server principal ( login) does not have access on the database the error occurs.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Resolution 1:      &lt;br /&gt;&lt;/b&gt;Grant the database access for the login. For example;&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="400"&gt;         &lt;p&gt;Use testdb            &lt;br /&gt;go &lt;/p&gt;          &lt;p&gt;Create User Test_Login for Login Test_Login            &lt;br /&gt;go&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Issue 2:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;The database is in “Restricted Mode”&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TQnS6GWvjOI/AAAAAAAAAy0/u6GknKn00uE/s1600-h/image%5B9%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TQnS8rOV4LI/AAAAAAAAAy4/KJFTLiPsx8g/image_thumb%5B7%5D.png?imgmax=800" width="539" height="484" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Try the query below, to access the database in different user context&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="587"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="581"&gt;         &lt;p&gt;Use testdb           &lt;br /&gt;go            &lt;br /&gt;execute as user='test_login'            &lt;br /&gt;go &lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Msg 916, Level 14, State 1, Line 1   &lt;br /&gt;The server principal &amp;quot;Test_Login&amp;quot; is not able to access the database &amp;quot;testdb&amp;quot; under the current security context.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;strong&gt;Reference :&lt;/strong&gt;&amp;#160; &lt;br /&gt;&amp;quot;&lt;a href="http://support.microsoft.com/kb/913422"&gt;The server principal LoginName is not able to access the database DatabaseName under the current security context&amp;quot;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-168103324231663667?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/168103324231663667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=168103324231663667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/168103324231663667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/168103324231663667'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/12/server-principal-is-not-able-to-access.html' title='The server principal is not able to access the database under the current security context.'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TQlqJkYDK2I/AAAAAAAAAyw/wHI9UH_l6Vs/s72-c/clip_image002_thumb%5B8%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1815668618191462837</id><published>2010-12-05T00:28:00.001-08:00</published><updated>2010-12-05T00:30:47.730-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='TSM'/><title type='text'>TSM TDPSQL Backup failed</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Recently when i tried TSM TDPSQL backup with the new server on SQL Server 2008 failed with the error below.&lt;/p&gt;  &lt;p&gt;“ TSM TDP SQL Error: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Process Exit Code 1914. The step failed. “   &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtM0Zu-1gI/AAAAAAAAAyk/2pqMi5yTIf0/s1600-h/image%5B3%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtNMaluVzI/AAAAAAAAAyo/tSACR-YyhN8/image_thumb%5B1%5D.png?imgmax=800" width="627" height="484" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Resolution:        &lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;After investigation, installed the TSM TDP SQL version &lt;strong&gt;5.5.4.0&lt;/strong&gt; from 5.5.0. This resolved the issue.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1815668618191462837?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1815668618191462837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1815668618191462837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1815668618191462837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1815668618191462837'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/12/tsm-tdpsql-backup-failed.html' title='TSM TDPSQL Backup failed'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TPtNMaluVzI/AAAAAAAAAyo/tSACR-YyhN8/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4912698525001068554</id><published>2010-12-04T23:46:00.001-08:00</published><updated>2010-12-04T23:46:42.201-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cluster'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Uninstall  SQL Server 2008 Cluster</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Here goes the SQL Server 2008 un-installation screenshots.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtCl4s8zLI/AAAAAAAAAxY/iIamsSCC7pk/s1600-h/image%5B13%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TPtCnbNsbmI/AAAAAAAAAxc/hbdyiKJV44U/image_thumb%5B11%5D.png?imgmax=800" width="244" height="184" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TPtCqd4IZKI/AAAAAAAAAxg/NVKXPbrJcrI/s1600-h/image%5B26%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TPtCuHM-C_I/AAAAAAAAAxk/AZws5MkpGd4/image_thumb%5B20%5D.png?imgmax=800" width="244" height="192" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TPtCycJvXGI/AAAAAAAAAxo/W_S-x31Iljg/s1600-h/image%5B25%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TPtCzv5EpEI/AAAAAAAAAxs/s1ULvHsAr7o/image_thumb%5B19%5D.png?imgmax=800" width="244" height="179" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TPtC4W-FSDI/AAAAAAAAAxw/8t13o-ct_iE/s1600-h/image%5B36%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TPtC6OAxc6I/AAAAAAAAAx0/JzqIf_VeSd8/image_thumb%5B26%5D.png?imgmax=800" width="244" height="180" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtC9b2euAI/AAAAAAAAAx4/H8wqhLWvU3g/s1600-h/image%5B39%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtC_gGt1sI/AAAAAAAAAx8/rvZCQi9YB5M/image_thumb%5B29%5D.png?imgmax=800" width="244" height="180" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtDDicJHPI/AAAAAAAAAyA/DaE5GCD7yFM/s1600-h/image%5B64%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtDEiwx81I/AAAAAAAAAyE/yJspMaryyGY/image_thumb%5B46%5D.png?imgmax=800" width="244" height="183" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TPtDHinWc8I/AAAAAAAAAyI/lenbl822P7o/s1600-h/image%5B61%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtDIgQ5X7I/AAAAAAAAAyQ/fnTdwjxE8dA/image_thumb%5B43%5D.png?imgmax=800" width="244" height="183" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TPtDLSD4VAI/AAAAAAAAAyU/3Ei43pUwjMw/s1600-h/image%5B58%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TPtDMunyoZI/AAAAAAAAAyY/zHDrOa5buIg/image_thumb%5B40%5D.png?imgmax=800" width="244" height="188" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TPtDVG8kO2I/AAAAAAAAAyc/fEKIBwM9u1k/s1600-h/image%5B55%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TPtDYJ2TgkI/AAAAAAAAAyg/kNijmC5jCFM/image_thumb%5B37%5D.png?imgmax=800" width="244" height="177" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4912698525001068554?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4912698525001068554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4912698525001068554' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4912698525001068554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4912698525001068554'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/12/uninstall-sql-server-2008-cluster.html' title='Uninstall  SQL Server 2008 Cluster'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_w7ME_yT4MGY/TPtCnbNsbmI/AAAAAAAAAxc/hbdyiKJV44U/s72-c/image_thumb%5B11%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5342890976378746915</id><published>2010-11-18T02:30:00.001-08:00</published><updated>2010-11-18T02:30:02.239-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBCC'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Query'/><title type='text'>TSQL Query to find the DB Maintenance status</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Are you curious to find the Database Backup / Restore status?   &lt;br /&gt;Do you have to find out the status the DBCC CHECKDB ?    &lt;br /&gt;Do you have to report when the ROLLBACK would finish ?    &lt;br /&gt;Do you want judge how long the Database Shrink will take?&lt;/p&gt;  &lt;p&gt;Here is the answer!&lt;/p&gt;  &lt;p&gt;The query listed below can be used to find the Percentage of work completed for the following commands: &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;ALTER INDEX REORGANIZE &lt;/li&gt;    &lt;li&gt;AUTO_SHRINK option with ALTER DATABASE &lt;/li&gt;    &lt;li&gt;BACKUP DATABASE &lt;/li&gt;    &lt;li&gt;DBCC CHECKDB &lt;/li&gt;    &lt;li&gt;DBCC CHECKFILEGROUP &lt;/li&gt;    &lt;li&gt;DBCC CHECKTABLE &lt;/li&gt;    &lt;li&gt;DBCC INDEXDEFRAG &lt;/li&gt;    &lt;li&gt;DBCC SHRINKDATABASE &lt;/li&gt;    &lt;li&gt;DBCC SHRINKFILE &lt;/li&gt;    &lt;li&gt;RECOVERY &lt;/li&gt;    &lt;li&gt;RESTORE DATABASE, &lt;/li&gt;    &lt;li&gt;ROLLBACK &lt;/li&gt;    &lt;li&gt;TDE ENCRYPTION&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt; We have to replace the where condition filter based on the requirement.&lt;/p&gt;  &lt;table border="3" cellspacing="0" cellpadding="2" width="717"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="711"&gt;         &lt;p&gt;SELECT command,           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; sqltext.text,            &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; start_time,             &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; percent_complete,            &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; CAST(((DATEDIFF(s,start_time,GetDate()))/3600) as varchar) + ' hour(s), '            &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; + CAST((DATEDIFF(s,start_time,GetDate())%3600)/60 as varchar) + 'min, '            &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; + CAST((DATEDIFF(s,start_time,GetDate())%60) as varchar) + ' sec' as running_time,            &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; CAST((estimated_completion_time/3600000) as varchar) + ' hour(s), '            &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; + CAST((estimated_completion_time %3600000)/60000 as varchar) + 'min, '            &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; + CAST((estimated_completion_time %60000)/1000 as varchar) + ' sec' as est_time_to_go,            &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; dateadd(second,estimated_completion_time/1000, getdate()) as est_completion_time            &lt;br /&gt;FROM sys.dm_exec_requests Req            &lt;br /&gt;CROSS APPLY sys.dm_exec_sql_text(Req.sql_handle) sqltext            &lt;br /&gt;WHERE req.command in ('DBCC CHECKDB')&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5342890976378746915?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5342890976378746915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5342890976378746915' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5342890976378746915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5342890976378746915'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/11/tsql-query-to-find-db-maintenance.html' title='TSQL Query to find the DB Maintenance status'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5080797649809828146</id><published>2010-10-20T17:04:00.001-07:00</published><updated>2010-10-20T17:04:02.066-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>On SQL Server Management Studio, How to list only the database, which user has access ?</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The default behavior of SSMS when we login, it will show all the databases available on the SQL Server Instance. Irrespective of access on the databases user has.&lt;/p&gt;  &lt;p&gt;The reason behind is, to load the SSMS faster. Otherwise, while loading the SSMS SQL Server has to verify for each databases if the user has access or not. Also if any of the databases or offline or closed, it has to figure out if that database has to be listed or not. All this takes time.   &lt;br /&gt;Hence by default the SSMS will show all the databases on SSMS.&lt;/p&gt;  &lt;p&gt;If we really required to show only the database user has access, please use the command below to restrict the show all databases on SSMS,&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;DENY VIEW ANY DATABASE TO login_name&lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;When VIEW ANY DATABASE is revoked, a user can only see &lt;em&gt;master, tempdb, any database&lt;/em&gt; he owns, and the user’s current database context.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5080797649809828146?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5080797649809828146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5080797649809828146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5080797649809828146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5080797649809828146'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/10/on-sql-server-management-studio-how-to.html' title='On SQL Server Management Studio, How to list only the database, which user has access ?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7666119641619251313</id><published>2010-10-14T04:31:00.001-07:00</published><updated>2010-10-14T04:31:26.580-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Patching'/><category scheme='http://www.blogger.com/atom/ns#' term='Service Pack'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>Impact of renaming “sa” account on SQL Server 2008</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080"&gt;&lt;strong&gt;Error: 912, Severity: 21, State: 2       &lt;br /&gt;        &lt;br /&gt;&lt;/strong&gt;Microsoft has confirmed that this is a problem in the Microsoft products that are listed&amp;#160; &lt;/font&gt;&lt;/p&gt;  &lt;li&gt;Microsoft SQL Server 2008 Workgroup &lt;/li&gt;  &lt;li&gt;Microsoft SQL Server 2008 Enterprise &lt;/li&gt;  &lt;li&gt;Microsoft SQL Server 2008 Developer &lt;/li&gt;  &lt;li&gt;Microsoft SQL Server 2008 Standard&lt;/li&gt;  &lt;p&gt;&lt;font color="#004080"&gt;This problem was first corrected in SQL Server 2008 Service Pack 1&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Cause:&lt;/p&gt;  &lt;p&gt;The upgrade process includes a script to create the SP_Syspolicy_Create_Purge_job stored procedure. The procedure creates the syspolicy_purge_history job and hardcodes the owner of the job to be the &lt;strong&gt;sa &lt;/strong&gt;account. &lt;u&gt;Because the &lt;strong&gt;sa&lt;/strong&gt; account is renamed, the job creation fails.&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;Workaround:&amp;#160; &lt;font color="#ff8040"&gt;recreate the sa account&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Reference:&amp;#160; &lt;a href="http://support.microsoft.com/kb/968829"&gt;FIX: Error message when you try to upgrade an instance of SQL Server 2005 to SQL Server 2008: &amp;quot;Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes&amp;quot;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7666119641619251313?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7666119641619251313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7666119641619251313' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7666119641619251313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7666119641619251313'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/10/impact-of-renaming-sa-account-on-sql.html' title='Impact of renaming “sa” account on SQL Server 2008'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8076287128574270556</id><published>2010-10-14T04:17:00.001-07:00</published><updated>2010-10-14T04:17:28.292-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Service Pack'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Setup'/><title type='text'>SQL Server 2008 Service Pack 2 - Installation</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Here Let me show the step by step on SQL Server 2008 SP 2 Installation&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TLbmjUxJeXI/AAAAAAAAAwQ/10l9nQ0AUhg/s1600-h/image%5B44%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TLbmkbazHBI/AAAAAAAAAwU/QBB9RPssTVA/image_thumb%5B18%5D.png?imgmax=800" width="244" height="168" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TLbmlSrihbI/AAAAAAAAAwY/ud31cVJvM_0/s1600-h/image%5B49%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TLbmmRGW6FI/AAAAAAAAAwc/lSTyzdWejBQ/image_thumb%5B23%5D.png?imgmax=800" width="244" height="181" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TLbmnZ_aAkI/AAAAAAAAAwg/OlUL79A_Hzc/s1600-h/image%5B57%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TLbmoAK-teI/AAAAAAAAAwk/BLdYm7v_KLo/image_thumb%5B31%5D.png?imgmax=800" width="244" height="188" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TLbmo2SZm1I/AAAAAAAAAwo/IIu6X03Aye0/s1600-h/image%5B61%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TLbmp2WWIcI/AAAAAAAAAws/7IhKDua-TAw/image_thumb%5B35%5D.png?imgmax=800" width="244" height="188" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TLbmqmBXkYI/AAAAAAAAAww/qEnGxO4sQ9s/s1600-h/image%5B69%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TLbmrtzYHYI/AAAAAAAAAw0/B4Cm74s-Bgg/image_thumb%5B43%5D.png?imgmax=800" width="244" height="188" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TLbmsQiz3JI/AAAAAAAAAw4/S2jX6qHWJ18/s1600-h/image%5B67%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TLbmtFIaQqI/AAAAAAAAAw8/-ZcPXU5y51g/image_thumb%5B41%5D.png?imgmax=800" width="244" height="188" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TLbmt5vo4-I/AAAAAAAAAxA/huoTTUxSYQ4/s1600-h/image%5B63%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TLbmurm22ZI/AAAAAAAAAxE/PN38vZXFPLM/image_thumb%5B37%5D.png?imgmax=800" width="244" height="187" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TLbmvJLjt7I/AAAAAAAAAxI/e_PxeBS7IwE/s1600-h/image%5B65%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TLbmv2oh99I/AAAAAAAAAxM/2lwLKrcPaek/image_thumb%5B39%5D.png?imgmax=800" width="244" height="105" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TLbmw0EBu9I/AAAAAAAAAxQ/IxxNcG4Hc98/s1600-h/image%5B59%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TLbmxvkMW9I/AAAAAAAAAxU/Hff7qZYB1cs/image_thumb%5B33%5D.png?imgmax=800" width="244" height="188" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8076287128574270556?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8076287128574270556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8076287128574270556' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8076287128574270556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8076287128574270556'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/10/sql-server-2008-service-pack-2.html' title='SQL Server 2008 Service Pack 2 - Installation'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TLbmkbazHBI/AAAAAAAAAwU/QBB9RPssTVA/s72-c/image_thumb%5B18%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3907940279894195646</id><published>2010-10-14T02:58:00.001-07:00</published><updated>2010-10-14T02:58:03.207-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Service Account'/><title type='text'>SQL Server Job fails with error “Unable to open step output file. The step failed”</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Are you getting the error message below on a SQL Server Job?&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TLbUJCcEkRI/AAAAAAAAAwI/Oj08TCQR41w/s1600-h/image%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TLbUKFnuowI/AAAAAAAAAwM/9ZYvAzB_XLc/image_thumb.png?imgmax=800" width="244" height="59" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Resolution:&lt;/p&gt;  &lt;p&gt;See if the SQL Agent Service account have sufficient privileges.    &lt;br /&gt;    &lt;br /&gt;I have encountered this error when I change the SQL Server Agent account.    &lt;br /&gt;Resolved giving proper rights on the folder.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3907940279894195646?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3907940279894195646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3907940279894195646' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3907940279894195646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3907940279894195646'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/10/sql-server-job-fails-with-error-unable.html' title='SQL Server Job fails with error “Unable to open step output file. The step failed”'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_w7ME_yT4MGY/TLbUKFnuowI/AAAAAAAAAwM/9ZYvAzB_XLc/s72-c/image_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-9074953431972822658</id><published>2010-10-09T18:47:00.001-07:00</published><updated>2010-10-09T18:47:19.590-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query'/><title type='text'>Processing order of SELECT Statement</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The following steps show the processing order for a SELECT statement.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;p&gt;FROM&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;ON&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;JOIN&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;WHERE&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;GROUP BY&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;WITH CUBE or WITH ROLLUP&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;HAVING&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;SELECT&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;DISTINCT&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;ORDER BY&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;TOP&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;   &lt;br /&gt;This is the reason where we can not use column alias on Where clause, however we can use it on Select / Order by.&lt;/p&gt;  &lt;p&gt;If interested on the logical order of the query processing poster, &lt;a href="http://www.sql.co.il/books/insidetsql2008/Logical%20Query%20Processing%20Poster.pdf"&gt;download it from here.&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Reference: &lt;a title="http://msdn.microsoft.com/en-us/library/ms189499.aspx" href="http://msdn.microsoft.com/en-us/library/ms189499.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms189499.aspx&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-9074953431972822658?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/9074953431972822658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=9074953431972822658' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/9074953431972822658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/9074953431972822658'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/10/processing-order-of-select-statement.html' title='Processing order of SELECT Statement'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3994035380097961786</id><published>2010-10-07T23:28:00.001-07:00</published><updated>2010-10-07T23:28:25.571-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Service Account'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Setup'/><title type='text'>SQL Server 2008 Service account Privileges</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Please refer the &lt;a title="http://msdn.microsoft.com/en-us/library/ms143504.aspx" href="http://msdn.microsoft.com/en-us/library/ms143504.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms143504.aspx&lt;/a&gt;&amp;#160; &lt;br /&gt;on setting up Windows Service Accounts. &lt;/p&gt;  &lt;p&gt;It discuss about the &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Domain User Account&lt;/li&gt;    &lt;li&gt;Local User Account&lt;/li&gt;    &lt;li&gt;Local Service Account&lt;/li&gt;    &lt;li&gt;Network Service Account&lt;/li&gt;    &lt;li&gt;Local System Account      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Windows NT Rights and Privileges Granted for SQL Server Service Accounts &lt;/li&gt;    &lt;li&gt;Access Control Lists Created for SQL Server Service Accounts &lt;/li&gt;    &lt;li&gt;Windows Permissions for SQL Server Services&lt;/li&gt; &lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3994035380097961786?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3994035380097961786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3994035380097961786' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3994035380097961786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3994035380097961786'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/10/sql-server-2008-service-account.html' title='SQL Server 2008 Service account Privileges'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4964656969169313954</id><published>2010-10-06T18:31:00.001-07:00</published><updated>2010-10-06T18:31:44.416-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Setup'/><title type='text'>Can we have SQL Server 2000 default Instance and SQL Server 2005 default Instance on the same server?</title><content type='html'>&lt;p&gt;   &lt;br /&gt;The default instance could be an installation of     &lt;br /&gt;    &lt;br /&gt;SQL Server 2000,     &lt;br /&gt;SQL Server 2005,     &lt;br /&gt;SQL Server 2008, or     &lt;br /&gt;SQL Server 2008 R2.     &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;Only one installation of SQL Server, regardless of version, can be the default instance at one time     &lt;/strong&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4964656969169313954?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4964656969169313954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4964656969169313954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4964656969169313954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4964656969169313954'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/10/can-we-have-sql-server-2000-default.html' title='Can we have SQL Server 2000 default Instance and SQL Server 2005 default Instance on the same server?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3595396809099835330</id><published>2010-09-29T17:39:00.001-07:00</published><updated>2010-09-29T17:39:06.641-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Patching'/><category scheme='http://www.blogger.com/atom/ns#' term='Service Pack'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>SQL Server 2008 Service Pack 2 released</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;SQL Server 2008 SP 2 released on 29 Sep 2010.&lt;/p&gt;  &lt;p&gt;To download the SQL Server 2008 SP2 release please select from the links below:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;SQL Server 2008 SP2: &lt;a href="http://go.microsoft.com/fwlink/?LinkId=196550"&gt;http://go.microsoft.com/fwlink/?LinkId=196550&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=196550"&gt;&lt;/a&gt;SQL Server 2008 SP2 Express: &lt;a href="http://go.microsoft.com/fwlink/?LinkId=196551"&gt;http://go.microsoft.com/fwlink/?LinkId=196551&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=196551"&gt;&lt;/a&gt;SQL Server 2008 SP2 Feature Packs: &lt;a href="http://go.microsoft.com/fwlink/?LinkId=202815"&gt;http://go.microsoft.com/fwlink/?LinkId=202815&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3595396809099835330?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3595396809099835330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3595396809099835330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3595396809099835330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3595396809099835330'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/09/sql-server-2008-service-pack-2-released.html' title='SQL Server 2008 Service Pack 2 released'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8239342449004953544</id><published>2010-09-14T18:27:00.001-07:00</published><updated>2010-09-14T18:27:53.596-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><category scheme='http://www.blogger.com/atom/ns#' term='Linked Server'/><title type='text'>Oracle Linked Server issue</title><content type='html'>&lt;p&gt;   &lt;br /&gt;Today I got the error below on the SQL Server job it runs a SSIS Package.&lt;/p&gt;  &lt;p&gt;Error:   &lt;br /&gt;Msg 7302, Level 16, State 1, Server USIVA007, Line 1    &lt;br /&gt;Cannot create an instance of OLE DB provider &amp;quot;OraOLEDB.Oracle&amp;quot; for linked server     &lt;br /&gt; &amp;quot;SYS01_ORACLE01&amp;quot;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Resolution:   &lt;br /&gt;&amp;#160; Strange but recreating of the Linked Server connection, resolved the issue.&lt;/p&gt;  &lt;p&gt;Reference:   &lt;br /&gt; &lt;a href="http://support.microsoft.com/kb/259959/"&gt;Techniques to Debug Connectivity Issues to an Oracle Server Using the ODBC Driver and OLE DB Provider&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8239342449004953544?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8239342449004953544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8239342449004953544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8239342449004953544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8239342449004953544'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/09/oracle-linked-server-issue.html' title='Oracle Linked Server issue'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8264143502920652559</id><published>2010-08-31T18:57:00.001-07:00</published><updated>2010-08-31T19:33:50.152-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Chennai'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><title type='text'>SQL Server Performance Optimization Seminar in Chennai by Sep 24 – 15, 2010</title><content type='html'>&lt;p&gt;&amp;#160;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TH2y-N2UYLI/AAAAAAAAAv8/V65wvSJVIHo/s1600-h/image%5B10%5D.png"&gt;&lt;img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="182" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TH2y_nib6ZI/AAAAAAAAAwA/bJMDQgL4RVc/image_thumb%5B6%5D.png?imgmax=800" width="520" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This seminar series targeting the audience across the world. It is begin from &lt;a href="http://www.solidq.in/Training/DirectionsSeminar/SQLChennai.aspx"&gt;Chennai, India&lt;/a&gt;.    &lt;br /&gt;    &lt;br /&gt;What is unique about the seminar &amp;amp; why i am interested in it&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Presenter Pinal Dave, well known on SQL Server community for his presentation skill &lt;/li&gt;    &lt;li&gt;Solid Quality Mentors differ from usual training / mentoring by giving real time &amp;amp; practical sessions&lt;/li&gt;    &lt;li&gt;It’s worth the time spent since learning the tips may take years&lt;/li&gt;    &lt;li&gt;More of interactive session with presenter rather dull theoretical sessions &lt;/li&gt;    &lt;li&gt;Real time experience on the issues faced by customers&lt;/li&gt;    &lt;li&gt;Unique in design &lt;/li&gt;    &lt;li&gt;Immerse in deep on the concept of SQL Server Performance optimization &lt;/li&gt;    &lt;li&gt;Follow up sessions to keep engaged on what we learned &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;What can we get out of the two day session;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2" width="562" border="0"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="275"&gt;&lt;strong&gt;Day 1:&amp;#160; Sep 24th 2010&lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="285"&gt;&lt;strong&gt;Day 2: Sep 25th 2010&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="275"&gt;Resolution to popular misconception on SQL Server features&lt;/td&gt;        &lt;td valign="top" width="285"&gt;Evils of Index and workarounds&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="275"&gt;The unknown Tricks and Tips of sub queries&lt;/td&gt;        &lt;td valign="top" width="285"&gt;The Intelligence of Statistics&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="275"&gt;The Relation between External and Internal Joins&lt;/td&gt;        &lt;td valign="top" width="285"&gt;Query Optimization for unknown values&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="275"&gt;Triggers and Views&lt;/td&gt;        &lt;td valign="top" width="285"&gt;Query Optimization techniques&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="275"&gt;Question hour&lt;/td&gt;        &lt;td valign="top" width="285"&gt;Question hour&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://www.solidq.in/LinkClick.aspx?fileticket=%2b62n5cUvrm0%3d&amp;amp;tabid=94"&gt;&lt;u&gt;&lt;strong&gt;Registration Form&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Contacts : &lt;/strong&gt; For clarifications, please call &lt;font color="#0000ff" size="3"&gt;&lt;strong&gt;+91 98202 24429       &lt;br /&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Further details: &lt;a title="http://www.solidq.in/Training/DirectionsSeminar/SQLChennai.aspx" href="http://www.solidq.in/Training/DirectionsSeminar/SQLChennai.aspx"&gt;http://www.solidq.in/Training/DirectionsSeminar/SQLChennai.aspx&lt;/a&gt;&lt;font color="#0000ff" size="3"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;em&gt;About the Solid Quality Mentor:        &lt;br /&gt;&lt;img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="56" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TH2zAkdMa2I/AAAAAAAAAwE/Vfz6dSLrdx0/image_thumb%5B9%5D.png?imgmax=800" width="174" border="0" /&gt;&lt;/em&gt;&lt;/u&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Solid Quality Mentors is the only company in the world with the largest number of the top experts on Microsoft’s Data Platform. &lt;/li&gt;    &lt;li&gt;A Microsoft Gold Certified Partner &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Website:&amp;#160; &lt;a title="http://www.solidq.com/" href="http://www.solidq.com/"&gt;http://www.solidq.com/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;em&gt;About the seminar presenter – Pinal Dave:&lt;/em&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;img height="100" alt="" src="http://www.solidq.in/Portals/0/PinalIcon.jpg" width="100" /&gt;      &lt;br /&gt;&lt;/strong&gt;Pinal Dave is a Database Architect and Corporate Trainer specializing in SQL Server Query Optimization and Performance Tuning having 7 years of rich, hands-on experience. He has been awarded as the Microsoft Most Valuable Professional (MVP) in SQL Server technology and is also a Microsoft Certified Trainer (MCT)&lt;/p&gt;  &lt;p&gt;Website: &lt;a title="http://blog.sqlauthority.com/" href="http://blog.sqlauthority.com/"&gt;http://blog.sqlauthority.com/&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8264143502920652559?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8264143502920652559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8264143502920652559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8264143502920652559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8264143502920652559'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/08/sql-server-performance-optimization.html' title='SQL Server Performance Optimization Seminar in Chennai by Sep 24 – 15, 2010'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TH2y_nib6ZI/AAAAAAAAAwA/bJMDQgL4RVc/s72-c/image_thumb%5B6%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8695530419258117859</id><published>2010-08-10T04:14:00.001-07:00</published><updated>2010-08-10T04:14:29.988-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint - MOSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Download'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Whitepaper'/><title type='text'>MOSS – Microsoft Office Sharepoint Server 2007  SQL Server 2005 / 2008 Database Maintenance</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;There is a whitepaper in detail SQL Server 2005 /2008 Maintenance for MOSS ( Sharepoint ).&lt;/p&gt; &lt;p&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=111531&amp;amp;clcid=0x409"&gt;Database Maintenance for SharePoint&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8695530419258117859?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8695530419258117859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8695530419258117859' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8695530419258117859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8695530419258117859'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/08/moss-microsoft-office-sharepoint-server.html' title='MOSS – Microsoft Office Sharepoint Server 2007  SQL Server 2005 / 2008 Database Maintenance'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-348604953307793403</id><published>2010-08-08T01:40:00.001-07:00</published><updated>2010-08-08T01:40:37.768-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='Download'/><category scheme='http://www.blogger.com/atom/ns#' term='Free'/><title type='text'>SQL Server 2008 R2 Update for Developers Training Kit</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;The &lt;i&gt;SQL Server 2008 R2 Update for Developers Training Kit&lt;/i&gt;&amp;nbsp; is ideal for developers who want to understand how to take advantage of the key improvements introduced in SQL Server 2008 and SQL Server 2008 R2 in their applications, as well as for developers who are new to SQL Server. The training kit is brought to you by Microsoft Developer and Platform Evangelism.  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=fffaad6a-0153-4d41-b289-a3ed1d637c0d"&gt;Download it from here, it sizes 216.5 MB.&lt;/a&gt; &lt;p&gt;It contains PPT Slides, Video, Demo and Hand on Lab&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-348604953307793403?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/348604953307793403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=348604953307793403' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/348604953307793403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/348604953307793403'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/08/sql-server-2008-r2-update-for.html' title='SQL Server 2008 R2 Update for Developers Training Kit'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-172263253916486488</id><published>2010-08-01T03:32:00.001-07:00</published><updated>2010-08-01T03:32:59.838-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008 R2'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtual Lab'/><category scheme='http://www.blogger.com/atom/ns#' term='PASS'/><category scheme='http://www.blogger.com/atom/ns#' term='Free'/><title type='text'>Come and Play on SQL Server 2008 R2</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.previewsqlserver.com/register.aspx"&gt;&lt;b&gt;Register&lt;/b&gt;&lt;/a&gt; or &lt;a href="https://labs.maximumasp.com/ts/"&gt;&lt;b&gt;login&lt;/b&gt;&lt;/a&gt; to experience the SQL Server 2008 R2 virtual lab.&lt;/p&gt; &lt;p&gt;The environment also host the SharePoint 2010 and MS Office 2010.&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.previewsqlserver.com/index.htm" href="http://www.previewsqlserver.com/index.htm"&gt;http://www.previewsqlserver.com/index.htm&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_w7ME_yT4MGY/TFVNVqolsUI/AAAAAAAAAvs/K8KewvPIoCg/s1600-h/image%5B5%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="258" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TFVNWoJRiiI/AAAAAAAAAvw/aX29cGl8k5Q/image_thumb%5B3%5D.png?imgmax=800" width="415" border="0"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-172263253916486488?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/172263253916486488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=172263253916486488' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/172263253916486488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/172263253916486488'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/08/come-and-play-on-sql-server-2008-r2.html' title='Come and Play on SQL Server 2008 R2'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_w7ME_yT4MGY/TFVNWoJRiiI/AAAAAAAAAvw/aX29cGl8k5Q/s72-c/image_thumb%5B3%5D.png?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8212944401808937862</id><published>2010-07-28T02:19:00.001-07:00</published><updated>2010-07-28T02:21:46.657-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PASS'/><title type='text'>Me in SQL Data Camp in Chennai</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;I attended the SQL Data Camp in Chennai and received a RedGate book as a token of one the most active participant of the event.&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TE_2Jx_kSNI/AAAAAAAAAvk/Z0_ICoABL9w/s1600-h/DSCF2713%5B2%5D.jpg"&gt;&lt;img title="DSCF2713" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="184" alt="DSCF2713" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TE_2K0gzJFI/AAAAAAAAAvo/W-QLLYoBVt0/DSCF2713_thumb.jpg?imgmax=800" width="244" border="0"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8212944401808937862?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8212944401808937862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8212944401808937862' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8212944401808937862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8212944401808937862'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/07/me-in-sql-data-camp-in-chennai.html' title='Me in SQL Data Camp in Chennai'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_w7ME_yT4MGY/TE_2K0gzJFI/AAAAAAAAAvo/W-QLLYoBVt0/s72-c/DSCF2713_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-889835014721427745</id><published>2010-07-15T04:19:00.001-07:00</published><updated>2010-07-15T04:19:31.668-07:00</updated><title type='text'>Attending SQL Data Camp @ Chennai on 17th July 2010</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;I will be attending the &lt;a href="http://www.sqlpass.org/Events/ctl/ViewEvent/mid/521.aspx?ID=441"&gt;SQL Data Camp, in Chennai on 17th July 2010&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-889835014721427745?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/889835014721427745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=889835014721427745' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/889835014721427745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/889835014721427745'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/07/attending-sql-data-camp-chennai-on-17th.html' title='Attending SQL Data Camp @ Chennai on 17th July 2010'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5244923499172199802</id><published>2010-07-14T18:55:00.001-07:00</published><updated>2010-07-14T18:55:57.051-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trace'/><category scheme='http://www.blogger.com/atom/ns#' term='DBA'/><category scheme='http://www.blogger.com/atom/ns#' term='Audit'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Profiler'/><title type='text'>How to find who dropped the database? Is that logged on SQL Server?</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Are you one looking to find answer for questions like below.,&lt;/p&gt; &lt;p&gt;· How to find who dropped a database? &lt;p&gt;· How to find who created the database? &lt;p&gt;· How to find who altered the database? &lt;p&gt;· How to find who altered the database configurations? &lt;p&gt;· How to find who dropped the schema? &lt;p&gt;· How to find who altered the schema? &lt;p&gt;· How to find who altered the server configuration? &lt;p&gt;· How to find who modified the login? &lt;p&gt;· How to find who modified the table? &lt;p&gt;If it is then,&amp;nbsp; are you wondering is that possible on SQL Server? &lt;p&gt;Yes, SQL Server can beginning from version SQL Server 2005 onwards. &lt;p&gt;That is where &lt;a href="http://msdn.microsoft.com/en-us/library/ms175513.aspx"&gt;SQL Server Default trace&lt;/a&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/strong&gt; come into picture. &lt;p&gt;&lt;strong&gt;What is SQL Server Default Trace?&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Default trace provides troubleshooting assistance to database administrators by ensuring that they have the log data necessary to diagnose problems the first time they occur. &lt;p&gt;&lt;strong&gt;To get the default trace options&lt;/strong&gt; &lt;p&gt;&lt;font color="#ff8000"&gt;SELECT * FROM ::fn_trace_getinfo(default)&lt;/font&gt; &lt;p&gt;&lt;strong&gt;To know what is audited on default trace&lt;br&gt;&lt;br&gt;&lt;/strong&gt;&lt;font color="#ff8000"&gt;SELECT Trc.EventID, Trc.ColumnID, Evt.name as Event_Description, Col.name as Column_Description &lt;/font&gt; &lt;p&gt;&lt;font color="#ff8000"&gt;&amp;nbsp; FROM ::fn_trace_geteventinfo(1) Trc &lt;/font&gt; &lt;p&gt;&lt;font color="#ff8000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN sys.trace_events Evt ON Trc.eventID = Evt.trace_event_id &lt;/font&gt; &lt;p&gt;&lt;font color="#ff8000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN sys.trace_columns Col ON Trc.columnid = Col.trace_column_id&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TD5qPBIBMiI/AAAAAAAAAvM/UkbSdjb0zJw/s1600-h/image%5B20%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="192" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TD5qROSxRkI/AAAAAAAAAvQ/WJNV0IyE_Q0/image_thumb%5B14%5D.png?imgmax=800" width="369" border="0"&gt;&lt;/a&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#000000"&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/font&gt; &lt;p&gt;Below is the screenshot&amp;nbsp; “Schema Changes History” of Standard Reports at Server Level. &lt;/p&gt; &lt;p&gt;See that “it shows the event of Drop and Alter of the database&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TD5qfChjilI/AAAAAAAAAvU/E2vtBUWqR1M/s1600-h/image%5B12%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="295" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TD5qiVmcm_I/AAAAAAAAAvY/De32gHhtQvM/image_thumb%5B10%5D.png?imgmax=800" width="527" border="0"&gt;&lt;/a&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;The same can be queried from SQL Server Default Trace like;&lt;/p&gt; &lt;p&gt;&lt;font color="#ff8000"&gt;select * from fn_trace_gettable('C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\Log\log.trc',DEFAULT)&lt;br&gt; where EventClass in (46,47,164) and EventSubclass = 0 and DatabaseID &amp;lt;&amp;gt; 2&lt;/font&gt;  &lt;p&gt;&lt;strong&gt;Usage&lt;br&gt;&lt;/strong&gt;Default trace can be queried to find answers on&lt;/p&gt; &lt;ol&gt; &lt;li&gt;To finmd the Create / Alter / Drop i.e., DDL changes at Database,Schema and Object level&lt;/li&gt; &lt;li&gt;To find the configuration changes at SQL Server Instance, Database, Schema and Object Level&lt;/li&gt; &lt;li&gt;To find Login creation , modifications and failures&lt;/li&gt; &lt;li&gt;To find performance issues like missing of statistics, join predicate, hash or sort warnings&lt;/li&gt; &lt;li&gt;Database file growth or shrinkage&lt;/li&gt; &lt;li&gt;DBCC operations&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;strong&gt;Points to ponder&lt;/strong&gt; &lt;ol&gt; &lt;li&gt;Default trace is a Server Side trace and it is enable by default.&lt;/li&gt; &lt;li&gt;Default trace properties can not be modified, other than enabling and disabling of this trace.&lt;/li&gt; &lt;li&gt;Default trace by default enabled and stored on the “Log” folder&lt;br&gt;&lt;br&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TD5qoFIHHYI/AAAAAAAAAvc/4nOtxRAAcfE/s1600-h/image%5B15%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="152" alt="image" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TD5qqhuanwI/AAAAAAAAAvg/TuIMojLId2o/image_thumb%5B11%5D.png?imgmax=800" width="244" border="0"&gt;&lt;/a&gt; &lt;/li&gt; &lt;li&gt;Default trace file will be created newly on start of the SQL Server service.&lt;/li&gt; &lt;li&gt;A single trace file can store&amp;nbsp; up to 20 MB, when it is full new file will be created.&lt;/li&gt; &lt;li&gt;SQL Server would maintain 5 default trace file, where the file with highest number is the latest.&lt;/li&gt; &lt;li&gt;Default trace is light weight and it is not replacement for &lt;a href="http://msdn.microsoft.com/en-us/library/ms190989.aspx"&gt;DDL Trigger&lt;/a&gt;. Default trace log only basic information, when detailed information needed DDL trigger is the option.&lt;/li&gt;&lt;/ol&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5244923499172199802?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5244923499172199802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5244923499172199802' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5244923499172199802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5244923499172199802'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/07/how-to-find-who-dropped-database-is.html' title='How to find who dropped the database? Is that logged on SQL Server?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_w7ME_yT4MGY/TD5qROSxRkI/AAAAAAAAAvQ/WJNV0IyE_Q0/s72-c/image_thumb%5B14%5D.png?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5073815805968270664</id><published>2010-07-12T22:30:00.001-07:00</published><updated>2010-07-12T22:31:24.823-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spatial'/><title type='text'>Using Spatial Data type to draw circle in SQL Server 2008</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;--- Draw Circle in SQL Server 2008&lt;br&gt;declare @g Geometry&lt;br&gt;set @g = 'Point(10 5)'&lt;br&gt;select @g.STBuffer(5)&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TDv6BWQJvRI/AAAAAAAAAvE/xqB__wyWzVI/s1600-h/image%5B14%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="361" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TDv6Ee6wv9I/AAAAAAAAAvI/kUM2UyAkQao/image_thumb%5B10%5D.png?imgmax=800" width="532" border="0"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5073815805968270664?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5073815805968270664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5073815805968270664' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5073815805968270664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5073815805968270664'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/07/using-spatial-data-type-draw-circle-in.html' title='Using Spatial Data type to draw circle in SQL Server 2008'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_w7ME_yT4MGY/TDv6Ee6wv9I/AAAAAAAAAvI/kUM2UyAkQao/s72-c/image_thumb%5B10%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-9067031531639763948</id><published>2010-06-19T16:20:00.001-07:00</published><updated>2010-06-19T16:20:26.166-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Patching'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2000'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>SQL 2000 SP4 Installation Error sp_vupgrade_replication(1)</title><content type='html'>&lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt; &lt;p&gt;• Msg 170, Level 15, State 1, Server MS, Line 1 &lt;p&gt;Line 1: Incorrect syntax near '-'.  &lt;p&gt;The sqlsp.log file indicates: &lt;p&gt;Process Exit Code: (0) &lt;p&gt;&lt;b&gt;Error running script: sp_vupgrade_replication (1)&lt;/b&gt; &lt;p&gt;Action CleanUpInstall: &lt;p&gt;Installation Failed. &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TB1Qte6J4bI/AAAAAAAAAus/SSzxq0ut0mU/s1600-h/clip_image002%5B3%5D.jpg"&gt;&lt;img title="clip_image002" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="96" alt="clip_image002" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TB1QuRHMOBI/AAAAAAAAAuw/vV-dHud7sIQ/clip_image002_thumb.jpg?imgmax=800" width="244" border="0"&gt;&lt;/a&gt; &lt;p&gt;&lt;strong&gt;Resolution&lt;/strong&gt;:&lt;br&gt;1. Check if distribution database exist though the Replication is dropped&lt;br&gt;2. If so drop the distribution database&lt;br&gt;3. To drop the distribution database by over - restoring of some user database&lt;br&gt;4. Perform the patching / SQL SP again.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-9067031531639763948?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/9067031531639763948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=9067031531639763948' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/9067031531639763948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/9067031531639763948'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/06/sql-2000-sp4-installation-error.html' title='SQL 2000 SP4 Installation Error sp_vupgrade_replication(1)'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TB1QuRHMOBI/AAAAAAAAAuw/vV-dHud7sIQ/s72-c/clip_image002_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4282078446660097445</id><published>2010-06-16T16:11:00.000-07:00</published><updated>2010-06-19T16:17:22.914-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Patching'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>SQL2000 SP4 Installation Error sp_vupgrade_replication(1)</title><content type='html'>&lt;p&gt;&amp;nbsp; &lt;h2&gt;SQL Server 2005 Patching fails CREATE DATABASE failed. &lt;/h2&gt; &lt;p&gt;&lt;strong&gt;Error:&lt;/strong&gt; &lt;p&gt;Error Number : 29537 &lt;p&gt;Error Description : &lt;b&gt;&lt;font color="#0000ff"&gt;MSP Error: 29537 SQL Server Setup has encountered the following problem: [Microsoft][SQL Native Client][SQL Server]CREATE DATABASE failed.&lt;br&gt;Some file names listed could not be created. Check related errors.. To continue, correct the problem, and then run SQL Server Setup again.&lt;/font&gt;&lt;/b&gt; &lt;p&gt;&lt;strong&gt;CAUSE:&lt;/strong&gt;&lt;br&gt;By default the setup creates the &lt;font color="#ff0000"&gt;Temp_MS_AgentSigningCertificate_database&lt;/font&gt; Database on specified default database location, &lt;br&gt;If the location doesn't exist, it fails to create the database and the setup fails.&lt;br&gt;&lt;br&gt;&lt;strong&gt;RESOLUTION&lt;/strong&gt;:&lt;br&gt;1. In SSMS, go to Server Properties &amp;gt; Database Settings &amp;gt; Database Default Locations ,check default location for Data and Log .&lt;br&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TB1P_Sn9ZkI/AAAAAAAAAuk/mx8T4z62FPM/s1600-h/clip_image002%5B4%5D%5B2%5D.jpg"&gt;&lt;img title="clip_image002[4]" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="219" alt="clip_image002[4]" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TB1QAY7IAKI/AAAAAAAAAuo/6HC0wKmqUSc/clip_image002%5B4%5D_thumb.jpg?imgmax=800" width="244" border="0"&gt;&lt;/a&gt;&lt;br&gt;2. Try to access locations specified at Data and Log, Make sure files are available there.&lt;br&gt;3. If any of the files missing from above location , we hit the above error.&lt;br&gt;4. In that case, change the path to point to reall location of mdf/ldf files .&lt;br&gt;5. Setup should now succeed. &lt;p&gt;1. Reference: &lt;a href="http://www.sqlservercentral.com/Forums/Topic647062-146-1.aspx"&gt;a recently applied update, kb955706, &lt;b&gt;failed&lt;/b&gt; to install&lt;/a&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4282078446660097445?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4282078446660097445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4282078446660097445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4282078446660097445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4282078446660097445'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/06/sql2000-sp4-installation-error.html' title='SQL2000 SP4 Installation Error sp_vupgrade_replication(1)'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TB1QAY7IAKI/AAAAAAAAAuo/6HC0wKmqUSc/s72-c/clip_image002%5B4%5D_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1589565749453478871</id><published>2010-06-10T05:19:00.001-07:00</published><updated>2010-06-10T05:21:05.059-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOS Batch'/><title type='text'>Delete files using DOS command FORFILES</title><content type='html'>&lt;p&gt;&lt;font face="Courier New" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;To delete te&lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;--Delete all .bak files in the named directory and its subfolders where the file modified date is more than 2 days old.&lt;/font&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;table cellspacing="0" cellpadding="2" width="778" border="1"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign="top" width="776"&gt;&lt;font face="Courier New" color="#000080" size="2"&gt;&lt;strong&gt;EXEC xp_cmdshell 'FORFILES /p "L:\MSSQL$PRODSQL2KWEB\Backup" /s /m *.bak /d -2 /c "CMD /C echo Deleting the file : @file del /Q /F @FILE &amp;amp;&amp;amp; del /Q /F @FILE " '&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;/*&lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;FORFILES Parameters&lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;Parameter Name Description &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;/p Path &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;/m Search Mask (default is *.*) &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;/s Subdirectories will be searched recursively if this parameter is included &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;/c &amp;lt;command&amp;gt; Command to be executed against each file in the result set, commands must be enclosed in double-quotes, default is "cmd c/ echo @file" &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;/d Date range for file selection, using Last Modified Date as the criterion for the file. When the /d parameter is in the form of MM/DD/YYYY, file meeting the criteria of +/- the specified date are included. When in the format of a smallint (-32,768 - 32,768) the files +/- the files with a modified date +/- that number of days from the current date are included in the file result set. &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;Variables&lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;Variable Name Description &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@FILE File name &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@FNAME File name without extension &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@EXT File extension &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@PATH Full path of the file &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@RELPATH Relative path of the file &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@ISDIR Evaluates as TRUE if the file type is a directory &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@FSIZE File size in bytes &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@FDATE Last modified date stamp on the file &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;@FTIME Last modified timestamp on the file &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;*/&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1589565749453478871?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1589565749453478871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1589565749453478871' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1589565749453478871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1589565749453478871'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/06/delete-files-using-dos-command-forfiles.html' title='Delete files using DOS command FORFILES'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3798938132508775525</id><published>2010-06-08T16:24:00.000-07:00</published><updated>2010-06-19T16:24:44.061-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Profiler'/><title type='text'>Privileges needed to run SQL Server Profiler without sysadmin privileges</title><content type='html'>&lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;font face="Calibri"&gt;In starting with SQL Server 2005 and above a SQL Server user or login does not need to have SYSADMIN privileges to use the SQL Server Profiler.&lt;br&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Calibri"&gt;It can be accomplished by,&lt;br&gt;&lt;/p&gt;&lt;/font&gt; &lt;p&gt; &lt;table cellspacing="0" cellpadding="0" border="1"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign="top" width="616"&gt; &lt;p&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;GRANT ALTER TRACE to [Login]&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Calibri"&gt;BOL explanation:&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;By default, running SQL Server Profiler requires the same user permissions as the Transact-SQL stored procedures that are used to create traces. To run SQL Server Profiler, users must be granted the ALTER TRACE permission&lt;/font&gt; &lt;p&gt;References: &lt;a href="http://msdn.microsoft.com/en-us/library/ms187611.aspx"&gt;Permissions Required to Run SQL Server Profiler&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3798938132508775525?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3798938132508775525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3798938132508775525' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3798938132508775525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3798938132508775525'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/06/privileges-needed-to-run-sql-server.html' title='Privileges needed to run SQL Server Profiler without sysadmin privileges'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5233746350178486018</id><published>2010-05-29T16:45:00.001-07:00</published><updated>2010-05-29T16:53:09.584-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Audit'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>Query to find when the table last accessed on SQL Server 2005 and above</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;------ Query to find when the User Table Last accessed --------- &lt;p&gt;WITH LastActivity (ObjectID, LastAction)&lt;br&gt;AS&lt;br&gt;(&lt;br&gt; SELECT object_id AS TableName, Last_User_Seek as LastAction&lt;br&gt; FROM sys.dm_db_index_usage_stats u &lt;br&gt; WHERE database_id = db_id(db_name())&lt;br&gt; UNION&lt;br&gt; SELECT object_id AS TableName,last_user_scan as LastAction&lt;br&gt; FROM sys.dm_db_index_usage_stats u&lt;br&gt; WHERE database_id = db_id(db_name())&lt;br&gt; UNION&lt;br&gt; SELECT object_id AS TableName,last_user_lookup as LastAction&lt;br&gt; FROM sys.dm_db_index_usage_stats u&lt;br&gt; WHERE database_id = db_id(db_name())&lt;br&gt;)&lt;br&gt;SELECT OBJECT_NAME(so.object_id)AS TableName,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(la.LastAction)as LastSelect&lt;br&gt;FROM&lt;br&gt;sys.objects so&lt;br&gt;LEFT JOIN LastActivity la&lt;br&gt;ON so.object_id = la.ObjectID&lt;br&gt;WHERE so.type = 'U'&lt;br&gt;AND so.object_id &amp;gt; 100&lt;br&gt;GROUP BY OBJECT_NAME(so.object_id)&lt;br&gt;ORDER BY OBJECT_NAME(so.object_id) &lt;p&gt;------ Query to find when the Database Last accessed ---------  &lt;p&gt;SELECT name, last_access =(&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select X1= max(bb.xx)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ( select xx =&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(last_user_seek)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where max(last_user_seek)is not null&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; union all&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select xx = max(last_user_scan)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where max(last_user_scan)is not null&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; union all&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select xx = max(last_user_lookup)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where max(last_user_lookup) is not null&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; union all&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select xx =max(last_user_update)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where max(last_user_update) is not null) bb)&lt;br&gt;FROM master.dbo.sysdatabases d &lt;br&gt;left outer join sys.dm_db_index_usage_stats s &lt;br&gt;on d.dbid= s.database_id &lt;br&gt;group by d.name&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5233746350178486018?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5233746350178486018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5233746350178486018' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5233746350178486018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5233746350178486018'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/05/query-to-find-when-table-last-accessed.html' title='Query to find when the table last accessed on SQL Server 2005 and above'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6391705702740572883</id><published>2010-05-29T16:36:00.001-07:00</published><updated>2010-05-29T16:43:40.815-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Audit'/><category scheme='http://www.blogger.com/atom/ns#' term='Trigger'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>Deny specific user from Remote Login to SQL Server</title><content type='html'>&lt;span xmlns=""&gt; &lt;p&gt;SQL Server Query &lt;span style="color: #333333; font-family: segoe ui"&gt;to deny user on remote login feature, let user connect to database engine only from localhost (or 127.0.0.1).&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family: segoe ui"&gt;&lt;span style="color: #333333"&gt;This query below applies to SQL Server 2005 with SP2 and above higher version. It uses the SQL Server &lt;a href="http://msdn.microsoft.com/en-us/library/bb326598.aspx"&gt;&lt;/span&gt;Logon Trigger&lt;/span&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt; &lt;div&gt; &lt;table style="border-collapse: collapse" border="0"&gt; &lt;colgroup&gt; &lt;col style="width: 616px"&gt;&lt;/colgroup&gt; &lt;tbody valign="top"&gt; &lt;tr&gt; &lt;td style="border-right: black 0.5pt solid; padding-right: 7px; border-top: black 0.5pt solid; padding-left: 7px; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid"&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&lt;span style="color: black"&gt; &lt;p&gt;CREATE TRIGGER Deny_Remote_Login_Login1_trigger  &lt;p&gt;ON ALL SERVER WITH EXECUTE AS 'sa'  &lt;p&gt;FOR LOGON  &lt;p&gt;AS  &lt;p&gt;BEGIN  &lt;p&gt;IF ORIGINAL_LOGIN()= 'Login1' AND  &lt;p&gt;(SELECT * FROM sys.dm_exec_sessions  &lt;p&gt;WHERE is_user_process = 1 AND  &lt;p&gt;original_login_name = 'Login1' --- Checking the given login  &lt;p&gt;and Host_Name not in ( 'SQLServerHostName') --- Connecting Remotely  &lt;p&gt;and Session_ID = @@SPID )  &lt;p&gt;BEGIN  &lt;p&gt;PRINT 'RemoteLogin Attempt attempt of ' + ORIGINAL_LOGIN()+' denied, please login locally'  &lt;p&gt;ROLLBACK;  &lt;p&gt;END  &lt;p&gt;END;  &lt;p style="background: white"&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/span&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6391705702740572883?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6391705702740572883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6391705702740572883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6391705702740572883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6391705702740572883'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/05/deny-specific-user-from-remote-login-to.html' title='Deny specific user from Remote Login to SQL Server'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7442389391528767079</id><published>2010-05-18T16:32:00.000-07:00</published><updated>2010-05-29T16:33:02.768-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Uninstall'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>SQL Server 2005 Uninstall Error: The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine Error: 2147749896 (0x80041008).</title><content type='html'>&lt;p&gt;&amp;nbsp; &lt;p&gt;The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine Error:2147749896 (0×80041008). &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TAGkJcOgnVI/AAAAAAAAAt8/PnKOZNt1eQ8/s1600-h/clip_image002%5B3%5D.jpg"&gt;&lt;img title="clip_image002" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="168" alt="clip_image002" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TAGkKd44D6I/AAAAAAAAAuA/1sFFKvGZygA/clip_image002_thumb.jpg?imgmax=800" width="244" border="0"&gt;&lt;/a&gt; &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TAGkK5jOFnI/AAAAAAAAAuE/WNzGLUyZyB4/s1600-h/clip_image004%5B3%5D.jpg"&gt;&lt;img title="clip_image004" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="55" alt="clip_image004" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TAGkLUzZaBI/AAAAAAAAAuI/edaYWpVVQZM/clip_image004_thumb.jpg?imgmax=800" width="244" border="0"&gt;&lt;/a&gt; &lt;p&gt;Resolution: Copy and run the DOS batch file below &lt;table cellspacing="0" cellpadding="0" border="1"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign="top" width="616"&gt; &lt;p&gt;@echo on &lt;br&gt;cd /d c:\temp &lt;br&gt;if not exist %windir%\system32\wbem goto TryInstall &lt;br&gt;cd /d %windir%\system32\wbem &lt;br&gt;net stop winmgmt &lt;br&gt;winmgmt /kill &lt;br&gt;if exist Rep_bak rd Rep_bak /s /q &lt;br&gt;rename Repository Rep_bak &lt;br&gt;for %%i in (*.dll) do RegSvr32 -s %%i &lt;br&gt;for %%i in (*.exe) do call :FixSrv %%i &lt;br&gt;for %%i in (*.mof,*.mfl) do Mofcomp %%i &lt;br&gt;net start winmgmt &lt;br&gt;goto End &lt;br&gt;:FixSrv &lt;br&gt;if /I (%1) == (wbemcntl.exe) goto SkipSrv &lt;br&gt;if /I (%1) == (wbemtest.exe) goto SkipSrv &lt;br&gt;if /I (%1) == (mofcomp.exe) goto SkipSrv &lt;br&gt;%1 /RegServer &lt;br&gt;:SkipSrv &lt;br&gt;goto End &lt;br&gt;:TryInstall &lt;br&gt;if not exist wmicore.exe goto End &lt;br&gt;wmicore /s &lt;br&gt;net start winmgmt &lt;br&gt;:End&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Thanks to: &lt;a href="http://social.msdn.microsoft.com/Forums/en/Vsexpressinstall/thread/632ca405-1c38-405b-9ed3-01785c9f99d1"&gt;http://social.msdn.microsoft.com/Forums/en/Vsexpressinstall/thread/632ca405-1c38-405b-9ed3-01785c9f99d1&lt;/a&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7442389391528767079?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7442389391528767079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7442389391528767079' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7442389391528767079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7442389391528767079'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/05/sql-server-2005-uninstall-error-sql.html' title='SQL Server 2005 Uninstall Error: The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine Error: 2147749896 (0x80041008).'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TAGkKd44D6I/AAAAAAAAAuA/1sFFKvGZygA/s72-c/clip_image002_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7084667397846965697</id><published>2010-05-17T16:28:00.000-07:00</published><updated>2010-05-29T16:29:50.681-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Replication'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2000'/><title type='text'>How to remove the subscription from Publication in SQL Server Replication</title><content type='html'>&lt;h2&gt;&amp;nbsp;&lt;/h2&gt; &lt;p&gt;1. On SQL Server 2000 connect to Enterprise Manager&lt;br&gt;On SQL Server 2005 / 2008 connect to SQL Server Management studio &lt;p&gt;2. Expand Replication à Publication, select the Publication from which the subscribers to be removed. &lt;br&gt;On SQL Server 2005 / 2008 from the Replication à Local Publication select the Publication &lt;p&gt;3. Right click on the Publication &lt;p&gt;4. Select the Subscription tab &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_w7ME_yT4MGY/TAGjXy2vxTI/AAAAAAAAAtk/qHlCnqP8rY4/s1600-h/clip_image002%5B3%5D.jpg"&gt;&lt;img title="clip_image002" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="219" alt="clip_image002" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TAGjYrcy2EI/AAAAAAAAAto/UHrWK_FLb7Y/clip_image002_thumb.jpg?imgmax=800" width="244" border="0"&gt;&lt;/a&gt; &lt;p&gt;5. Select the Subscriber and click Delete button, that’s it &lt;p&gt;6. If you hold the “Shift” key you can delete more than one subscriber. However you have to execute the &lt;b&gt;sp_subscription_cleanup&lt;/b&gt; each subscribers manually.&lt;br&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TAGjZuZqI3I/AAAAAAAAAts/J7-WM0ikvew/s1600-h/clip_image004%5B3%5D.jpg"&gt;&lt;img title="clip_image004" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="83" alt="clip_image004" src="http://lh6.ggpht.com/_w7ME_yT4MGY/TAGjaLc89pI/AAAAAAAAAtw/fNZ0qAlJOts/clip_image004_thumb.jpg?imgmax=800" width="244" border="0"&gt;&lt;/a&gt; &lt;p&gt;7. Rather if you delete one subscriber at a time, it is simple and no need to execute the stored procedures at subscriber. &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TAGja3Yx-gI/AAAAAAAAAt0/85oa8Kn9otI/s1600-h/clip_image006%5B3%5D.jpg"&gt;&lt;img title="clip_image006" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="56" alt="clip_image006" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TAGjbdfInZI/AAAAAAAAAt4/mLURpOVF_pg/clip_image006_thumb.jpg?imgmax=800" width="244" border="0"&gt;&lt;/a&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7084667397846965697?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7084667397846965697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7084667397846965697' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7084667397846965697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7084667397846965697'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/05/how-to-remove-subscription-from.html' title='How to remove the subscription from Publication in SQL Server Replication'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_w7ME_yT4MGY/TAGjYrcy2EI/AAAAAAAAAto/UHrWK_FLb7Y/s72-c/clip_image002_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8828030182267681501</id><published>2010-05-04T03:59:00.001-07:00</published><updated>2010-05-04T04:00:24.396-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Service Pack'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>How to apply Service pack on SQL Server 2005 Cluster</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;1. Backup of all the System + User Database &lt;p&gt;2.Windows Login account with "Local Administrator" privileges on all the nodes involved &lt;p&gt;3. Ensure all the recourses part of the SQL Server Cluster resource group are online.&lt;br&gt;&amp;nbsp;&amp;nbsp; I recommend to reboot both nodes before installation. (to avoid pending reboot, hanging installers, terminal sessions etc. problems.) &lt;p&gt;4. Cross check if the cluster failover on the nodes involved successfully. &lt;p&gt;5. shut down all applications that use SQLServer (because you know the instance(s) will get offline at some point(s) during the upgrade) &lt;p&gt;6. Disable if any DDL Triggers &lt;p&gt;7. Verify if following services online on the nodes involved. &lt;ul&gt; &lt;li&gt; Task Scheduler  &lt;li&gt; Com+ System Application Service  &lt;li&gt; Cryptographic Services  &lt;li&gt; Remote Registry Service&amp;nbsp; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;8. Pause Database Mirroring &lt;blockquote&gt; &lt;p&gt;Log on the active node, apply the Service pack. ( &lt;font color="#ff0000"&gt;It is opposite in case of SQL Server 2008 !&lt;/font&gt; ). You cannot install SP3 from any passive nodes in the failover cluster.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Please note SP will not update the client tools on the passive node. you need to do that manually; though it is cluster aware. &lt;p&gt;Reference:&amp;nbsp; &lt;p&gt;&lt;a href="http://www.sqlcoffee.com/Tips0007.htm"&gt;How to install SQL Server 2005 SP3&lt;/a&gt; &lt;p&gt;&lt;a href="http://download.microsoft.com/download/5/7/1/5718A94A-3931-457B-8567-AA0995E34870/ReleaseNotesSQL2005SP3.htm"&gt;SQL Server 2005 SP3 Release Notes&lt;/a&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx/kb/958734?p=1"&gt;SQL Server 2008 failover cluster rolling patch and service pack process&lt;br&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8828030182267681501?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8828030182267681501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8828030182267681501' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8828030182267681501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8828030182267681501'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/05/how-to-apply-service-pack-on-sql-server.html' title='How to apply Service pack on SQL Server 2005 Cluster'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3832013246962327021</id><published>2010-05-01T04:20:00.000-07:00</published><updated>2010-05-01T04:29:50.157-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Service Pack'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>SQL Server 2005 Service Pack 4</title><content type='html'>SQL Server 2005 Service Pack 4 ( SQL Server 2005 SP4 ) will be released by end of the year 2010 ( Quarter 4 of 2010 ). It will be the last Service pack for the SQL Server 2005.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL Server 2008 Service Pack 1 ( SQL Server 2008 SP1 ) will be released by third quarter of the year 2010 ( Quarter 3 of 2010 ). It will be the last Service pack for the SQL Server 2005.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source: &lt;a href="http://blogs.msdn.com/sqlreleaseservices/archive/2010/02/12/sql-server-servicing-plans.aspx"&gt;Shared by the Microsoft SQL Server release services group manager.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3832013246962327021?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3832013246962327021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3832013246962327021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3832013246962327021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3832013246962327021'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/05/sql-server-2005-service-pack-4.html' title='SQL Server 2005 Service Pack 4'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8798887913064500804</id><published>2010-04-26T01:47:00.001-07:00</published><updated>2010-04-26T01:47:13.594-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Learn'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>Learn SQL Server 2008 for free</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Microsoft makes it easier than ever to attend SQL Server 2008 training, at little to &lt;b&gt;&lt;i&gt;no cost&lt;/i&gt;&lt;/b&gt;, without any travel necessary.&amp;nbsp; &lt;p&gt;It just needed a email account on &lt;b&gt;&lt;i&gt;hotmail&lt;/i&gt;&lt;/b&gt; or &lt;b&gt;&lt;i&gt;msn&lt;/i&gt;.&lt;/b&gt; &lt;p&gt;Subject matter includes:  &lt;p&gt;· Database Administration &lt;p&gt;· Database architecture &lt;p&gt;· Database, programming and security.&amp;nbsp; &lt;p&gt;Click the courses below to see full descriptions or visit &lt;a href="http://learning.microsoft.com/Manager/Catalog.aspx?clang=en-US&amp;amp;dtype=Table&amp;amp;Sort=Relevancy&amp;amp;page=1&amp;amp;cats=%7b1ba8b41f-c9fb-4e07-87e7-3d3943a51600%7d%3a%7b261ba873-f3ab-420e-96d6-e3004596a551%7d%3a%7b0226cd58-6016-452c-b8d2-4d59efcb2870%7d%3a%7b337eb1e4-98e6-480a-a5fb-8b7b3a282c9c%7d"&gt;Microsoft Learning&lt;/a&gt; to browse the course catalog &lt;table cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign="top"&gt; &lt;p&gt;&lt;b&gt;DBA Track&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=245f8a3d-7d32-41f6-b761-093e509ba8cc&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Course 6339: Database Fundamentals in Microsoft SQL Server 2008 &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=01fd1277-d731-48c0-a182-91b5b10e2a77&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Clinic 10259: SQL Server 2008: Database Infrastructure and Scalability &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=3410bab5-6482-4583-bd73-86f5a516cb22&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Clinic 6188: What's New in Microsoft SQL Server 2008 for Enterprise Data Platform &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=c91722fb-9e26-401f-b28f-79aac900071f&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Collection 6187: What’s New in Microsoft SQL Server 2008&amp;nbsp; &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt; &lt;p&gt;&lt;b&gt;Developer Track&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=cb7058a2-4d7f-44cd-8a6a-463ed771dfbc&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Clinic 6190: What's New in Microsoft SQL Server 2008 for Database Development &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=58ce9b16-e619-402b-ab2e-66caa678e574&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Clinic 10164: Essential SQL Server 2008 for Developers &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=4546db2b-8c34-4c1c-8bd6-48917ccc9255&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Clinic 10258: SQL Server 2008: Upgrade and Application Compatibility &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt; &lt;p&gt;&lt;b&gt;Reporting Service&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=fed36581-4a07-4988-b7f4-3a51d5cd5d6d&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Clinic 6258: New Features Of Microsoft SQL Server 2008 Reporting Services &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt; &lt;p&gt;&lt;b&gt;Business Intelligence&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;p&gt;&lt;u&gt;&lt;a href="http://www.microsoftelearning.com/eLearning/gotoResource.aspx?resourceId=8c94655d-c39d-4cff-b8cc-607b57f86219&amp;amp;language=en-US&amp;amp;country=US&amp;amp;locale=en-US&amp;amp;style=Learning"&gt;Clinic 6189: What's New in Microsoft SQL Server 2008 for Business Intelligence &lt;/a&gt;&lt;/u&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8798887913064500804?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8798887913064500804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8798887913064500804' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8798887913064500804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8798887913064500804'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/learn-sql-server-2008-for-free.html' title='Learn SQL Server 2008 for free'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8342527868731068799</id><published>2010-04-25T18:40:00.001-07:00</published><updated>2010-04-25T18:40:34.150-07:00</updated><title type='text'>DAC – Dedicated Administrator Connection</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;Use Command below to connect as DAC&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:638px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt'&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;SQLCMD -A&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;It is on by Default for local server.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;br/&gt;For remote(via network) enable it by running query below&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:638px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt'&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:maroon'&gt;sp_configure&lt;/span&gt;&lt;br /&gt;										&lt;span style='color:red'&gt;'remote admin connections'&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='color:#002060; font-family:Courier New; font-size:10pt'&gt;For Clusters, recommended to enable remote admin connections as no local DAC available&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;div&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:638px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt'&gt;&lt;p&gt;&lt;span style='color:green; font-family:Courier New; font-size:10pt'&gt;---- Query to Find if DAC - Dedicated Admin Connection used -----&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:blue'&gt;select&lt;/span&gt; s1&lt;span style='color:gray'&gt;.&lt;/span&gt;session_id&lt;span style='color:gray'&gt;,&lt;/span&gt; s1&lt;span style='color:gray'&gt;.&lt;/span&gt;&lt;span style='color:fuchsia'&gt;program_name&lt;/span&gt;&lt;span style='color:gray'&gt;,&lt;/span&gt;s1&lt;span style='color:gray'&gt;.&lt;/span&gt;&lt;span style='color:fuchsia'&gt;host_name&lt;/span&gt;&lt;span style='color:gray'&gt;,&lt;/span&gt;t1&lt;span style='color:gray'&gt;.&lt;/span&gt;name&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:blue; font-family:Courier New; font-size:10pt'&gt;from&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:green'&gt;sys&lt;/span&gt;&lt;span style='color:gray'&gt;.&lt;/span&gt;&lt;span style='color:green'&gt;tcp_endpoints&lt;/span&gt; t1&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:gray'&gt;join&lt;/span&gt;&lt;br /&gt;										&lt;span style='color:green'&gt;sys&lt;/span&gt;&lt;span style='color:gray'&gt;.&lt;/span&gt;&lt;span style='color:green'&gt;dm_exec_sessions&lt;/span&gt; s1&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:blue'&gt;on&lt;/span&gt; t1&lt;span style='color:gray'&gt;.&lt;/span&gt;endpoint_id &lt;span style='color:gray'&gt;=&lt;/span&gt; s1&lt;span style='color:gray'&gt;.&lt;/span&gt;endpoint_id&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:blue'&gt;where&lt;/span&gt; t1&lt;span style='color:gray'&gt;.&lt;/span&gt;name &lt;span style='color:gray'&gt;=&lt;/span&gt;&lt;br /&gt;										&lt;span style='color:red'&gt;'Dedicated Admin Connection'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:green; font-family:Courier New; font-size:10pt'&gt;--- End of the Query -----&lt;/span&gt;&lt;br /&gt;								&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt'&gt;&lt;p&gt;&lt;span style='color:green; font-family:Courier New; font-size:10pt'&gt;--- Query to check the DAC ----&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:green'&gt;--- Scheduler_ID = 255 &amp;amp; Status = "VISIBLE ONLINE (DAC) ---&lt;/span&gt;&lt;span style='color:blue'&gt;&lt;br /&gt;										&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:blue'&gt;select&lt;/span&gt;&lt;br /&gt;										&lt;span style='color:gray'&gt;*&lt;/span&gt;&lt;br /&gt;										&lt;span style='color:blue'&gt;from&lt;/span&gt;&lt;br /&gt;										&lt;span style='color:green'&gt;sys&lt;/span&gt;&lt;span style='color:gray'&gt;.&lt;/span&gt;&lt;span style='color:green'&gt;dm_os_schedulers&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Usage:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Helvetica; font-size:9pt'&gt;when &lt;strong&gt;SQL Server hangs&lt;/strong&gt;, &lt;strong&gt;SQL Server does not respond&lt;/strong&gt;, when &lt;strong&gt;SQL Server does not accept new connection&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;			&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Use &lt;strong&gt;DAC&lt;/strong&gt; sparingly for monitoring and Troubleshooting&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Connect to master database first&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Use lightweight queries.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Not advised for long running queries like ( DBCC CHECKDB, DBREINDEX, INDEXDEFRAG )&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8342527868731068799?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8342527868731068799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8342527868731068799' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8342527868731068799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8342527868731068799'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/dac-dedicated-administrator-connection.html' title='DAC – Dedicated Administrator Connection'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2678727450854177637</id><published>2010-04-23T04:59:00.001-07:00</published><updated>2010-04-23T04:59:40.572-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Setup'/><title type='text'>SQL Server Default Collation</title><content type='html'>&lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2fd335c5-2206-48f1-a5c2-1142c7e46600" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/SQL+Server+Setup" rel="tag"&gt;SQL Server Setup&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;SQL Server Default Collation&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/S9GLp3wx3lI/AAAAAAAAAtE/B09PQyXjeHc/s1600-h/Default_Collation%5B4%5D.jpg"&gt;&lt;img title="Default_Collation" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="500" alt="Default_Collation" src="http://lh6.ggpht.com/_w7ME_yT4MGY/S9GLqzlNdVI/AAAAAAAAAtI/23AYnJZLA1c/Default_Collation_thumb%5B2%5D.jpg?imgmax=800" width="660" border="0"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2678727450854177637?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2678727450854177637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2678727450854177637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2678727450854177637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2678727450854177637'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/sql-server-default-collation.html' title='SQL Server Default Collation'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_w7ME_yT4MGY/S9GLqzlNdVI/AAAAAAAAAtI/23AYnJZLA1c/s72-c/Default_Collation_thumb%5B2%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4277049331013027189</id><published>2010-04-22T03:42:00.001-07:00</published><updated>2010-05-01T17:47:55.961-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Patching'/><category scheme='http://www.blogger.com/atom/ns#' term='Service Pack'/><title type='text'>SQL Server Latest Service Pack and Security Hot fixes</title><content type='html'>&lt;span xmlns=''&gt;&lt;div&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:45px'/&gt;&lt;col style='width:53px'/&gt;&lt;col style='width:50px'/&gt;&lt;col style='width:63px'/&gt;&lt;col style='width:50px'/&gt;&lt;col style='width:39px'/&gt;&lt;col style='width:47px'/&gt;&lt;col style='width:33px'/&gt;&lt;col style='width:242px'/&gt;&lt;col style='width:15px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Applies to&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Version Range&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Type&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Target Version&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Release Date&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Security Bulletins&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt; KB&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='background: #d7e4bc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Download&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2000&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;Below 8.00.2039&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Service Pack&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;SQL Server 2000 SP4&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;8.00.2039&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p style='text-align: right'&gt;&lt;span style='color:black'&gt;6-Jun-05&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=48&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=8e2dfc8d-c20e-4446-99a9-b7f0213f8bc5&amp;amp;u=http%3a%2f%2fwww.microsoft.com%2ftechnet%2fsecurity%2fbulletin%2fMS03-031.mspx'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;MS03-031&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=49&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=8e2dfc8d-c20e-4446-99a9-b7f0213f8bc5&amp;amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d884525'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;KB884525&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/details.aspx?familyid=8E2DFC8D-C20E-4446-99A9-B7F0213F8BC5&amp;amp;displaylang=en'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;http://www.microsoft.com/downloads/details.aspx?familyid=8E2DFC8D-C20E-4446-99A9-B7F0213F8BC5&amp;amp;displaylang=en&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2000&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;8.00.2039-8.00.2054&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;GDR&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2000 SP4 GDR&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;8.00.2055&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p style='text-align: right'&gt;&lt;span style='color:black'&gt;10-Feb-09&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=48&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=d5bb816a-6e1a-47cb-92be-51c565ee184c&amp;amp;u=http%3a%2f%2fwww.microsoft.com%2ftechnet%2fsecurity%2fbulletin%2fMS09-004.mspx'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;MS09-004&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=49&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=d5bb816a-6e1a-47cb-92be-51c565ee184c&amp;amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d960082'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;KB960082&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/details.aspx?familyid=d5bb816a-6e1a-47cb-92be-51c565ee184c&amp;amp;displaylang=en'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;http://www.microsoft.com/downloads/details.aspx?familyid=d5bb816a-6e1a-47cb-92be-51c565ee184c&amp;amp;displaylang=en&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2000&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;8.00.2148-8.00.2281&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;QFE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2000 SP4 QFE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;8.00.2282&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p style='text-align: right'&gt;&lt;span style='color:black'&gt;10-Feb-09&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=48&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=a93f3cfe-18c9-4218-a551-13bf415e418a&amp;amp;u=http%3a%2f%2fwww.microsoft.com%2ftechnet%2fsecurity%2fbulletin%2fMS09-004.mspx'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;MS09-004&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=49&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=a93f3cfe-18c9-4218-a551-13bf415e418a&amp;amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d960083'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;KB960083&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/details.aspx?familyid=A93F3CFE-18C9-4218-A551-13BF415E418A&amp;amp;displaylang=en'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;http://www.microsoft.com/downloads/details.aspx?familyid=A93F3CFE-18C9-4218-A551-13BF415E418A&amp;amp;displaylang=en&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2005&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;Below 9.00.4035&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Service Pack&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;SQL Server 2005 SP3&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;9.00.4035&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p style='text-align: right'&gt;&lt;span style='color:black'&gt;15-Dec-08&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;N/A&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=49&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=ae7387c3-348c-4faa-8ae5-949fdfbe59c4&amp;amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d955706'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;KB955706&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/details.aspx?FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4&amp;amp;displaylang=en'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4&amp;amp;displaylang=en&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2005&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;9.00.4035-9.00.4052&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;GDR&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server  2005 SP3 GDR&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;9.00.4053&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p style='text-align: right'&gt;&lt;span style='color:black'&gt;12-Oct-09&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=48&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=e6f307c1-8b21-406e-9c6f-b1a3a1e9a98f&amp;amp;u=http%3a%2f%2fwww.microsoft.com%2ftechnet%2fsecurity%2fbulletin%2fMS09-062.mspx'&gt;&lt;span style='color:black'&gt;MS09-062&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=49&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=0d878f4b-71e8-4170-9a14-1bce684811ce&amp;amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d970892'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;KB970892&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/details.aspx?familyid=0d878f4b-71e8-4170-9a14-1bce684811ce&amp;amp;displaylang=en'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;http://www.microsoft.com/downloads/details.aspx?familyid=0d878f4b-71e8-4170-9a14-1bce684811ce&amp;amp;displaylang=en&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2005&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;9.00.4205-9.00.4261&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;QFE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2005 SP3 QFE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;9.00.4262&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p style='text-align: right'&gt;&lt;span style='color:black'&gt;12-Oct-09&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=48&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=e6f307c1-8b21-406e-9c6f-b1a3a1e9a98f&amp;amp;u=http%3a%2f%2fwww.microsoft.com%2ftechnet%2fsecurity%2fbulletin%2fMS09-062.mspx'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;MS09-062&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/info.aspx?na=49&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=e6f307c1-8b21-406e-9c6f-b1a3a1e9a98f&amp;amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d970894'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;KB970894&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/details.aspx?familyid=e6f307c1-8b21-406e-9c6f-b1a3a1e9a98f&amp;amp;displaylang=en'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;http://www.microsoft.com/downloads/details.aspx?familyid=e6f307c1-8b21-406e-9c6f-b1a3a1e9a98f&amp;amp;displaylang=en&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;SQL Server 2008&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;Below 10.00.2531&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;Service Pack&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;&lt;strong&gt;SQL Server 2008 SP1&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;10.00.2531.00&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p style='text-align: right'&gt;&lt;span style='color:black'&gt;27-Aug-09&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt;N/A&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black'&gt; &lt;/span&gt; &lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://www.microsoft.com/downloads/details.aspx?FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19&amp;amp;displaylang=en'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19&amp;amp;displaylang=en&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 20px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom' colspan='4'&gt;&lt;p&gt;&lt;span style='color:black'&gt;It lists only the latest SQL Server Service Pack and  Security Hot fixes as on 22nd April 2010&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  none; border-right:  none' vAlign='bottom'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4277049331013027189?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4277049331013027189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4277049331013027189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4277049331013027189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4277049331013027189'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/sql-server-latest-service-pack-and.html' title='SQL Server Latest Service Pack and Security Hot fixes'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3103058082035893653</id><published>2010-04-22T03:36:00.001-07:00</published><updated>2010-04-22T03:38:01.589-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Software Asset Management - SAM</title><content type='html'>&lt;span xmlns=''&gt;&lt;p style='background: white'&gt;&lt;span style='color:black; font-family:Tahoma; font-size:8pt'&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/p&gt;&lt;p&gt;Software Inventory Assistance&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Whether we have just a few computers or a large network, a software inventory tool can make it easier to quickly know what we have and how it's being used.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The &lt;a href='http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=c25884f2-9ab6-419f-a22f-d39225eac339'&gt;Microsoft Software Inventory Analyzer (&lt;strong&gt;MSIA&lt;/strong&gt;&lt;/a&gt;) is a free tool available for download that can help us with our software inventory. It is built specifically to be a starting point to working with SAM. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;We can use the MSIA to scan and inventory the Microsoft software that is installed on a single computer, or on multiple computers throughout a network. It generates a report that provides details of all installed Microsoft products, including the type and the number of licenses. The MSIA will work with networks that have 250 or fewer computers. The latest MSIA 5.1 features enable you to:&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Identify and report all installed Microsoft products listed under Add or Remove Programs. &lt;br /&gt;&lt;/li&gt;&lt;li&gt;Consolidate the MSIA report with the Microsoft Licensing Statement (MLS) report (.xls only).&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This information is useful for you, if you are taking care of the system administration, licensing and inventory of Microsoft software products in your organization.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3103058082035893653?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3103058082035893653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3103058082035893653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3103058082035893653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3103058082035893653'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/software-asset-management-sam.html' title='Software Asset Management - SAM'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-498903059032463321</id><published>2010-04-22T03:34:00.001-07:00</published><updated>2010-04-22T03:36:09.668-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>BgInfo</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;a href='http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx'&gt;&lt;span style='font-family:Segoe UI; font-size:10pt'&gt;BgInfo – Microsoft Windows SysInternal tool&lt;/span&gt;&lt;/a&gt;&lt;span style='color:#333333; font-family:Segoe UI; font-size:10pt'&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Segoe UI; font-size:10pt'&gt;How many times have you walked up to a system in your office and needed to click through several diagnostic windows to remind yourself of important aspects of its configuration, such as its name, IP address, or operating system version If you manage multiple computers you probably need &lt;em&gt;BGInfo&lt;/em&gt;. It automatically displays relevant information about a Windows computer on the desktop's background, such as the computer name, IP address, service pack version, and more. You can edit any field as well as the font and background colors, and can place it in your startup folder so that it runs every boot, or even configure it to display as the background for the logon screen.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-498903059032463321?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/498903059032463321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=498903059032463321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/498903059032463321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/498903059032463321'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/bginfo.html' title='BgInfo'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3841735126402924715</id><published>2010-04-21T05:15:00.001-07:00</published><updated>2010-04-22T03:29:56.870-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Usage'/><category scheme='http://www.blogger.com/atom/ns#' term='Query'/><title type='text'>SQL Server 2005/ 2008 Query to find when the database last used</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Below is the TSQL Query to find when the database last accessed for SQL Server 2005 / 2008 &lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:638px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid black 1.0pt; border-left:  none; border-bottom:  solid black 1.0pt; border-right:  none'&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;-- Query to find when the database last accessed on SQL Server 2005 / 2008 ---&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;select  d.name, x1 =&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;(select X1= max(bb.xx) &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;from (&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;    select xx = max(last_user_seek) &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;        where max(last_user_seek) is not null &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;    union all &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;    select xx = max(last_user_scan) &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;        where max(last_user_scan) is not null &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;    union all &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;    select xx = max(last_user_lookup) &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;        where max(last_user_lookup) is not null &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;    union all &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;        select xx = max(last_user_update) &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;        where max(last_user_update) is not null) bb) &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;FROM master.dbo.sysdatabases d &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;left outer join &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;sys.dm_db_index_usage_stats s &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;on d.dbid=  s.database_id &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#404040'&gt;&lt;strong&gt;group by d.name&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3841735126402924715?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3841735126402924715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3841735126402924715' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3841735126402924715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3841735126402924715'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/sql-server-2005-2008-query-to-find-when.html' title='SQL Server 2005/ 2008 Query to find when the database last used'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-9145571522399170181</id><published>2010-04-21T05:11:00.001-07:00</published><updated>2010-04-22T03:31:13.708-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Best Practices'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>Differentiate your connections to SQL Instances by coloring it</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;What would be the case. have you ever connected to a server, thought it was a testing or development system, and only a split second after you pressed "F5" to run that command, realized that it was the production server? Yeah….me neither :).&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;To make sure that's never you, when you start SQL Server 2008 Management Studio (SSMS), stop for a moment on the connection dialog and press "Options". You'll see that you can select a color for the connection – I set mine to red for production servers, yellow for testing servers, and green for development servers.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Once inside SSMS, you can also set the default color for all connections – I do this and set them all to red, so that if I forget, at least I'll have that visual indicator to make sure the change I'm making is on the right server.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;It helps on classifying the SQL Server Instances by Production, Development, Test or QA etc.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-9145571522399170181?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/9145571522399170181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=9145571522399170181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/9145571522399170181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/9145571522399170181'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/differentiate-your-connections-to-sql.html' title='Differentiate your connections to SQL Instances by coloring it'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3641038003965239168</id><published>2010-04-20T03:21:00.001-07:00</published><updated>2010-04-22T03:32:44.253-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query'/><title type='text'>Format Date or Time without “/”</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;Format the date or time without dividing characters, as well as concatenate the date and time string: &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style='text-align: center'&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:491px'/&gt;&lt;col style='width:109px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr&gt;&lt;td style='padding-top: 3px; padding-left: 3px; padding-bottom: 3px; padding-right: 3px; border-top:  outset 0.75pt; border-left:  outset 0.75pt; border-bottom:  outset 0.75pt; border-right:  outset 0.75pt'&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;&lt;strong&gt;Sample statement&lt;/strong&gt;&lt;br /&gt;         &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 3px; padding-left: 3px; padding-bottom: 3px; padding-right: 3px; border-top:  outset 0.75pt; border-left:  none; border-bottom:  outset 0.75pt; border-right:  outset 0.75pt'&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;br /&gt;         &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 3px; padding-left: 3px; padding-bottom: 3px; padding-right: 3px; border-top:  none; border-left:  outset 0.75pt; border-bottom:  outset 0.75pt; border-right:  outset 0.75pt'&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;select replace(convert(varchar, getdate(),111),'/','') &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 3px; padding-left: 3px; padding-bottom: 3px; padding-right: 3px; border-top:  none; border-left:  none; border-bottom:  outset 0.75pt; border-right:  outset 0.75pt'&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;20100413 &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 3px; padding-left: 3px; padding-bottom: 3px; padding-right: 3px; border-top:  none; border-left:  outset 0.75pt; border-bottom:  outset 0.75pt; border-right:  outset 0.75pt'&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;select replace(convert(varchar, getdate(),101),'/','') + replace(convert(varchar, getdate(),108),':','') &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 3px; padding-left: 3px; padding-bottom: 3px; padding-right: 3px; border-top:  none; border-left:  none; border-bottom:  outset 0.75pt; border-right:  outset 0.75pt'&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;20100413 004426 &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 3px; padding-left: 3px; padding-bottom: 3px; padding-right: 3px; border-top:  none; border-left:  outset 0.75pt; border-bottom:  outset 0.75pt; border-right:  outset 0.75pt'&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;Select cast(int, convert(char,getdate(),111))&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 3px; padding-left: 3px; padding-bottom: 3px; padding-right: 3px; border-top:  none; border-left:  none; border-bottom:  outset 0.75pt; border-right:  outset 0.75pt'&gt;&lt;p&gt;&lt;span style='font-family:Verdana; font-size:10pt'&gt;20100413&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3641038003965239168?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3641038003965239168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3641038003965239168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3641038003965239168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3641038003965239168'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/format-date-or-time-without.html' title='Format Date or Time without “/”'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4388643538939270146</id><published>2010-04-19T04:48:00.001-07:00</published><updated>2010-04-22T03:33:19.278-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Terminal Server'/><title type='text'>Remote Desktop Error - The terminal server has exceeded the maximum number of allowed connections</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;When trying to connect using a remote desktop session you may get this Login Failure Message, because there are too many remote sessions&lt;br /&gt;&lt;/p&gt;&lt;p&gt;To resolve the exceeded connection issue execute &lt;span style='text-decoration:underline'&gt;&lt;strong&gt;"&lt;span style='background-color:yellow'&gt;mstsc /admin"  ( mstsc /console&lt;/span&gt; )&lt;/strong&gt;&lt;/span&gt;command from the command prompt as shown below&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If a terminal server has exceed the maximum number of sessions an "/admin" session can still be created and this will allow you to still connect to the server.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The /admin sessions don't count towards the session limit that may be configured on a terminal server to limit the number of remote sessions, so this will give you a back door into the server if you get the message "The terminal server has exceeded the maximum number of allows connections".&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4388643538939270146?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4388643538939270146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4388643538939270146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4388643538939270146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4388643538939270146'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/remote-desktop-error-terminal-server.html' title='Remote Desktop Error - The terminal server has exceeded the maximum number of allowed connections'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4077451546800004841</id><published>2010-04-12T05:44:00.001-07:00</published><updated>2010-04-12T05:50:29.226-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Patching'/><category scheme='http://www.blogger.com/atom/ns#' term='Hotfix'/><title type='text'>SQL Server - Patching : An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;a href='http://support.microsoft.com/default.aspx/kb/935897?p=1'&gt;An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems&lt;/a&gt;&lt;br /&gt;   &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;The SQL Server team is moving away from the current priority-driven hotfix release model to a scheduled delivery model. In the scheduled delivery model, a customer can receive a hotfix to address their most critical situations with a short turn-around time. Additionally, a customer can receive a fix that has undergone more testing and that is released on a schedule basis. Therefore, the SQL Server team has created the following delivery mechanisms.&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:160px'/&gt;&lt;col style='width:160px'/&gt;&lt;col style='width:160px'/&gt;&lt;col style='width:160px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid #8064a2 1.0pt; border-left:  solid #8064a2 1.0pt; border-bottom:  solid #8064a2 2.25pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;strong&gt;Critical On Demand - COD&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid #8064a2 1.0pt; border-left:  none; border-bottom:  solid #8064a2 2.25pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;strong&gt;On Demand- OD&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid #8064a2 1.0pt; border-left:  none; border-bottom:  solid #8064a2 2.25pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;strong&gt;Cumulative Update - CU&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid #8064a2 1.0pt; border-left:  none; border-bottom:  solid #8064a2 2.25pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;strong&gt;General Distribution Release - GDR&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='background: #dfd8e8'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #8064a2 1.0pt; border-bottom:  solid #8064a2 1.0pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;The hotfix is released on or before a mutually agreed upon date based on the customer's need&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #8064a2 1.0pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;The hotfix is released on or before a mutually agreed upon date based on the customer's need&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #8064a2 1.0pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;The update is released every 2 months.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #8064a2 1.0pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;A GDR addresses an issue that has a broad customer impact, that has security implications, or that has both. A GDR is determined and issued by Microsoft as appropriate and when appropriate. GDRs are kept to a minimum. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #8064a2 1.0pt; border-bottom:  solid #8064a2 1.0pt; border-right:  solid #8064a2 1.0pt'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #8064a2 1.0pt; border-right:  solid #8064a2 1.0pt'&gt; &lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #8064a2 1.0pt; border-right:  solid #8064a2 1.0pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;It contains all previous critical on-demand hotfixes to date.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #8064a2 1.0pt; border-right:  solid #8064a2 1.0pt'&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;ISM eliminates the need for hotfix rollup releases. The first CU after a new release contains the hotfix rollup, plus any additional QFEs.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;A hotfix package does not replace a service pack. A hotfix package is optional. A hotfix package can be installed or uninstalled at any time. Additionally, hotfix packages are cumulative. Therefore, the latest OD hotfix package or CU hotfix package includes all previously released hotfixes.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Quick Fix Engineering - QFE&lt;/strong&gt;s are used for the majority of fixes where the effects of the problem are not widespread or severe enough to warrant a GDR.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4077451546800004841?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4077451546800004841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4077451546800004841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4077451546800004841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4077451546800004841'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/04/sql-server-patching-incremental.html' title='SQL Server - Patching : An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3676729620362209913</id><published>2010-02-08T15:54:00.000-08:00</published><updated>2010-05-29T16:55:08.376-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Replication'/><title type='text'>Can we have database on SIMPLE Recovery model for Transactional Replication?</title><content type='html'>&lt;span xmlns=""&gt; &lt;p&gt;Yes. We can have Publisher database on SIMPLE recovery model.&lt;br&gt;&lt;/p&gt; &lt;p&gt;The reason is that;&lt;br&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;When executing, the Log Reader Agent first reads the publication transaction log and identifies any INSERT, UPDATE, and DELETE statements, or other modifications made to the data transactions that have been marked for replication. Next, the agent batch copies those transactions to the distribution database at the Distributor. &lt;br&gt; &lt;li&gt;The Log Reader Agent uses the internal stored procedure &lt;span style="background-color: yellow"&gt;&lt;strong&gt;sp_replcmds&lt;/strong&gt;&lt;/span&gt; to get the next set of commands marked for replication from the log. The distribution database then becomes the store-and-forward queue from which changes are sent to Subscribers. Only committed transactions are sent to the distribution database.&lt;br&gt; &lt;li&gt;&lt;span style="color: #0070c0"&gt;&lt;em&gt;Only committed transactions are sent to the distribution database by LogReader agent.&lt;br&gt;&lt;/em&gt;&lt;/span&gt; &lt;li&gt;After the entire batch of transactions has been written successfully to the distribution database, it is committed. Following the commit of each batch of commands to the Distributor, the Log Reader Agent calls &lt;span style="background-color: yellow"&gt;&lt;strong&gt;sp_repldone&lt;/strong&gt;&lt;/span&gt; to mark where replication was last completed. &lt;br&gt; &lt;li&gt;Finally, the agent marks the rows in the transaction log that are ready to be truncated. Rows still waiting to be replicated are not truncated&lt;br&gt; &lt;li&gt;&lt;span style="color: #0070c0; text-decoration: underline"&gt;&lt;strong&gt;&lt;em&gt;The transaction log on the Publisher can be dumped without interfering with replication, because only transactions not marked for replication are purged.&lt;br&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3676729620362209913?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3676729620362209913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3676729620362209913' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3676729620362209913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3676729620362209913'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/05/can-we-have-database-on-simple-recovery.html' title='Can we have database on SIMPLE Recovery model for Transactional Replication?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5943279002654194625</id><published>2010-01-14T15:29:00.000-08:00</published><updated>2010-06-19T16:30:58.050-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Cluster'/><title type='text'>SQL Server 2005 Cluster: SQL Server Service not coming online, error on TCP port is already in use</title><content type='html'>&lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;b&gt;SQL Server Error Log:&lt;/b&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.520 Server Server is listening on [ 10.0.0.136 &amp;lt;ipv4&amp;gt; 2813].&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server Error: 26023, Severity: 16, State: 1.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server Server TCP provider failed to listen on [ 10.0.0.136 &amp;lt;ipv4&amp;gt; 2813]. Tcp port is already in use.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server Error: 17182, Severity: 16, State: 1.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server TDSSNIClient initialization failed with error 0x2740, status code 0xa.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server Error: 17182, Severity: 16, State: 1.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server TDSSNIClient initialization failed with error 0x2740, status code 0x1.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server Error: 17826, Severity: 18, State: 3.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server Error: 17120, Severity: 16, State: 1.&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;2010-06-04 15:19:37.530 Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.&lt;/font&gt; &lt;p&gt;&lt;b&gt;Event Viewer Error&lt;/b&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Event Type: Error&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Event Source: MSSQL$PROD2K5ISD&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Event Category: (2)&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Event ID: 26023&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Date: 4/06/2010&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Time: 2:51:31 PM&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;User: N/A&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Computer: PROD2K5ISD&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Description:&lt;/font&gt; &lt;p&gt;&lt;font face="Calibri"&gt;Server TCP provider failed to listen on [ 10.0.0.136 &amp;lt;ipv4&amp;gt; 2813]. Tcp port is already in use.&lt;/font&gt; &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TB1TJjHeTKI/AAAAAAAAAu0/37gzTwxo0nk/s1600-h/clip_image002%5B5%5D.jpg"&gt;&lt;img title="clip_image002" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="260" alt="clip_image002" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TB1TKtAr88I/AAAAAAAAAu4/cqZWB6oHYu0/clip_image002_thumb%5B2%5D.jpg?imgmax=800" width="236" border="0"&gt;&lt;/a&gt; &lt;p&gt;&lt;b&gt;Resolution&lt;/b&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;912397"&gt;The SQL Server service cannot start when you change a startup parameter for a clustered instance of SQL Server 2000 or of SQL Server 2005 to a value that is not valid&lt;/a&gt; &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TB1TLQN7iZI/AAAAAAAAAu8/1tQOBh5UALo/s1600-h/clip_image004%5B4%5D.jpg"&gt;&lt;img title="clip_image004" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="121" alt="clip_image004" src="http://lh3.ggpht.com/_w7ME_yT4MGY/TB1TMPBZinI/AAAAAAAAAvA/WvE_jFExt5I/clip_image004_thumb%5B1%5D.jpg?imgmax=800" width="242" border="0"&gt;&lt;/a&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5943279002654194625?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5943279002654194625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5943279002654194625' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5943279002654194625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5943279002654194625'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/01/sql-server-2005-cluster-sql-server.html' title='SQL Server 2005 Cluster: SQL Server Service not coming online, error on TCP port is already in use'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_w7ME_yT4MGY/TB1TKtAr88I/AAAAAAAAAu4/cqZWB6oHYu0/s72-c/clip_image002_thumb%5B2%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7986216186588094312</id><published>2010-01-11T15:59:00.000-08:00</published><updated>2010-05-29T17:00:20.172-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='DOS Batch'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>SQL Server 2005 /2008 Express Edition Backup automation</title><content type='html'>&lt;span xmlns=""&gt; &lt;h1&gt;SQL Database Backup Script&lt;br&gt;&lt;/h1&gt; &lt;div&gt; &lt;table style="border-collapse: collapse" border="0"&gt; &lt;colgroup&gt; &lt;col style="width: 616px"&gt;&lt;/colgroup&gt; &lt;tbody valign="top"&gt; &lt;tr&gt; &lt;td style="border-right: black 0.5pt solid; padding-right: 7px; border-top: black 0.5pt solid; padding-left: 7px; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid"&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&lt;span style="color: blue"&gt;declare&lt;/span&gt; @IDENT &lt;span style="color: blue"&gt;INT&lt;/span&gt;&lt;span style="color: gray"&gt;,&lt;/span&gt; @sql &lt;span style="color: blue"&gt;varchar&lt;/span&gt;&lt;span style="color: gray"&gt;(&lt;/span&gt;1000&lt;span style="color: gray"&gt;),&lt;/span&gt; @DBNAME &lt;span style="color: blue"&gt;VARCHAR&lt;/span&gt;&lt;span style="color: gray"&gt;(&lt;/span&gt;200&lt;span style="color: gray"&gt;)&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&lt;span style="color: blue"&gt;select&lt;/span&gt; @IDENT&lt;span style="color: gray"&gt;=&lt;/span&gt;&lt;span style="color: fuchsia"&gt;min&lt;/span&gt;&lt;span style="color: gray"&gt;(&lt;/span&gt;&lt;span style="color: blue"&gt;DBID&lt;/span&gt;&lt;span style="color: gray"&gt;)&lt;/span&gt;&lt;br&gt;&lt;span style="color: blue"&gt;from&lt;/span&gt;&lt;br&gt;&lt;span style="color: green"&gt;SYSDATABASES&lt;/span&gt;&lt;br&gt;&lt;span style="color: blue"&gt;WHERE&lt;/span&gt; [DBID] &lt;span style="color: gray"&gt;&amp;gt;&lt;/span&gt; 0 &lt;span style="color: gray"&gt;AND&lt;/span&gt; NAME &lt;span style="color: gray"&gt;NOT&lt;/span&gt;&lt;br&gt;&lt;span style="color: gray"&gt;IN&lt;/span&gt;&lt;span style="color: blue"&gt;&lt;br&gt;&lt;/span&gt;&lt;span style="color: gray"&gt;(&lt;/span&gt;&lt;span style="color: red"&gt;'PUBS'&lt;/span&gt;&lt;span style="color: gray"&gt;,&lt;/span&gt;&lt;br&gt;&lt;span style="color: red"&gt;'NORTHWIND'&lt;/span&gt;&lt;span style="color: gray"&gt;,&lt;/span&gt;&lt;br&gt;&lt;span style="color: red"&gt;'TEMPDB'&lt;/span&gt;&lt;span style="color: gray"&gt;,&lt;/span&gt;&lt;span style="color: red"&gt;'AdventureWorks'&lt;/span&gt;&lt;span style="color: gray"&gt;)&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&lt;span style="color: blue"&gt;while&lt;/span&gt; @IDENT &lt;span style="color: gray"&gt;is&lt;/span&gt;&lt;br&gt;&lt;span style="color: gray"&gt;not&lt;/span&gt;&lt;br&gt;&lt;span style="color: gray"&gt;null&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; color: blue; font-family: courier new"&gt;begin&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;SELECT&lt;/span&gt; @DBNAME &lt;span style="color: gray"&gt;=&lt;/span&gt; NAME &lt;span style="color: blue"&gt;FROM&lt;/span&gt;&lt;br&gt;&lt;span style="color: green"&gt;SYSDATABASES&lt;/span&gt;&lt;br&gt;&lt;span style="color: blue"&gt;WHERE&lt;/span&gt;&lt;br&gt;&lt;span style="color: blue"&gt;DBID&lt;/span&gt;&lt;br&gt;&lt;span style="color: gray"&gt;=&lt;/span&gt; @IDENT&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; color: green; font-family: courier new"&gt;/*Change disk location here as required*/&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;SELECT&lt;/span&gt; @SQL &lt;span style="color: gray"&gt;=&lt;/span&gt;&lt;br&gt;&lt;span style="color: red"&gt;'BACKUP DATABASE '&lt;/span&gt;&lt;span style="color: gray"&gt;+&lt;/span&gt;@DBNAME&lt;span style="color: gray"&gt;+&lt;/span&gt;&lt;span style="color: red"&gt;' TO DISK = ''C:\SQLBACKUP\Backup\'&lt;/span&gt;&lt;span style="color: gray"&gt;+&lt;/span&gt;@DBNAME&lt;span style="color: gray"&gt;+&lt;/span&gt;&lt;span style="color: red"&gt;'.BAK''WITH INIT'&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&lt;span style="color: blue"&gt;PRINT&lt;/span&gt; @SQL&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;EXEC &lt;/span&gt;&lt;span style="color: gray"&gt;(&lt;/span&gt;@SQL&lt;span style="color: gray"&gt;)&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;select&lt;/span&gt; @IDENT&lt;span style="color: gray"&gt;=&lt;/span&gt;&lt;span style="color: fuchsia"&gt;min&lt;/span&gt;&lt;span style="color: gray"&gt;(&lt;/span&gt;&lt;span style="color: blue"&gt;DBID&lt;/span&gt;&lt;span style="color: gray"&gt;)&lt;/span&gt;&lt;br&gt;&lt;span style="color: blue"&gt;from&lt;/span&gt;&lt;br&gt;&lt;span style="color: green"&gt;SYSDATABASES&lt;/span&gt;&lt;br&gt;&lt;span style="color: blue"&gt;WHERE&lt;/span&gt; [DBID] &lt;span style="color: gray"&gt;&amp;gt;&lt;/span&gt; 0 &lt;span style="color: gray"&gt;and&lt;/span&gt;&lt;br&gt;&lt;span style="color: blue"&gt;DBID&lt;/span&gt;&lt;span style="color: gray"&gt;&amp;gt;&lt;/span&gt;@IDENT &lt;span style="color: gray"&gt;AND&lt;/span&gt; NAME &lt;span style="color: gray"&gt;NOT&lt;/span&gt;&lt;br&gt;&lt;span style="color: gray"&gt;IN&lt;/span&gt;&lt;span style="color: blue"&gt;&lt;br&gt;&lt;/span&gt;&lt;span style="color: gray"&gt;(&lt;/span&gt;&lt;span style="color: red"&gt;'PUBS'&lt;/span&gt;&lt;span style="color: gray"&gt;,&lt;/span&gt;&lt;br&gt;&lt;span style="color: red"&gt;'NORTHWIND'&lt;/span&gt;&lt;span style="color: gray"&gt;,&lt;/span&gt;&lt;br&gt;&lt;span style="color: red"&gt;'TEMPDB'&lt;/span&gt;&lt;span style="color: gray"&gt;,&lt;/span&gt;&lt;span style="color: red"&gt;'AdventureWorks'&lt;/span&gt;&lt;span style="color: gray"&gt;)&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; color: blue; font-family: courier new"&gt;end&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt; &lt;p&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt; &lt;h1&gt;DOS Batch files to backup the databases&lt;br&gt;&lt;/h1&gt; &lt;div&gt; &lt;table style="border-collapse: collapse" border="0"&gt; &lt;colgroup&gt; &lt;col style="width: 616px"&gt;&lt;/colgroup&gt; &lt;tbody valign="top"&gt; &lt;tr&gt; &lt;td style="border-right: black 0.5pt solid; padding-right: 7px; border-top: black 0.5pt solid; padding-left: 7px; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid"&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;@echo off&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;c:&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;if not exist c:\SQLBackup\Logs MD C:\SQLbackup\Logs&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;if not exist c:\SQLBackup\Backup MD C:\SQLbackup\Backup&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;cd c:\SQLBackup&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;Echo Backup Started &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;Date /T &amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;Time /T &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;Echo.&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;echo *************************************************************************** &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;isql -S (local)\Express -E -i c:\sqlbackup\backup.sql &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;echo *************************************************************************** &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;echo.&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;Date /T &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;Time /T &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;echo Backup Finished &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;echo.&lt;br&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #a6a6a6"&gt;echo *************************************************************************** &amp;gt;&amp;gt; c:\SQLBackup\Logs\SQLBAckup.log&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt; &lt;p&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Folders will look like,&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_w7ME_yT4MGY/TAGqi_899NI/AAAAAAAAAuM/5hB2vnv6w2I/s1600-h/image%5B2%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="175" alt="image" src="http://lh4.ggpht.com/_w7ME_yT4MGY/TAGqjlAI7eI/AAAAAAAAAuQ/uMzX4fPEGs0/image_thumb.png?imgmax=800" width="244" border="0"&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;Schedule it on Windows Task Scheduler&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_w7ME_yT4MGY/TAGqkPP15NI/AAAAAAAAAuU/6rb4_DciGqU/s1600-h/image%5B5%5D.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="244" alt="image" src="http://lh5.ggpht.com/_w7ME_yT4MGY/TAGqkh2ZwgI/AAAAAAAAAuY/RM3nHqaweKI/image_thumb%5B1%5D.png?imgmax=800" width="222" border="0"&gt;&lt;/a&gt; &lt;br&gt;&lt;/p&gt; &lt;p&gt;That's it the SQL Server 2005 / 2008 Express Edition database backup is automated now!&lt;/p&gt;&lt;/span&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7986216186588094312?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7986216186588094312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7986216186588094312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7986216186588094312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7986216186588094312'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2010/05/sql-server-2005-2008-express-edition.html' title='SQL Server 2005 /2008 Express Edition Backup automation'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_w7ME_yT4MGY/TAGqjlAI7eI/AAAAAAAAAuQ/uMzX4fPEGs0/s72-c/image_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6730002725878074456</id><published>2009-12-13T06:50:00.000-08:00</published><updated>2009-12-13T06:52:06.716-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>SQL Server  Lever collation change</title><content type='html'>1. Backup all databases.(both system and User) &lt;br /&gt;&lt;br /&gt;2. If applicable, backup DTS packages, Jobs, SSIS packages, mailing profiles or other objects installed by the application.&lt;br /&gt;&lt;br /&gt;3. Script/take screenshot of logins with level of access on server level as well as the database level, user objects for example - tables, functions, types and stored procs, extended stored procs, if any on model or master db.&lt;br /&gt;&lt;br /&gt;4. Detach all the user databases.&lt;br /&gt;&lt;br /&gt;5. Rebuild the master database specifying the new collation in the SQLCOLLATION property of the setup command. For example: &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;start /wait setup.exe /qb INSTANCENAME=MSSQLSERVER REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=test SQLCOLLATION=SQL_Latin1_General_CP1_CI_AI &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Check the tempdb collation and it should be ?Latin1_General_CI_AS? create users with help of screenshot/Script and restore user objects from step 3. Run scripts for functions and types if any. &lt;br /&gt;&lt;br /&gt;7. Attach user databases from step 4 / Restore all the databases from the backup from step 1 and all the objects from the backup taken in step1. Refer client mail for further clarifications.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6730002725878074456?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6730002725878074456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6730002725878074456' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6730002725878074456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6730002725878074456'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/12/sql-server-lever-collation-change.html' title='SQL Server  Lever collation change'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1234591597569112468</id><published>2009-11-25T15:28:00.000-08:00</published><updated>2009-11-25T15:33:05.252-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>Error message when you open SQL Server Configuration Manager in SQL Server 2008: "Cannot connect to WMI provider. You do not have permission or the se</title><content type='html'>While opening of  SQL Server Configuration Manager if you get error message of&lt;br /&gt;&lt;br /&gt;"Cannot connect to WMI provider. You do not have permission or the server is unreachable"&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Cause:&lt;/span&gt;&lt;br /&gt;This problem occurs because the WMI provider is removed when you uninstall an instance of SQL Server 2008. The 32-bit instance and the 64-bit instance of SQL Server 2008 share the same WMI configuration file. This file is located in the %programfiles(x86)% folder.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Workaround:&lt;/span&gt;&lt;br /&gt;To work around this problem, type the following command, and then press ENTER:&lt;br /&gt;mofcomp "%programfiles(x86)%\Microsoft\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"&lt;br /&gt;&lt;br /&gt;Refer the &lt;a href="http://support.microsoft.com/kb/956013"&gt;KB# 956013&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1234591597569112468?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1234591597569112468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1234591597569112468' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1234591597569112468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1234591597569112468'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/11/error-message-when-you-open-sql-server.html' title='Error message when you open SQL Server Configuration Manager in SQL Server 2008: &quot;Cannot connect to WMI provider. You do not have permission or the se'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7258395132103042069</id><published>2009-11-24T16:37:00.000-08:00</published><updated>2009-11-24T16:55:54.869-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>The SQL Server Service Broker or Database Mirroring transport is disabled or not configured</title><content type='html'>MOM raised alert of "The SQL Server Service Broker or Database Mirroring transport is disabled or not configured".&lt;br /&gt;&lt;br /&gt;The Service Broker is enabled by default in SQL Server 2005.  Service Broker is enabled by default when a new database is created.  Please try to run the following query to see the Broker option on a database.&lt;br /&gt;&lt;br /&gt;SELECT name, is_broker_enabled FROM sys.databases;&lt;br /&gt;&lt;br /&gt;This alert is triggered by event 9666 in the Application Event log for the OpsMgr database server.However, this event is always generated when you restart SQL because neither the Service Broker nor Database Mirroring are enabled for the Master or&lt;br /&gt;Model databases. "SELECT is_broker_enabled FROM sys.databases" identifies&lt;br /&gt;that the Service Broker is enabled for all other DBs. The alert is a bit counter productive if the rule is there to try to identify which databases are missing this option that actually need it; e.g. the OpsMgr db.Currently my only option is to disable the rule.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7258395132103042069?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7258395132103042069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7258395132103042069' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7258395132103042069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7258395132103042069'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/11/sql-server-service-broker-or-database.html' title='The SQL Server Service Broker or Database Mirroring transport is disabled or not configured'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6138485869632361450</id><published>2009-11-23T20:40:00.000-08:00</published><updated>2009-11-23T20:46:39.130-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>How to Script Database Schema</title><content type='html'>1. On the database schema to be scripted out, right click&lt;br /&gt;2. Select Tasks --&gt; Generate Scripts&lt;br /&gt;3. Select all the objects in the selected databases&lt;br /&gt;4. Select the appropriate General &amp; Table Options&lt;br /&gt;5. Select the output format&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6138485869632361450?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6138485869632361450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6138485869632361450' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6138485869632361450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6138485869632361450'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/11/how-to-script-database-schema.html' title='How to Script Database Schema'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4994650955710634223</id><published>2009-11-19T22:59:00.000-08:00</published><updated>2009-11-20T00:07:38.756-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Connection'/><title type='text'>Testing a Connection from Client to SQL Server using UDL</title><content type='html'>A connection from client to SQL Server can easily be checked with the help of a .udl file. This is also helpful for building a connection string.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 1 - Create a .udl file&lt;/span&gt;&lt;br /&gt;Create a text file and name it for example test.udl&lt;br /&gt;Double click on test.udl to open the connection dialog.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 2 - Choose the type of connection&lt;/span&gt;&lt;br /&gt;Go to the first tab “Provider”&lt;br /&gt;Choose “Microsoft OLE DB Provider for SQL Server” or any other provider according to your needs.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 3 - Set up connection properties&lt;/span&gt;&lt;br /&gt;Go to the second tab “Connection”, choose the server, enter username/password and choose a database from the drop down list.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 4 - Connection String&lt;/span&gt;&lt;br /&gt;Once you click on “OK” a connection string based on your connection settings is written to test.udl. After you open test.udl you will find a connection string like this.&lt;br /&gt;&lt;br /&gt;[oledb]; Everything after this line is an OLE DB initstringProvider=SQLOLEDB.1;Password=wrf%32g;Persist Security Info=True;User ID=siva;Initial Catalog=msdb;Data Source=SQLTEST&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4994650955710634223?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4994650955710634223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4994650955710634223' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4994650955710634223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4994650955710634223'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/11/testing-connection-from-client-to-sql.html' title='Testing a Connection from Client to SQL Server using UDL'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4591728048691576567</id><published>2009-10-11T18:07:00.000-07:00</published><updated>2009-10-11T18:09:46.386-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>CPU usage reaching 100% with SP3 on SQL Server 2005</title><content type='html'>Symptom:&lt;br /&gt;You install an instance of Microsoft SQL Server 2005 on a computer that has many processors. You upgrade to SQL Server 2005 Service Pack 3 (SP3) or to Microsoft SQL Server 2008. You run a query that uses the Like operator in the WHERE clause or that uses a string comparison function, such as the CharIndex() function. When you run the query many times on multiple connections at the same time, the CPU usage reaches 100 percent, and the server performance decreases significantly.&lt;br /&gt;&lt;br /&gt;Then refer the Microsoft &lt;a href="http://support.microsoft.com/kb/970823"&gt;article and apply the cumulative update&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4591728048691576567?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4591728048691576567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4591728048691576567' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4591728048691576567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4591728048691576567'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/10/cpu-usage-reaching-100-with-sp3-on-sql.html' title='CPU usage reaching 100% with SP3 on SQL Server 2005'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7562628680354018365</id><published>2009-10-11T17:58:00.000-07:00</published><updated>2009-10-11T18:04:18.599-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SAC'/><title type='text'>No Surface Area Configuration (SAC) Tool in SQL Server 2008</title><content type='html'>In SQL Server 2008, Surface Area Configuration (SAC) Tool has been added to the deprecated feature list.&lt;br /&gt;&lt;br /&gt;So how to do the functionality of SAC configuring Service, Connection and features?&lt;br /&gt;&lt;br /&gt;1. For Instance and Database Engine Features:&lt;br /&gt;  Select &lt;span style="font-weight:bold;"&gt;Facets&lt;/span&gt; on Properties of Instance / Database on SQL Server Management Studio.&lt;br /&gt;&lt;br /&gt;2.For Connections, Protocols and StartUp options:&lt;br /&gt;  Use SQL Server Configuration Manager&lt;br /&gt;&lt;br /&gt;3.SSAS Features:&lt;br /&gt;  It can be done at Property Settings&lt;br /&gt;&lt;br /&gt;4.SSRS Features&lt;br /&gt;   It can be done by editing the RSReportServer.config file or by using the facets feature&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7562628680354018365?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7562628680354018365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7562628680354018365' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7562628680354018365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7562628680354018365'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/10/no-surface-area-configuration-sac-tool.html' title='No Surface Area Configuration (SAC) Tool in SQL Server 2008'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2327166249160472300</id><published>2009-09-26T00:14:00.001-07:00</published><updated>2009-09-26T00:22:45.940-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Feature Pack'/><title type='text'>Feature Pack for Microsoft SQL Server 2005 and SQL Server 2008</title><content type='html'>Please have a look on the Feature pack of SQL Server 2005 and SQL Server 2008.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&amp;displaylang=en"&gt;SQL Server 2005 &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=228DE03F-3B5A-428A-923F-58A033D316E1&amp;displaylang=en"&gt;SQL Server 2008&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2327166249160472300?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2327166249160472300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2327166249160472300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2327166249160472300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2327166249160472300'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/09/feature-pack-for-microsoft-sql-server.html' title='Feature Pack for Microsoft SQL Server 2005 and SQL Server 2008'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2174053815256641105</id><published>2009-09-26T00:11:00.000-07:00</published><updated>2009-09-26T00:13:27.177-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>SQL Agent fails on SQL Server 2005</title><content type='html'>The error log from starting sqlagent is the following: &lt;br /&gt;[298] SQLServer Error: 21, Encryption not supported on the client. [SQLSTATE 08001] &lt;br /&gt;[298] SQLServer Error: 21, Client unable to establish connection [SQLSTATE 08001] &lt;br /&gt;[165] ODBC Error: 0, An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. [SQLSTATE 08001] &lt;br /&gt;[000] Unable to connect to server '&lt;servername&gt;\SQL2005'; SQLServerAgent cannot start &lt;br /&gt;[298] SQLServer Error: 21, Encryption not supported on the client. [SQLSTATE 08001] &lt;br /&gt;[298] SQLServer Error: 21, Client unable to establish connection [SQLSTATE 08001] &lt;br /&gt;&lt;strong&gt;[165] ODBC Error: 0, An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. [SQLSTATE 08001] &lt;/strong&gt;&lt;br /&gt;[382] Logon to server '&lt;servername&gt;\SQL2005' failed (DisableAgentXPs) &lt;br /&gt;[098] SQLServerAgent terminated (normally) &lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;-----------&lt;br /&gt;&lt;br /&gt;Client side setting would have messed up. Please go to SQL Server Configuration Manager and click properties for "SQL Native Client Configuration", if correct, you should be able to see two flags, one is "force client encryption", the other one is "trust server certificate" and value were set "yes" or "no". &lt;br /&gt;&lt;br /&gt;If you see "No properties are available", that means your client registry key was messed up and leads to the connection error . To fix this, suggest reinstall SNAC(SQL Native Client). Just run the sqlncli.msi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2174053815256641105?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2174053815256641105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2174053815256641105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2174053815256641105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2174053815256641105'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/09/sql-agent-fails-on-sql-server-2005.html' title='SQL Agent fails on SQL Server 2005'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7339850457910740623</id><published>2009-09-21T01:58:00.000-07:00</published><updated>2009-09-21T01:59:49.605-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server vs Oracle'/><title type='text'>Microsoft SQL Server 2008 advantages over Oracle 11g</title><content type='html'>SQL Server compared to Oracle&lt;br /&gt;&lt;br /&gt;Microsoft SQL Server 2008 advantages over Oracle 11g&lt;br /&gt;&lt;br /&gt;    *      Better Performance and Scalability:  SQL Data Services, Filtered Indexes, Advanced Sparse Columns, Column Prefix Compression&lt;br /&gt;    *      Better Security: Module Signing using Certificate, and integrated updates and patching&lt;br /&gt;    *      Better Business Intelligence (BI) tools: Optimized cube designers, on-demand processing and instance-based rendering, optimized integration with the 2007 Microsoft Office system&lt;br /&gt;&lt;br /&gt;Find more on &lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/compare-oracle.aspx"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7339850457910740623?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7339850457910740623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7339850457910740623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7339850457910740623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7339850457910740623'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/09/microsoft-sql-server-2008-advantages.html' title='Microsoft SQL Server 2008 advantages over Oracle 11g'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1146169686976112048</id><published>2009-09-17T10:16:00.000-07:00</published><updated>2009-09-17T10:19:12.133-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Exam Voucher'/><title type='text'>Get up to 25% off Select Microsoft Certification Exams</title><content type='html'>Get Your Voucher Code for your Discounted Exams&lt;br /&gt;&lt;br /&gt;Find the exam of your choosing from the lists below and select "Get Voucher," complete the registration form and your discounted voucher code will be emailed to you. Once you have obtained your code, plan and schedule your next exam at http://www.prometric.com/Microsoft/default.htm.&lt;br /&gt;&lt;a href="http://www.prometric.com/microsoft/careeroffer.htm"&gt;&lt;br /&gt;http://www.prometric.com/microsoft/careeroffer.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;    * Step 1: Using the voucher number, schedule and pay for your initial exam via Prometrics's web site&lt;br /&gt;          o You will need to have your voucher number available during the registration process.&lt;br /&gt;    * Step 2: Take your exam. &lt;br /&gt;&lt;br /&gt;Candidates must register, schedule and take their discounted exams by December 31&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1146169686976112048?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1146169686976112048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1146169686976112048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1146169686976112048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1146169686976112048'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/09/get-up-to-25-off-select-microsoft.html' title='Get up to 25% off Select Microsoft Certification Exams'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4915588406556196653</id><published>2009-09-16T22:13:00.000-07:00</published><updated>2009-09-16T22:22:09.977-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TCP/IP'/><title type='text'>How to reset  Internel Protocol TCP / IP</title><content type='html'>One of the components of the Internet connection on your computer is a built-in set of instructions called TCP/IP. TCP/IP can sometimes become damaged or corrupted. If you cannot connect to the Internet and you have tried all other methods to resolve the problem, TCP/IP might be causing it.&lt;br /&gt;&lt;br /&gt;Use the command below:&lt;br /&gt;netsh int ip reset c:\resetlog.txt&lt;br /&gt;&lt;br /&gt;Reference : &lt;a href="http://support.microsoft.com/kb/299357"&gt;How to reset Internet Protocol (TCP/IP)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4915588406556196653?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4915588406556196653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4915588406556196653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4915588406556196653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4915588406556196653'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/09/how-to-reset-internel-protocol-tcp-ip.html' title='How to reset  Internel Protocol TCP / IP'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2824084109754855222</id><published>2009-09-14T04:26:00.000-07:00</published><updated>2009-09-14T04:30:41.924-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VPN'/><title type='text'>You may be unable to use a Cisco VPN client and IPsec at the same time in Windows XP</title><content type='html'>You may be unable to use a Cisco VPN client and IPsec at the same time in Windows XP or in Windows 2000 or in Windows Server 2003&lt;br /&gt;&lt;br /&gt;You may be unable to use the following components at the same time in Microsoft Windows XP, in Microsoft Windows 2000, or in Microsoft Windows Server 2003 Standard Edition with Service Pack 1 (SP1):&lt;br /&gt;&lt;br /&gt;    * A Cisco virtual private network (VPN) client&lt;br /&gt;    * The Internet Protocol security (IPsec) implementation that is built into Windows XP, Windows 2000, and Windows Server 2003 &lt;br /&gt;&lt;br /&gt;In this situation, you cannot use a VPN tunnel to access resources on an enterprise network on which Domain and Server Isolation policies are deployed. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/928310"&gt;Refer this here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2824084109754855222?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2824084109754855222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2824084109754855222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2824084109754855222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2824084109754855222'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/09/you-may-be-unable-to-use-cisco-vpn.html' title='You may be unable to use a Cisco VPN client and IPsec at the same time in Windows XP'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6163177839964208518</id><published>2009-05-14T10:21:00.000-07:00</published><updated>2009-05-14T10:23:17.829-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><title type='text'>Do we need SSIS to create Maintenance Plan</title><content type='html'>Before SQL Server 2005 SP2 was released Maintenance plans were integreated with SSIS but  after SP2 Microsoft has changed that and we do not need SSIS to be installed to run maintenance jobs. And it carried over to SQL Server 2008 too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6163177839964208518?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6163177839964208518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6163177839964208518' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6163177839964208518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6163177839964208518'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/05/do-we-need-ssis-to-create-maintenance.html' title='Do we need SSIS to create Maintenance Plan'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2420931712793315206</id><published>2009-05-04T10:50:00.000-07:00</published><updated>2009-05-04T10:55:33.840-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Query'/><title type='text'>How to change the owner of a maintenance plan</title><content type='html'>Scenario 1:&lt;br /&gt;-------------&lt;br /&gt;One of our members of staff had left and we had the usual case of a few jobs failing with:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;"Unable to determine if the owner (DOMAIN\xxx) of job &lt;JOB_Name&gt; has server access (reason: error code 0x534. [SQLSTATE 42000] (Error 15404))."&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;Scenario 2:&lt;br /&gt;------------&lt;br /&gt;A job for running a nightly transaction log maintenance plan was created and owned by an account that was a member of the Domain Admins group. The account was subsequently removed from the Domain Admins group and the job failed (owner did not have server access), as expected.&lt;br /&gt;&lt;br /&gt;The job owner was changed to another account that is a member of the Domain Admins group, and the job ran successfully for seven days. On the eighth day, another user, also a member of Domain Admins group, edited the maintenance plan to add a database. After the maintenance plan was saved, job ownership reverted to the original job creator (no longer a Domain Admin) and the job failed on its next scheduled run.&lt;br /&gt;&lt;br /&gt;/*Here's how to change the owner of a maintenance plan to dbo in SQL Server 2005*/&lt;br /&gt;--to find the name and owner of the maintenance plan&lt;br /&gt;--select * from msdb.dbo.sysdtspackages90&lt;br /&gt;--to find the sid you want to use for the new owner&lt;br /&gt;--select * from sysusers&lt;br /&gt;&lt;br /&gt;UPDATE&lt;br /&gt;    [msdb].[dbo].[sysdtspackages90]&lt;br /&gt;SET&lt;br /&gt;    [ownersid] = 0x01&lt;br /&gt;WHERE&lt;br /&gt;    [name] = 'MaintenancePlan'&lt;br /&gt;&lt;br /&gt;For SQL Server 2008:&lt;br /&gt;&lt;br /&gt;update msdb.dbo.sysssispackages&lt;br /&gt;set [ownersid] = suser_sid('sa')&lt;br /&gt;where [name] = 'MaintenancePlan'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2420931712793315206?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2420931712793315206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2420931712793315206' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2420931712793315206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2420931712793315206'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/05/how-to-change-owner-of-maintenance-plan.html' title='How to change the owner of a maintenance plan'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8047823236579200366</id><published>2009-05-03T10:21:00.000-07:00</published><updated>2009-05-03T10:23:15.693-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Service Account'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2000'/><title type='text'>SQL Server 2000 Service account privileges</title><content type='html'>For SQL Server 2000, if you do not want the SQL Server or the SQL Server Agent startup account to be a member of the Local Administrators Group, then the startup account for the MSSQLServer service and the SQLServerAgent service (either a local Windows NT account, or a domain Windows NT account) must have these user rights:&lt;br /&gt;&lt;br /&gt;    * Act as Part of the Operating System = SeTcbPrivilege&lt;br /&gt;    * Bypass Traverse Checking = SeChangeNotify&lt;br /&gt;    * Lock Pages In Memory = SeLockMemory&lt;br /&gt;    * Log on as a Batch Job = SeBatchLogonRight&lt;br /&gt;    * Log on as a Service = SeServiceLogonRight&lt;br /&gt;    * Replace a Process Level Token = SeAssignPrimaryTokenPrivilege&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8047823236579200366?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8047823236579200366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8047823236579200366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8047823236579200366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8047823236579200366'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/05/sql-server-2000-service-account.html' title='SQL Server 2000 Service account privileges'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1206268099520421719</id><published>2009-04-27T21:15:00.000-07:00</published><updated>2009-04-27T21:16:42.469-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Cluster'/><title type='text'>SQL 2005 Standard Edition on Cluster</title><content type='html'>SQL Server 2005 Standard Edition will support two-node MSCS,&lt;br /&gt;but  Windows 2003 Server Standard won't:&lt;br /&gt;&lt;br /&gt;http://technet.microsoft.com/en-us/library/cc758523.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1206268099520421719?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1206268099520421719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1206268099520421719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1206268099520421719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1206268099520421719'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/04/sql-2005-standard-edition-on-cluster.html' title='SQL 2005 Standard Edition on Cluster'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7394112333683329793</id><published>2009-04-10T07:39:00.000-07:00</published><updated>2009-04-10T07:46:58.964-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Safe'/><category scheme='http://www.blogger.com/atom/ns#' term='Idera'/><title type='text'>Idera SQL Safe Backup Script</title><content type='html'>DECLARE @counter  INT&lt;br /&gt;DECLARE @maxCount INT&lt;br /&gt;DECLARE @result   INT&lt;br /&gt;DECLARE @failed   INT&lt;br /&gt;DECLARE @dbname NVARCHAR(128)&lt;br /&gt;DECLARE @backupSetName NVARCHAR(256)&lt;br /&gt;DECLARE @backupSetDescription NVARCHAR(512)&lt;br /&gt;&lt;br /&gt;SET @counter  = 1&lt;br /&gt;SET @maxCount = 1&lt;br /&gt;SET @result   = 0&lt;br /&gt;SET @failed   = 0&lt;br /&gt;&lt;br /&gt;-- Create the temporary database table&lt;br /&gt;IF object_id('tempdb..#databases') IS NOT NULL DROP TABLE #databases&lt;br /&gt;&lt;br /&gt;CREATE TABLE #databases&lt;br /&gt;(&lt;br /&gt; id      INT IDENTITY,&lt;br /&gt; databaseName   NVARCHAR(128),&lt;br /&gt; backupSetName   NVARCHAR(256),&lt;br /&gt; backupSetDescription NVARCHAR(512)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;-- Insert the databases to be backed up&lt;br /&gt;INSERT INTO #databases VALUES ('User_DB1', 'Full backup for policy Backup_USER_DB_Full(Noencriptions)', '')&lt;br /&gt;INSERT INTO #databases VALUES ('User_DB2', 'Full backup for policy Backup_USER_DB_Full(Noencriptions)', '') &lt;br /&gt;SELECT @maxCount = MAX(id) FROM #databases&lt;br /&gt;&lt;br /&gt;-- Loop through and backup each database&lt;br /&gt;WHILE @counter &lt;= @maxCount&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt; SELECT @dbname = [databaseName], @backupSetName = [backupSetName], @backupSetDescription = [backupSetDescription] FROM #databases WHERE id = @counter&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;EXEC @result = [master].[dbo].[xp_ss_backup] @database = @dbname,@filename = 'D:\SQLData\MSSQL\BACKUP\IderaSQLBackups\USER_DB_BACKUPS\FULL\%instance%_%database%_%timestamp%.safe',@delete = '1days',@backupname = @backupSetName,@desc = @backupSetDescription,@verify = 1,@compressionlevel = 'ispeed',@threads = 3&lt;/strong&gt;&lt;br /&gt; IF (@result != 0) SET @failed = 1&lt;br /&gt;&lt;br /&gt; SET @counter = @counter + 1&lt;br /&gt;&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;-- If one or more failures occurred, signal an error&lt;br /&gt;IF (@failed != 0) RAISERROR('One or more backups failed to complete.', 16, 1)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7394112333683329793?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7394112333683329793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7394112333683329793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7394112333683329793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7394112333683329793'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/04/idera-sql-safe-backup-script.html' title='Idera SQL Safe Backup Script'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-50232767290638844</id><published>2009-04-08T08:55:00.000-07:00</published><updated>2009-04-08T08:57:11.908-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><title type='text'>SQL Server 2008 Service Pack 1 released</title><content type='html'>&lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19"&gt;SQL Server 2008 Service Pack 1 (SP1) is now available at the following URL&lt;/a&gt; : &lt;br /&gt; You can use these packages to upgrade any SQL Server 2008 edition.&lt;br /&gt;&lt;br /&gt;SQL Server 2008 SP1 is primarily a roll-up of previous cumulative updates, quick fix engineering updates and minor fixes made in response to requests reported through the SQL Server community. While there are no new features in this service pack, customers running SQL Server 2008 should download and install SP1 to take advantage of the fixes which increase supportability and stability of SQL Server 2008.&lt;br /&gt;&lt;br /&gt;With this service pack, Microsoft has made investments to ease deployment and make management of service packs more efficient. Key improvements in SP1 include Slipstream, Service Pack Uninstall and Report Builder 2.0 click-once deployment.&lt;br /&gt;• &lt;span style="font-weight:bold;"&gt;Slipstream&lt;/span&gt; allows administrators to install SQL Server 2008 and Service Pack 1 in a single instance. This decreases the total time for an installation, including a fewer number of reboots thereby increasing productivity and deployment availability.&lt;br /&gt;• &lt;span style="font-weight:bold;"&gt;Service Pack Uninstall&lt;/span&gt; allows administrators to uninstall the service pack separately from the database release.  This feature also improves DBA productivity, reduces the cost of deployment and improves overall supportability&lt;br /&gt;• &lt;span style="font-weight:bold;"&gt;Report Builder 2.0 &lt;/span&gt;Click Once improves the existing SQL Server end-user report authoring application by easing deployment to business users&lt;br /&gt;&lt;br /&gt;For more information about SQL Server 2008 Service Pack 1, please review the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=147331"&gt;Release Notes : &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-50232767290638844?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/50232767290638844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=50232767290638844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/50232767290638844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/50232767290638844'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/04/sql-server-2008-service-pack-1-released.html' title='SQL Server 2008 Service Pack 1 released'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5215927137356037119</id><published>2009-03-15T01:07:00.001-07:00</published><updated>2009-03-15T01:07:01.568-07:00</updated><title type='text'>Cluster Diagnostics and Verification Tool (ClusDiag)</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;Cluster Diagnostics and Verification Tool (ClusDiag) is a graphical tool that performs diagnostics tests on a pre-production server cluster and creates log files to help system administrators identify configuration issues prior to deployment in a production environment.&lt;br/&gt;&lt;br/&gt;&lt;a href='http://www.microsoft.com/downloads/details.aspx?FamilyID=b898f587-88c3-4602-84de-b9bc63f02825&amp;amp;displaylang=en'&gt;Download details: Cluster Diagnostics and Verification Tool (ClusDiag.exe)&lt;/a&gt;&lt;br/&gt;&lt;blockquote/&gt;&lt;br/&gt;&lt;br/&gt;&lt;div class='zemanta-pixie'&gt;&lt;img src='http://img.zemanta.com/pixy.gif?x-id=8671cfc8-668d-4868-8e6c-007897108bee' class='zemanta-pixie-img'/&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5215927137356037119?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5215927137356037119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5215927137356037119' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5215927137356037119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5215927137356037119'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/03/cluster-diagnostics-and-verification.html' title='Cluster Diagnostics and Verification Tool (ClusDiag)'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2935886227711284028</id><published>2009-03-13T19:06:00.000-07:00</published><updated>2009-03-13T19:24:18.763-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>SQL 2005 SP2 templog is set to restricted and will not go back to unrestricted</title><content type='html'>It is only a presentation issue. &lt;br /&gt;&lt;br /&gt;There's no such thing as "unlimited" in the end, since the max theoretical size&lt;br /&gt;• for a data file is 32TB and &lt;br /&gt;• for a log file is 2TB. 2,097,152 MB = 2 TB.&lt;br /&gt; I.e., the value you see is the maximum theoretical size.&lt;br /&gt;&lt;br /&gt;Although file size is displaying as "restricted", the MAXSIZE is indeed 2TB (2,097,152MB).&lt;br /&gt; So, within the confines of capacity limitations, it is unlimited so to speak.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://technet.microsoft.com/hi-in/library/cc966545(en-us).aspx"&gt;Working with tempdb in SQL Server 2005 &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2935886227711284028?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2935886227711284028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2935886227711284028' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2935886227711284028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2935886227711284028'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/03/sql-2005-sp2-templog-is-set-to.html' title='SQL 2005 SP2 templog is set to restricted and will not go back to unrestricted'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-1305226782860792091</id><published>2009-03-01T19:52:00.000-08:00</published><updated>2009-03-01T20:05:44.536-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2000'/><title type='text'>SQLDebugger account</title><content type='html'>&lt;a href="http://support.microsoft.com/kb/818374?"&gt;SQL Server 2000 SP3 Creates a SQLDebugger Windows User Account&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/318632/EN-US/"&gt;Removing of the SQLDebugger account in SQL 2000&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-1305226782860792091?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/1305226782860792091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=1305226782860792091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1305226782860792091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/1305226782860792091'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/03/sqldebugger-account.html' title='SQLDebugger account'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6394777582436185168</id><published>2009-02-14T20:07:00.000-08:00</published><updated>2009-02-14T20:09:30.243-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Profiler'/><title type='text'>Automate SQL Server Profiler Trace</title><content type='html'>-- To create trace&lt;br /&gt;exec @rc = &lt;span style="font-weight:bold;"&gt;sp_trace_create &lt;/span&gt;@TraceID output, 2, N'N:\SQLTrace\15FebTrace', @maxfilesize, NULL &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;## Note Option 2 here&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- To set trace status&lt;br /&gt;&lt;br /&gt;exec &lt;span style="font-weight:bold;"&gt;sp_trace_setstatus&lt;/span&gt; @traceid, @status&lt;br /&gt;&lt;br /&gt;where @status = 0 Stopped&lt;br /&gt;  1 Running &lt;br /&gt;  2 Closed, cleaned from server&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;To get the Traces running on the server&lt;br /&gt;&lt;br /&gt;select * from &lt;span style="font-weight:bold;"&gt;::fn_trace_getinfo(0)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- &lt;br /&gt;To read trace content into a table&lt;br /&gt;select * from &lt;span style="font-weight:bold;"&gt;::fn_trace_gettable&lt;/span&gt;('N:\SQLTrace\15FebTrace.trc',default)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6394777582436185168?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6394777582436185168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6394777582436185168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6394777582436185168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6394777582436185168'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/02/automate-sql-server-profiler-trace.html' title='Automate SQL Server Profiler Trace'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-6528719145322723567</id><published>2009-02-05T04:54:00.001-08:00</published><updated>2009-03-03T01:35:44.322-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shortcutkey'/><title type='text'>Terminal Server and Citrix Keyboard Shortcuts</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;a href='http://www.sessioncomputing.com/keyboard.htm'&gt;Terminal Server and Citrix Keyboard Shortcuts&lt;/a&gt;&lt;br/&gt;&lt;blockquote&gt;If working in an RDP or ICA Session the following are keyboard shortcut key combinations that map to the native Windows shortcut keystrokes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CTRL+F3&lt;/span&gt; Task Manager&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CTRL+F2 &lt;/span&gt; Start Menu&lt;br /&gt;&lt;br /&gt;&lt;br/&gt;  &lt;br/&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-6528719145322723567?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/6528719145322723567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=6528719145322723567' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6528719145322723567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/6528719145322723567'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/02/terminal-server-and-citrix-keyboard.html' title='Terminal Server and Citrix Keyboard Shortcuts'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4494284463911618424</id><published>2009-02-01T03:34:00.000-08:00</published><updated>2009-02-01T03:54:14.960-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Profiler'/><title type='text'>SQL Profiler buffers the trace data in temporary files on the client machine</title><content type='html'>SQL Profiler buffers the trace data in temporary files on the client machine, and if the drive on which these temporary files reside doesn't have ample free space, a Profiler trace (e.g. with the standard trace template) could deplete the drive of the free space rather quickly and end up disabling the trace.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;System is low on disk space on drive 'C'. All SQL Server profiler functions are temporarily disabled.&lt;br /&gt;&lt;br /&gt;The temporary files to buffer the profiler trace data were in directory &lt;span style="font-weight:bold;"&gt;C:\Documents and Settings\Siva\local settings\Temp\1&lt;/span&gt;, and the names of the temporary files had this pattern: &lt;span style="font-weight:bold;"&gt;Prf*.tmp&lt;/span&gt;. Upon exiting SQL Profiler, these temporary files would be removed automatically.&lt;br /&gt;&lt;br /&gt;Work around:&lt;br /&gt;&lt;br /&gt;To work around this problem, do not use SQL Profiler to perform a &lt;span style="font-weight:bold;"&gt;client-side trace&lt;/span&gt; of the events in the instance of SQL Server. Instead, use system stored procedures to perform a server-side trace of the events.&lt;br /&gt;&lt;br /&gt;You can use the following system stored procedures:&lt;br /&gt;&lt;br /&gt;    * sp_trace_create&lt;br /&gt;    * sp_trace_setevent&lt;br /&gt;    * sp_trace_setfilter&lt;br /&gt;    * sp_trace_setstatus&lt;br /&gt;&lt;br /&gt;For more information about these system stored procedures, search for the stored procedures in SQL Server 2000 Books Online or in SQL Server 2005 Books Online.&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/929728"&gt;An instance of SQL Server performs slowly when you use SQL Profiler to perform a client-side trace of the events in the instance&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4494284463911618424?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4494284463911618424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4494284463911618424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4494284463911618424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4494284463911618424'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/02/sql-profiler-buffers-trace-data-in.html' title='SQL Profiler buffers the trace data in temporary files on the client machine'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8304967501375037038</id><published>2009-01-31T03:51:00.000-08:00</published><updated>2009-01-31T04:10:58.309-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Reporting Service'/><title type='text'>Error while setting reporting service and share point exclusion path</title><content type='html'>Encountered the error while installing SQL 2005 Reporting Service "Error while setting reporting service and share point exclusion path"&lt;br /&gt;&lt;br /&gt;Product         : SQL Server 2005 Reporting Services&lt;br /&gt;&lt;br /&gt;Error           : The setup has encountered an unexpected error while Setting reporting service and share point exclusion path. The error is: Fatal error during installation.&lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;&lt;a href="http://support.microsoft.com/?kbid=920803"&gt;KB ID # 920803&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8304967501375037038?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8304967501375037038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8304967501375037038' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8304967501375037038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8304967501375037038'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/01/error-while-setting-reporting-service.html' title='Error while setting reporting service and share point exclusion path'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4038558773762230353</id><published>2009-01-22T08:39:00.001-08:00</published><updated>2009-01-22T08:39:59.757-08:00</updated><title type='text'>Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.)</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;small&gt;&lt;br/&gt;&lt;/small&gt;&lt;blockquote&gt;&lt;small&gt;System.Data.SqlClient.SqlError: Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.). (Microsoft.SqlServer.Smo)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Then, I did a Check Name for "SQL" and added the following two SQL accounts from the list:&lt;br/&gt;&lt;br/&gt;1)  SQLServer2005MSSQLUser$&amp;lt;machine name&amp;gt;$MSSQLSERVER&lt;br/&gt;&lt;br/&gt;2)  SQL&lt;/small&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4038558773762230353?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4038558773762230353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4038558773762230353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4038558773762230353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4038558773762230353'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/01/cannot-open-backup-device-operating.html' title='Cannot open backup device &amp;#39;F:\foldername&amp;#39;. Operating system error 5(Access is denied.)'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-7439197666560443388</id><published>2009-01-19T02:05:00.001-08:00</published><updated>2009-01-19T02:06:02.681-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TNG'/><category scheme='http://www.blogger.com/atom/ns#' term='Unicenter'/><title type='text'>Unicenter command to check the service</title><content type='html'>Unicenter command to check the service is installed on running on a server&lt;br /&gt;&lt;br /&gt;awservices status&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-7439197666560443388?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/7439197666560443388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=7439197666560443388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7439197666560443388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/7439197666560443388'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/01/unicenter-command-to-check-service.html' title='Unicenter command to check the service'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-2227485203157411218</id><published>2009-01-13T04:23:00.001-08:00</published><updated>2009-01-19T02:04:38.629-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>Multiple SQL Server Integration Services (SSIS) database instances on one machine</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;small&gt;&lt;font face='Courier New'&gt;&lt;br/&gt;The registry key&lt;br /&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTS\ServiceConfigFile specifies&lt;br /&gt;the location and name for the configuration file that Integration&lt;br /&gt;Services service uses. The default value of the registry key is&lt;br /&gt;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\ MsDtsSrvr.ini.xml.&lt;br /&gt;You can update the value of the registry key to use a different name&lt;br /&gt;and location for the configuration file.&lt;br/&gt;&lt;br/&gt;Reference: &lt;/font&gt;&lt;/small&gt;&lt;small&gt;&lt;font face='Courier New'&gt;&lt;a href='http://bloggingabout.net/blogs/mglaser/archive/2007/03/01/multiple-sql-server-integration-services-ssis-database-instances-on-one-machine.aspx'&gt;Multiple SQL Server Integration Services (SSIS) database instances on one machine - Mike's Blog&lt;/a&gt;&lt;/font&gt;&lt;/small&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-2227485203157411218?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/2227485203157411218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=2227485203157411218' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2227485203157411218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/2227485203157411218'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/01/multiple-sql-server-integration.html' title='Multiple SQL Server Integration Services (SSIS) database instances on one machine'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-4128175345687069607</id><published>2009-01-10T23:16:00.001-08:00</published><updated>2009-01-10T23:17:46.871-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>SQL Server 2005 Service Pack 3 released</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;a href='http://technet.microsoft.com/en-us/sqlserver/bb895957.aspx'&gt;&lt;span style='font-size:10pt'&gt;On Dec 15th 2008, Microsoft  released the latest Service Pack &lt;strong&gt;3&lt;/strong&gt; on SQL Server 2005&lt;/span&gt;&lt;/a&gt;&lt;span style='font-family:Tahoma; font-size:10pt'&gt;. On the same day SP3 Cumulative Update 1 and Cumulative Update 11 for SQL Server 2005 Service Pack 2 (SP2) are also released.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Tahoma; font-size:10pt'&gt;For SQL users not opting for SP3, Microsoft released Cumulative Update 11 for SQL Server 2005 SP2, which contains all of the hot fixes for SP2, without the new features in SP3.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Tahoma; font-size:10pt'&gt;For SQL users upgrading from SQL Server 2005 SP2 Cumulative Update 10 or from SQL Server 2005 SP2 Cumulative Update 11, they must apply a post-SP3 cumulative update after upgrade to SP3 to obtain all the fixes&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style='font-family:Tahoma; font-size:10pt'&gt;This Service Pack is available for download from Microsoft Download Center. Along with the Service Pack, refreshed the Feature Pack for 2005 that can be downloaded separately. The following are all the download links for SQL Server 2005 Service Pack 3 and related downloads.&lt;span style='color:#1f497d'&gt;&lt;br /&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style='margin-left: 25pt'&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:272px'/&gt;&lt;col style='width:272px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid 0.5pt; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 SP3 (Eval, Std, Dev, Ent Editions)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  solid 0.5pt; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=135960'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=135960 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 Express Edition SP3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=135970'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=135970 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 Express Advanced SP3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=135973'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=135973 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 Express Toolkit SP3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=135974'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=135974 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 Feature Pack Dec 2008&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=135971'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=135971 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 Management Studio Express SP3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=135772'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=135772 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 SP3 Data Mining Add-ins Page&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=135959'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=135959 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 34px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 SP3 Reporting Services Add-in Page for Microsoft Sharepoint&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=135962'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=135962 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;SQL Server 2005 Books Online Refresh - December 2008&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=130167'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=130167 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;What's New in SQL Server 2005 SP3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=131442'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=131442&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;Readme files for SQL Server 2005 SP3  &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=130542'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=130542 &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;Release Notes for SQL Server 2005 SP3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://go.microsoft.com/fwlink/?LinkId=129527'&gt;&lt;span style='font-size:10pt'&gt;http://go.microsoft.com/fwlink/?LinkId=12952&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 17px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;Cumulative update package 1 for SQL Server 2005 Service Pack 3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://support.microsoft.com/kb/959195'&gt;&lt;span style='font-size:10pt'&gt;http://support.microsoft.com/kb/959195&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style='height: 34px'&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid 0.5pt; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;span style='color:black; font-family:Tahoma; font-size:10pt'&gt;An Incremental Servicing Model - ISM is available from the SQL Server team to deliver hotfixes for reported problems&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid 0.5pt; border-right:  solid 0.5pt'&gt;&lt;p&gt;&lt;a href='http://support.microsoft.com/kb/935897'&gt;&lt;span style='font-size:10pt'&gt;http://support.microsoft.com/kb/935897&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-4128175345687069607?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/4128175345687069607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=4128175345687069607' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4128175345687069607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/4128175345687069607'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2009/01/sql-server-2005-service-pack-3-released.html' title='SQL Server 2005 Service Pack 3 released'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-5866063915071545678</id><published>2008-12-22T19:52:00.001-08:00</published><updated>2008-12-22T19:52:50.884-08:00</updated><title type='text'>SQL Server 2000 SP3 Creates a SQLDebugger Windows User Account</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;a href='http://support.microsoft.com/default.aspx?scid=kb;en-us;818374'&gt;INF: SQL Server 2000 SP3 Creates a SQLDebugger Windows User Account&lt;/a&gt;&lt;br/&gt;&lt;blockquote&gt;The SQLDebugger Windows user account is created when the SQL Debugger Registry2 DCOM server process (Sqldbreg2.exe) is registered. By default, SQL Server 2000 SP3 registers this process, and the SQLDebugger Windows user account is created.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;SQL Query Analyzer includes&lt;br /&gt;		  T-SQL Debugger. By using T-SQL Debugger, you can control and monitor&lt;br /&gt;		  how stored procedures run. T-SQL&lt;br /&gt;		  Debugger uses the &lt;b&gt;SQLDebugger&lt;/b&gt; Windows user account to connect to the database server. &lt;br/&gt;&lt;br/&gt;Microsoft &lt;b&gt;Visual Studio .NET applications&lt;/b&gt; use SQL Server Debugging to debug SQL Server stored procedures. The &lt;b&gt;SQLDebugger&lt;/b&gt; Windows&lt;br /&gt;		  user account  is also created when you install Visual Studio&lt;br /&gt;		  .NET. &lt;br/&gt;&lt;br/&gt;The &lt;b&gt;SQLDebugger&lt;/b&gt; Windows user account has the following characteristics : &lt;br /&gt;		  &lt;ul&gt;&lt;li&gt;It belongs to the built-in Windows Users group. &lt;/li&gt;&lt;li&gt;It does not have local logon rights.&lt;/li&gt;&lt;/ul&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-5866063915071545678?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/5866063915071545678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=5866063915071545678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5866063915071545678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/5866063915071545678'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2008/12/sql-server-2000-sp3-creates-sqldebugger.html' title='SQL Server 2000 SP3 Creates a SQLDebugger Windows User Account'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-8036884532898851170</id><published>2008-12-21T06:21:00.000-08:00</published><updated>2008-12-21T06:26:38.997-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>How to remove /  uninstall SQL Server 2005 Manually</title><content type='html'>Run the command to uninstall the SQL Server components&lt;br /&gt;At a command prompt, run the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;"%ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\ARPWrapper.exe /Remove"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Uninstall the SQL Server components one at a time until all the SQL Server components are uninstalled.&lt;br /&gt;&lt;br /&gt;Note Add or Remove Programs also runs the ARPWrapper.exe program by using the /Remove option. However, the reference to the ARPWrapper.exe program may have been deleted.&lt;br /&gt;&lt;br /&gt;Refer: http://support.microsoft.com/kb/909967&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-8036884532898851170?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/8036884532898851170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=8036884532898851170' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8036884532898851170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/8036884532898851170'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2008/12/how-to-remove-uninstall-sql-server-2005.html' title='How to remove /  uninstall SQL Server 2005 Manually'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-3657340764940173034</id><published>2008-12-21T02:33:00.000-08:00</published><updated>2008-12-21T02:55:57.376-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Cluster'/><title type='text'>SQL Server 2005  - Cluster Tips</title><content type='html'>&lt;span style="font-weight:bold;"&gt;1. Installing Tools and Documentation&lt;/span&gt;&lt;br /&gt;SQL Server 2005 Setup &lt;span style="font-weight:bold;"&gt;no longer installs the tools&lt;/span&gt; and documentation components of&lt;span style="font-weight:bold;"&gt; SQL Server 2005 on all the nodes&lt;/span&gt; of a cluster. The wizard will only install these&lt;br /&gt;components on the node that the Setup routine is initiated from. If tools and documentation is required on the other nodes, you will need to install these components&lt;br /&gt;manually after finishing the setup of the cluster.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Install SQL 2005 Analysis Services on separate Resource group&lt;/span&gt;&lt;br /&gt;Microsoft recommends installing Analysis Services clustered installations in a single group with its own disk and IP resources and not on a resource group that has&lt;br /&gt;the database engine installed on it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Create Windows Domain Groups&lt;/span&gt;&lt;br /&gt;It is usually recommended that you create four different domain groups when creating a cluster. One for each of the following: &lt;br /&gt;  1. SQL Server 2005 DB Service, &lt;br /&gt;  2. SQL Server 2005 Agent service, &lt;br /&gt;  3. SQL Server 2005 Full-Text Search service,&lt;br /&gt;  4. SQL Server 2005 Analysis Services service.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4.Installing Reporting Services&lt;/span&gt;&lt;br /&gt;Unfortunately, Reporting Services is &lt;span style="font-weight:bold;"&gt;not cluster-aware&lt;/span&gt; and will have to be installed as stand-alone components on all nodes in the clustered environments. Reporting Services can make use of clustered databases. But when a node fails over the connections to any Reporting Services, instances on the failed node will not be automatically reconnected to the new node. Connections will have to attempt to connect to the new node using a new IP address&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 5. Installing SQL Server Integration Services&lt;/span&gt;&lt;br /&gt;To install SSIS, you must install SSIS on all active nodes and then make the SSIS Service a clustered resource. To make SSIS a clustered resource, perform the following tasks:&lt;br /&gt;1. Open the Cluster Administrator&lt;br /&gt;2. On the File menu, point to New and then click Resource&lt;br /&gt;3. On the New Resource page of the Resource Wizard, type a Name and choose “Generic Service” as the Service Type. Change the value of Group to SQL group. Click Next.&lt;br /&gt;4. On the Possible Owners page, add or remove the nodes of the cluster as the possible owners of the resource. Click Next.&lt;br /&gt;5. To add dependencies on the Dependencies page,select a resource under Available resources, and thenclick Add. In case of a failover, both SQL Server 2005&lt;br /&gt;and the shared disk that stores Integration Services packages should come back online before Integration Services is brought online. After you have selected the&lt;br /&gt;dependencies, click Next.&lt;br /&gt;6. On the Generic Service Parameters page, enter MsDtsServer as the name of the service. Click Next.&lt;br /&gt;7. On the Registry Replication page, click Add to add the registry key that identifies the configuration file for the Integration Services service.&lt;br /&gt;a. This file needs to be located on a shared disk that is in the same group for the Integration Services service, and fails over to the next node along with for&lt;br /&gt;the Integration Services service.&lt;br /&gt;b. In the Registry Key dialog box, type SOFTWARE\Microsoft\MSDTS\ServiceConfigFile. Click OK, and then click Finish. The Integration Services service&lt;br /&gt;has now been added as a clustered service.&lt;br /&gt;8. Locate the configuration file at %ProgramFiles%\Microsoft SQL Server 2005\90\DTS\Binn\MsDtsSrvr.ini.xml. Copy it to the shared disk.&lt;br /&gt;9. Create a new folder named Packages on the shared disk. Grant List Folders and Write permissions on the new folder to the built-in Users group.&lt;br /&gt;10. Open the configuration file from the shared disk in a text or XML editor. Change the value of the ServerName element to the name of the virtual SQL Server 2005 which is in the same group.&lt;br /&gt;11. Change the value of the StorePath element to the fully-qualified path of the Packages folder created on the shared disk in a previous step: ??:\Packages.&lt;br /&gt;12. Update the value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTS\ServiceConfigFile in the Registry to the fully-qualified path and filename of&lt;br /&gt;the service configuration file on the shared disk&lt;br /&gt;13. In the Cluster Administrator, select the Integration Services service, right-click, and select Bring Online from the popup menu. The Integration Services service&lt;br /&gt;is now online as a clustered service&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-3657340764940173034?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/3657340764940173034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=3657340764940173034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3657340764940173034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/3657340764940173034'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2008/12/sql-server-2005-cluster-tips.html' title='SQL Server 2005  - Cluster Tips'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11743729.post-957450429983543853</id><published>2008-12-18T10:24:00.001-08:00</published><updated>2008-12-18T10:24:04.076-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><title type='text'>How to Grant ALTER TRACE permission using Management Studio?</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;In SQL Server 2005 / 2008 to grant SQL Profiler access for a user;&lt;br/&gt;&lt;blockquote&gt;Security tab  --&amp;gt; Logins --&amp;gt; right click name to modify select properties --&amp;gt; securables tab --&amp;gt; Click add --&amp;gt; Select the server you want to add the permissions to. The permissions should appear in the effective permissions list&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;USE master;&lt;br /&gt;GRANT ALTER TRACE TO [&lt;i&gt;Username&lt;/i&gt;];&lt;br /&gt;&lt;br/&gt;--&amp;gt;Where User Name for domain account is [Domain\accountname];&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11743729-957450429983543853?l=sivasql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sivasql.blogspot.com/feeds/957450429983543853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11743729&amp;postID=957450429983543853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/957450429983543853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11743729/posts/default/957450429983543853'/><link rel='alternate' type='text/html' href='http://sivasql.blogspot.com/2008/12/how-to-grant-alter-trace-permission.html' title='How to Grant ALTER TRACE permission using Management Studio?'/><author><name>SIVAPRASAD</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_w7ME_yT4MGY/SfaETRgPzqI/AAAAAAAAAro/IjsMTAIFSjk/S220/Siva.jpg'/></author><thr:total>0</thr:total></entry></feed>
