<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CkICSHsyfip7ImA9WhRRFEk.&quot;"><id>tag:blogger.com,1999:blog-32461985</id><updated>2011-11-27T19:36:09.596-05:00</updated><category term="Identity" /><category term="Online Resources" /><category term="2005 Bugs" /><category term="SQL 2008" /><category term="Fix Packs" /><category term="2000" /><category term="Scripts" /><category term="SQL 2010" /><category term="Free Softwares" /><category term="SQL 2005" /><category term="Expect The UnExpected" /><category term="Interview Questions" /><category term="Programmers" /><category term="Replication Bugs" /><category term="SP2" /><category term="Trainings" /><category term="Mirroring" /><category term="Service Packs" /><category term="MAXDOP" /><category term="Administration" /><title>SqlSpy</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://sqlspy.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Sqlspy" /><feedburner:info uri="sqlspy" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkAEQHg9fCp7ImA9WhdQEEU.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-141169308270829957</id><published>2011-08-11T12:45:00.000-05:00</published><updated>2011-08-11T12:45:01.664-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-11T12:45:01.664-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL 2005" /><category scheme="http://www.blogger.com/atom/ns#" term="Scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL 2008" /><title>Script to Change the db owner of all databases</title><content type="html">I was in need of a script to change the owner of all the database in a server. I checked in the internet but couldnt find any thing so I made this by myself :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;DECLARE&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;  curDBNames &lt;span style="color: blue;"&gt;CURSOR&lt;/span&gt; &lt;span style="color: blue;"&gt;READ_ONLY&lt;/span&gt; &lt;span style="color: blue;"&gt;FOR&lt;/span&gt;&amp;nbsp; &lt;span style="color: blue;"&gt;SELECT&lt;/span&gt; name &lt;span style="color: blue;"&gt;FROM&lt;/span&gt;  &lt;span style="color: green;"&gt;sys&lt;/span&gt;&lt;span style="color: grey;"&gt;.&lt;/span&gt;&lt;span style="color: green;"&gt;databases&lt;/span&gt; &lt;span style="color: blue;"&gt;where&lt;/span&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;name &lt;span style="color: grey;"&gt;NOT&lt;/span&gt; &lt;span style="color: grey;"&gt;IN(&lt;/span&gt;&lt;span style="color: red;"&gt;'master'&lt;/span&gt;&lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: red;"&gt;'model'&lt;/span&gt;&lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: red;"&gt;'msdb'&lt;/span&gt;&lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: red;"&gt;'tempdb','resource'&lt;/span&gt;&lt;span style="color: grey;"&gt;)&lt;/span&gt; &lt;span style="color: grey;"&gt;and&lt;/span&gt; &lt;span style="color: blue;"&gt;state&lt;/span&gt;  &lt;span style="color: grey;"&gt;=&lt;/span&gt; 0&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;DECLARE&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; @dbName &lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;span style="color: blue;"&gt;varchar&lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;1000&lt;span style="color: grey;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;DECLARE&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; @Sql &lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;span style="color: blue;"&gt;varchar&lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;1000&lt;span style="color: grey;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;declare&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;  @dbOwnerName &lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;span style="color: blue;"&gt;varchar&lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;100&lt;span style="color: grey;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;set&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; @dbOwnerName &lt;span style="color: grey;"&gt;=&lt;/span&gt; &lt;span style="color: red;"&gt;'sa'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;OPEN&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;  curDBNames&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: green;"&gt;--PRINT @@ROWCOUNT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;FETCH&lt;/span&gt; &lt;span style="color: blue;"&gt;NEXT&lt;/span&gt; &lt;span style="color: blue;"&gt;FROM&lt;/span&gt;  curDBNames &lt;span style="color: blue;"&gt;INTO&lt;/span&gt; @dbName&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;WHILE&lt;/span&gt; &lt;span style="color: magenta;"&gt;@@FETCH_STATUS&lt;/span&gt; &lt;span style="color: grey;"&gt;=&lt;/span&gt; 0 &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;set&lt;/span&gt;  @Sql &lt;span style="color: grey;"&gt;=&lt;/span&gt; &lt;span style="color: red;"&gt;'use  ['&lt;/span&gt; &lt;span style="color: grey;"&gt;+&lt;/span&gt; @dbName &lt;span style="color: grey;"&gt;+&lt;/span&gt; &lt;span style="color: red;"&gt;']'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;exec &lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;@Sql&lt;span style="color: grey;"&gt;)&lt;/span&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; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;set&lt;/span&gt; @Sql &lt;span style="color: grey;"&gt;=&lt;/span&gt; &lt;span style="color: red;"&gt;'sp_changedbowner  '&lt;/span&gt; &lt;span style="color: grey;"&gt;+&lt;/span&gt; @dbOwnerName&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;exec &lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;@Sql&lt;span style="color: grey;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;FETCH&lt;/span&gt;  &lt;span style="color: blue;"&gt;NEXT&lt;/span&gt; &lt;span style="color: blue;"&gt;FROM&lt;/span&gt;  curDBNames &lt;span style="color: blue;"&gt;INTO&lt;/span&gt; @dbName&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;END&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;CLOSE&lt;/span&gt;  curDBNames&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;DEALLOCATE&lt;/span&gt; curDBNames&lt;/span&gt;&lt;br /&gt;
Hope you like the script. Let me know if something doesnt work. As usual pls double check before you try this in your production environment.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-141169308270829957?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hWtHMrMvAeVgstT-mhQe9Nyc6jM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hWtHMrMvAeVgstT-mhQe9Nyc6jM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hWtHMrMvAeVgstT-mhQe9Nyc6jM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hWtHMrMvAeVgstT-mhQe9Nyc6jM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/S4RSvyAlLHs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/141169308270829957/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2011/08/script-to-change-db-owner-of-all.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/141169308270829957?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/141169308270829957?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/S4RSvyAlLHs/script-to-change-db-owner-of-all.html" title="Script to Change the db owner of all databases" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2011/08/script-to-change-db-owner-of-all.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcERHc7cCp7ImA9Wx9QGU0.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-7836660045637421055</id><published>2011-01-01T11:40:00.000-05:00</published><updated>2011-01-01T11:40:05.908-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-01T11:40:05.908-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL 2005" /><category scheme="http://www.blogger.com/atom/ns#" term="Trainings" /><title>SQL Server Training Videos</title><content type="html">&lt;a href="http://www.sqlservervideos.com/browse/skill/"&gt;This websit&lt;/a&gt;e is having some nice training&amp;nbsp;videos&amp;nbsp;classified on skill level.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-7836660045637421055?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/57r02kYyxtvtoTEMxxYSgXAiqbY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/57r02kYyxtvtoTEMxxYSgXAiqbY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/57r02kYyxtvtoTEMxxYSgXAiqbY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/57r02kYyxtvtoTEMxxYSgXAiqbY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/fUXT79cTJqo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/7836660045637421055/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2011/01/sql-server-training-videos.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/7836660045637421055?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/7836660045637421055?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/fUXT79cTJqo/sql-server-training-videos.html" title="SQL Server Training Videos" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2011/01/sql-server-training-videos.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cDSHg-cCp7ImA9Wx9SFkk.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-5177510837518920153</id><published>2010-12-06T10:24:00.000-05:00</published><updated>2010-12-06T10:24:39.658-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-06T10:24:39.658-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Expect The UnExpected" /><title>Funniest Poll Result</title><content type="html">Recently SQL Server magazine published the poll result of its poll. "Top 10 places to go for SQL Server Solutions". Lets see the results below:&lt;br /&gt;
&lt;br /&gt;
1. sqlservercentral.com &lt;br /&gt;
&lt;br /&gt;
2. bidn.com (Never heared about this. When I logged in it had 184 users online, lots of individual blogs have more number of people online thank this).&lt;br /&gt;
&lt;br /&gt;
3. sqlserverpedia.com&lt;br /&gt;
&lt;br /&gt;
4. sqlteam.com&lt;br /&gt;
&lt;br /&gt;
5. sqlmag.com&lt;br /&gt;
&lt;br /&gt;
6. sqlblog.com&lt;br /&gt;
&lt;br /&gt;
7. stackoverflow.com&lt;br /&gt;
&lt;br /&gt;
8. simple-talk.com&lt;br /&gt;
&lt;br /&gt;
9. microsoft.com&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
10. twitter.com (now you will know why i say this poll result funny. Thank god they didnt put this on the frst place.) &lt;br /&gt;
&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-5177510837518920153?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5TazrxLh1CGZVGtQGsbyuVZTFfM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5TazrxLh1CGZVGtQGsbyuVZTFfM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5TazrxLh1CGZVGtQGsbyuVZTFfM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5TazrxLh1CGZVGtQGsbyuVZTFfM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/BWnd2SVfy_4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/5177510837518920153/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/12/funniest-poll-result.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5177510837518920153?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5177510837518920153?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/BWnd2SVfy_4/funniest-poll-result.html" title="Funniest Poll Result" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/12/funniest-poll-result.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QBSH49cSp7ImA9Wx5aGUw.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-1937562599599071789</id><published>2010-11-16T09:55:00.000-05:00</published><updated>2010-11-16T09:55:59.069-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-16T09:55:59.069-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL 2005" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL 2008" /><title>Security loop Hole in "Security Admin " Role</title><content type="html">Today I found out one interesting article, which describes the loop hole in security admin role, which has an ability to elivate an user to "sys admin". Please find the &lt;a href="http://www.sqlservercentral.com/articles/Security/70905/"&gt;article here.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-1937562599599071789?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rkFbhVPx7UPHt4DjtNQ5W8Div6s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rkFbhVPx7UPHt4DjtNQ5W8Div6s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rkFbhVPx7UPHt4DjtNQ5W8Div6s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rkFbhVPx7UPHt4DjtNQ5W8Div6s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/sQu2n_n6Kec" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/1937562599599071789/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/11/security-loop-hole-in-security-admin.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/1937562599599071789?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/1937562599599071789?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/sQu2n_n6Kec/security-loop-hole-in-security-admin.html" title="Security loop Hole in &quot;Security Admin &quot; Role" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/11/security-loop-hole-in-security-admin.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8NQ3w_eCp7ImA9WxFWF0Q.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-7804182032177847976</id><published>2010-06-05T22:28:00.000-05:00</published><updated>2010-06-05T22:28:12.240-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-05T22:28:12.240-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Mirroring" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL 2005" /><title>How to Grant Access to a Snap Shot</title><content type="html">&lt;span style="font-family: Verdana, sans-serif;"&gt;If you try to directly grant access to a snap shot you will get the below error stating that the database is in read only mode.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: red; font-family: Verdana, sans-serif;"&gt;&lt;em&gt;Msg 3906, Level 16, State 1, Line 1&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: red; font-family: Verdana, sans-serif;"&gt;&lt;em&gt;Failed to update database "&lt;db name=""&gt;" because the database is read-only.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: red; font-family: Verdana, sans-serif;"&gt;&lt;em&gt;Msg 3906, Level 16, State 1, Procedure sp_MSadduser_implicit_ntlogin, Line 39&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: red; font-family: Verdana, sans-serif;"&gt;&lt;em&gt;Failed to update database "&lt;db name=""&gt;" because the database is read-only&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;The reason is that the snapshots are in read only mode due to which we cannot make changes to add or remove a user.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;If its a windows user then create a login in both the primary and mirror server. Then grant access to this login to the primary database, which will be replicated to the mirror.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;If its a SQL Server login then its a bit tricky as the SIDs come into picture. You have to create a login in the primary then script it out with the SID using&amp;nbsp;&lt;a href="http://support.microsoft.com/kb/918992"&gt;sp_help_revlogin&lt;/a&gt; script and then run the script in the mirror. Then grant the required access in the primary, which inturn will get replicated and the required user will have read access in the mirror and the snap shot.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Thats it for the day folks. Hope to I bump into&amp;nbsp;some similar kind of problem and find a solution&amp;nbsp;and waste google's page by blogging it here again. Until then its me signing off from you. Happy administrating &amp;amp; happy sunday cya.. &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;With Smiles&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Santhosh&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-7804182032177847976?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6YbT99yrNT1jnVC0_hCqULEX8Ow/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6YbT99yrNT1jnVC0_hCqULEX8Ow/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6YbT99yrNT1jnVC0_hCqULEX8Ow/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6YbT99yrNT1jnVC0_hCqULEX8Ow/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/tFAksD5rymY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/7804182032177847976/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/06/how-to-grant-access-to-snap-shot.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/7804182032177847976?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/7804182032177847976?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/tFAksD5rymY/how-to-grant-access-to-snap-shot.html" title="How to Grant Access to a Snap Shot" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/06/how-to-grant-access-to-snap-shot.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU8BQn48eSp7ImA9WxFWGEQ.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-5897229799657018788</id><published>2010-06-03T21:46:00.003-05:00</published><updated>2010-06-07T01:57:33.071-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-07T01:57:33.071-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Identity" /><title>Removing Identity Column from a large table</title><content type="html">&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;To disable an identity column we basically rely on management studio, which intern create temp table transfer the data back and forth for us. But if the table is bit huge with millions of rows, you will get a time out error. Normally most of the solution given by people would be to create a temp table with no identity column transfer the rows into it and then rename the table.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;The catch in this is , there is a very bright chance of you missing some relationship as you have to create them manually. So the innovative way invented by meeeeeeeeee is ;) (tanta da tanta da doiiiiii hehe back ground music) is the below&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;1. Create a teamporary table as shown below&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;select * into temp from main&lt;source&gt;&lt;main&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2. &lt;em&gt;select count(*) from&amp;nbsp;temp&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;select count(*) from main&lt;main&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;check if the rows are equal just in case&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;3. &lt;em&gt;Truncate table main&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;em&gt;Remove the identity property from the GUI.&lt;main&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;4, &lt;em&gt;ALTER TABLE main &lt;main&gt;NOCHECK CONSTRAINT ALL&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;INSERT&amp;nbsp;into main&amp;nbsp;&lt;main&gt;select * from temp&lt;temp&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;ALTER TABLE main &lt;main&gt;CHECK CONSTRAINT ALL &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;5. &lt;em&gt;select count(*) from main&lt;temp&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;select count(*) from temp&lt;main&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;check if the rows are equal just in case&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;6. &lt;em&gt;Drop table temp&lt;temp&gt;&amp;nbsp; -- Dont put the main table name then ur inviting a disaster&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Thats it for the day folks. Hope to see you all soon with some thing uninteresting ;).Until then its me signing off &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;With Smiles&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Santhosh&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-5897229799657018788?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Me0t75FSQ8iR8n3-KMODW0Vu1K0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Me0t75FSQ8iR8n3-KMODW0Vu1K0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Me0t75FSQ8iR8n3-KMODW0Vu1K0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Me0t75FSQ8iR8n3-KMODW0Vu1K0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/FFI2AEFBf2o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/5897229799657018788/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/06/removing-identity-column-from-large.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5897229799657018788?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5897229799657018788?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/FFI2AEFBf2o/removing-identity-column-from-large.html" title="Removing Identity Column from a large table" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/06/removing-identity-column-from-large.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EDR3k9fip7ImA9WxBUE0k.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-7266507385520815795</id><published>2010-02-28T02:05:00.003-05:00</published><updated>2010-02-28T02:21:16.766-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-28T02:21:16.766-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Administration" /><category scheme="http://www.blogger.com/atom/ns#" term="MAXDOP" /><title>Understanding Max DOP Settings</title><content type="html">&lt;div&gt;I am back again folks with one more article. Donno now a days I am enjoying writing in english rather than tamil. Did I start thinking in english by any chance? (enof enof frst start thinking dude kind of thoughts).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Today we are going to talk abt MAX DOP and a interesting fact about it.There is a lot of wrong thinking that max DOP is to determine the no.of processors used by SQL Server. Its not basically affinity mask is the one to do that. This one jst to determine the maximum number of threads an operator (or an operation) in a query can use. Even the explanation in BOL is not quite upto the mark :(. Quite confusing isn't then &lt;a href="http://blogs.msdn.com/sqlserverfaq/archive/2009/01/05/why-do-i-see-more-threads-per-spid-in-sysprocesses-than-maxdop.aspx"&gt;check this out page then&lt;/a&gt; :).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This time again with a peculiar problem. I have set max DOP as 4 in one of my server interestingly I am seeing alteast 20-30 parallel threads. Believe me that scared me a lot. After lots of googling, talking to PSS engineer nothing worked out. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Atlast I went to my last resource social.msdn.com(Believe me folks one of the best place to hang around for sql server techies) a couple of MVPs replied back telling dude MAX DOP is not for query rather its applicable for each operator ooch..&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/d47327bd-7e9a-450a-bd69-e3930879e795/?prof=required"&gt;Linky dinky of this question&lt;/a&gt;.so no wonder my queries are executing in 30+ threads. So my recommended recipe to set up max DOP is to set a one for the server level and if you think a couple of your queries are performing worst due to this then set a one in the query level. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thats it for the day folks. Hope to see you all soon with some interesting problem.Until then its me signing off with one full &amp;amp; one broken leg :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;With Smiles&lt;/div&gt;&lt;div&gt;Santhosh&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-7266507385520815795?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lKwCcmQsaUGqxxjIs5TJCya7Jzs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lKwCcmQsaUGqxxjIs5TJCya7Jzs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lKwCcmQsaUGqxxjIs5TJCya7Jzs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lKwCcmQsaUGqxxjIs5TJCya7Jzs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/0qsE_rjo5-I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/7266507385520815795/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/02/understanding-max-dop-settings.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/7266507385520815795?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/7266507385520815795?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/0qsE_rjo5-I/understanding-max-dop-settings.html" title="Understanding Max DOP Settings" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/02/understanding-max-dop-settings.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAHSHk4fCp7ImA9WxBVFE8.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-3939767027392758126</id><published>2010-02-17T11:15:00.001-05:00</published><updated>2010-02-17T11:22:19.734-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-17T11:22:19.734-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Expect The UnExpected" /><title>Expect the UnExpected</title><content type="html">I am back blogging buddies in a very short period with yet another  expect the unexpected series worth one sleepless night. This time the culprit is me. The application team started reporting that the CPU is hitting 100%.&lt;br /&gt;&lt;br /&gt;When I looked into the SQL Server the application was opening up the connections and it was not closing up and it was keep consuming the CPU. We just got that one of the stored procedure was the culprit.But it was doing nothing other than selecting and inserting some rows in a table which you would never doubt believe  me. I was unable to run the profiler as it was getting hung due to 100% CPU and the existing connections show nothing in the profiler.&lt;br /&gt; &lt;br /&gt;So just in case I updated the stats and it didnt help me in any ways. And we started digging digging diggingggggg nothing helped. We started beating around the bush like checking the dll if its closing the connections properly, checking for MSMQ bugs etc etc..Listening to nonsenses like RDBMS should start terminating idle connections after some time this that.. blah blah..&lt;br /&gt;&lt;br /&gt;Atlast one of the developer say hare yaar check the number of rows in that table. I ran just count * and it kept running for hours. Amused by that I tried to kill the connection aww it started rolling back with message 0% completed 0 mins remaining :(. I was shocked to see a select query rolling back.&lt;br /&gt;&lt;br /&gt;Amused with that I thought there will be some consistency issue in the table level alas I was right (atleast this time) there were consistency issue crap. The issue basically was the select query from the application keep running running running for days due to this bizzare reason and no errors nothing. I was amused that even the update stats went fine awww..&lt;br /&gt;&lt;br /&gt;In fact now a days Im enjoying this expect the unepxected things :)..It was a good learning worth of one nights sleep :) happy administrating.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With Smiles&lt;br /&gt;Santhosh&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-3939767027392758126?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/g1ih6b4naHENNIY9MQsBz2eA5rE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/g1ih6b4naHENNIY9MQsBz2eA5rE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/g1ih6b4naHENNIY9MQsBz2eA5rE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/g1ih6b4naHENNIY9MQsBz2eA5rE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/nzHQU61wzTc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/3939767027392758126/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/02/expect-unexpected.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/3939767027392758126?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/3939767027392758126?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/nzHQU61wzTc/expect-unexpected.html" title="Expect the UnExpected" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/02/expect-unexpected.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAEQnY6eSp7ImA9WxBVFE8.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-6932846336518578748</id><published>2010-02-16T11:09:00.004-05:00</published><updated>2010-02-17T11:21:43.811-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-17T11:21:43.811-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Expect The UnExpected" /><category scheme="http://www.blogger.com/atom/ns#" term="Programmers" /><title>Expect the UnExpected</title><content type="html">&lt;div&gt;In the world of production DBA some great genious (this is called self boasting) said always expect the unexpected..I recently hit that thing again. We started hearing that the application is throwing some error like "No Record found" even though the records exists. Later we found out that in every exception the programmers (of a company Powered by intellectuals hahaha..very funny isint)  have given a message "Records Not Found". Initially the application team said like its due time out error and we keep looking for a reason across all our environment.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Atlast I gave the option of profiler to check for errors and the flow of stored procedure. Alas we found out.. they are creating global temp tables on each connection with a fixed name and if two connections are calling that stored proc one is failing with the error temp table already exists.. and they are nicely displaying the message "Record Not Found" sweet isint..tats why i say expect the unexpected always :)..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Any have happy admnistrating..catch on another occassion soon until then its hv fun..its me logging off frm blogger ;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;With Smiles&lt;/div&gt;&lt;div&gt;santhosh &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-6932846336518578748?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/meQZXKo1FXIJJtf2AHGt06A_FYo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/meQZXKo1FXIJJtf2AHGt06A_FYo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/meQZXKo1FXIJJtf2AHGt06A_FYo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/meQZXKo1FXIJJtf2AHGt06A_FYo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/TQWWAkxCTqg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/6932846336518578748/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/02/expect-un-expected.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/6932846336518578748?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/6932846336518578748?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/TQWWAkxCTqg/expect-un-expected.html" title="Expect the UnExpected" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/02/expect-un-expected.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QFSXg5eCp7ImA9WxBWFkg.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-675843626213993773</id><published>2010-02-08T13:47:00.003-05:00</published><updated>2010-02-08T13:55:18.620-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-08T13:55:18.620-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Online Resources" /><category scheme="http://www.blogger.com/atom/ns#" term="Trainings" /><title>PASS Virtual Summit</title><content type="html">&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;PASS is organizing virtual&lt;span class="Apple-style-span" style="font-size: medium;"&gt; summit starting from Feb 10th 2010.  The below are the streams in which its going to happen&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 11px; -webkit-border-horizontal-spacing: 8px; -webkit-border-vertical-spacing: 8px; "&gt;&lt;table cellspacing="1" cellpadding="1" width="200" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="font-size: 8pt; "&gt;&lt;a href="http://appdev.sqlpass.org/" style="text-decoration: none; color: rgb(51, 102, 153); "&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Application Development&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-size: 8pt; "&gt;&lt;a href="http://bi.sqlpass.org/" style="text-decoration: none; color: rgb(51, 102, 153); "&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Business Intelligence&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-size: 8pt; "&gt;&lt;strong&gt;&lt;a href="http://dba.sqlpass.org/" style="text-decoration: none; color: rgb(51, 102, 153); "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Database Administration&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;  &lt;img height="7" alt="" width="27" src="http://www.sqlpass.org/Portals/0/logo_172900.gif" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-size: 8pt; "&gt;&lt;a href="http://performance.sqlpass.org/" style="text-decoration: none; color: rgb(51, 102, 153); "&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Performance&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-size: 8pt; "&gt;&lt;a href="http://professionaldevelopment.sqlpass.org/" style="text-decoration: none; color: rgb(51, 102, 153); "&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Professional Development&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-size: 8pt; "&gt;&lt;a href="http://virtualization.sqlpass.org/" style="text-decoration: none; color: rgb(51, 102, 153); "&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Virtualization&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-size: 8pt; "&gt;&lt;a href="http://wit.sqlpass.org/" style="text-decoration: none; color: rgb(51, 102, 153); "&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Women in Technology&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 8px; -webkit-border-vertical-spacing: 8px; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Its worth giving a try as you will be discussing with experts across the globe. The only catch here is that all the chapters are going to happen only around noon mountain time, which will be last night for DBAs across Asia Pac. Atleast next time they should consider us while organising these events. You can get more info in the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.sqlpass.org/Community/VirtualChapters.aspx"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;following link&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-675843626213993773?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ffy7EHETqbvu2CYTHde-2NGnqk8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ffy7EHETqbvu2CYTHde-2NGnqk8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ffy7EHETqbvu2CYTHde-2NGnqk8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ffy7EHETqbvu2CYTHde-2NGnqk8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/OAIqa-SX6is" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/675843626213993773/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/02/pass-virtual-summit.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/675843626213993773?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/675843626213993773?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/OAIqa-SX6is/pass-virtual-summit.html" title="PASS Virtual Summit" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/02/pass-virtual-summit.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEQBR3c8cSp7ImA9WxBWEU4.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-1487042620870967998</id><published>2010-02-02T13:43:00.002-05:00</published><updated>2010-02-02T13:45:56.979-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-02T13:45:56.979-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="2005 Bugs" /><title>Interesting Bug with dbcreator role</title><content type="html">With a user with dbcreator role when you try to backup or restore the database using GUI you will get the below error.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="color:#FF6666;"&gt;&lt;b&gt;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup&lt;br /&gt;Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists. &lt;br /&gt;&lt;br /&gt;If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Looks like a bug as specified &lt;a href="http://www.blogger.com/%3Chttp://support.microsoft.com/kb/950891/EN-US%3E"&gt;here &lt;/a&gt;. The work around is also provided there which is to restore using scripts.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-1487042620870967998?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8uRBeoZp7USKzBEOs7TyAZpTycE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8uRBeoZp7USKzBEOs7TyAZpTycE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8uRBeoZp7USKzBEOs7TyAZpTycE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8uRBeoZp7USKzBEOs7TyAZpTycE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/amG_VR_d7qQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/1487042620870967998/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/02/interesting-bug-with-dbcreator-role.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/1487042620870967998?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/1487042620870967998?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/amG_VR_d7qQ/interesting-bug-with-dbcreator-role.html" title="Interesting Bug with dbcreator role" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/02/interesting-bug-with-dbcreator-role.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEANRXg5fSp7ImA9WxBRE0g.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-5313349550249906259</id><published>2010-01-01T08:30:00.001-05:00</published><updated>2010-01-01T08:33:14.625-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-01T08:33:14.625-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="2000" /><title>Attaching DB with multiple files with out log file</title><content type="html">okey its time to blog again after a long time. Thanks for all the folks who have been visiting my blogs even it has got no updates. &lt;br /&gt;&lt;br /&gt;I had a weired situation in which one of our servers had a blue screen death following with a OS and disk corruption.So I lost a couple of my log files. Now I got to bring back the database with no backups in place.&lt;br /&gt;&lt;br /&gt;I tried single attach file db and it wont work as my database is having multiple files. The veeresh found out a alternate solution as stated in the following &lt;a href="http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=78376"&gt;link&lt;/a&gt;. Hope it will help a little bit. This wont work in SQL 2005 as you cannot update system tables. &lt;br /&gt;&lt;br /&gt;It wont look good to end a post with out my usual promise I will try to blog more :).. Have fun, Happy Administration. Wishing you all an Incident Free Happy New year..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With Smiles&lt;br /&gt;Santhosh&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-5313349550249906259?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3h-rvlMgSVxczDBJdlIj2XCZhVM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3h-rvlMgSVxczDBJdlIj2XCZhVM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3h-rvlMgSVxczDBJdlIj2XCZhVM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3h-rvlMgSVxczDBJdlIj2XCZhVM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/P1EOCu5DcgQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/5313349550249906259/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2010/01/attaching-db-with-multiple-files-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5313349550249906259?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5313349550249906259?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/P1EOCu5DcgQ/attaching-db-with-multiple-files-with.html" title="Attaching DB with multiple files with out log file" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2010/01/attaching-db-with-multiple-files-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IBQ3syeyp7ImA9WxJVFUQ.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-19109062087052969</id><published>2009-07-02T22:49:00.005-05:00</published><updated>2009-07-02T23:32:32.593-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-02T23:32:32.593-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL 2010" /><title>Death of DBA Via SQL Server 2010</title><content type="html">It has been a long running rumor that Microsoft wants to eliminate the DBA layer rather the management of databases should be as easily like any other application. With the features list in SQL Server 2010 it sounds like they are trying to acheive that.&lt;br /&gt;&lt;br /&gt;* Self tuning with the help of DMVs&lt;br /&gt;* Best Practices policies enforced by DMVs&lt;br /&gt;&lt;br /&gt;But the DBAs across the globe are hoping things will not get changed drastically due to these features. Lets hope for the best.&lt;br /&gt;&lt;br /&gt;For More Details&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://www.peterdobler.com/2009/07/01/database-technology-roadmap-2009-and-beyond"&gt;Peterdoblers site&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-19109062087052969?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/x8hkQ4h0g4wqvK295jbp7zUHlCQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/x8hkQ4h0g4wqvK295jbp7zUHlCQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/x8hkQ4h0g4wqvK295jbp7zUHlCQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/x8hkQ4h0g4wqvK295jbp7zUHlCQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/ILhME6lVpJs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/19109062087052969/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2009/07/death-of-dba-via-sql-server-2010.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/19109062087052969?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/19109062087052969?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/ILhME6lVpJs/death-of-dba-via-sql-server-2010.html" title="Death of DBA Via SQL Server 2010" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2009/07/death-of-dba-via-sql-server-2010.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcAQH88cSp7ImA9WxVREUU.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-607736974338752648</id><published>2009-01-17T02:28:00.001-05:00</published><updated>2009-01-17T03:14:01.179-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-01-17T03:14:01.179-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Free Softwares" /><title>VS 2008,SQL Server 2005, Windows 2003 Free for Students</title><content type="html">As a part of its Dream Spark program Microsoft is giving away VS 2008, SQL Server 2005, Windows 2003 &amp; Expression Studio for free. The terms &amp; conditions include you should have a valid windows live id(if not you can get a one) &amp; Microsoft has some checks to confirm that you are a student and you should pass those checks. You can very well download them &lt;a href="http://dreamsparkindia.com/dreamspark/GetDreamTools.aspx?Tab=1"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-607736974338752648?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XTzuhCbnQEUHkAPJqn5I8CfbSdg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XTzuhCbnQEUHkAPJqn5I8CfbSdg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XTzuhCbnQEUHkAPJqn5I8CfbSdg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XTzuhCbnQEUHkAPJqn5I8CfbSdg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/rBH7Qlk7dRw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/607736974338752648/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2009/01/vs-2008sql-server-2005-windows-2003.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/607736974338752648?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/607736974338752648?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/rBH7Qlk7dRw/vs-2008sql-server-2005-windows-2003.html" title="VS 2008,SQL Server 2005, Windows 2003 Free for Students" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2009/01/vs-2008sql-server-2005-windows-2003.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcGSHwyfSp7ImA9WxRaF0g.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-826412745319682143</id><published>2008-12-20T02:08:00.003-05:00</published><updated>2008-12-20T02:27:09.295-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-20T02:27:09.295-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Service Packs" /><title>SQL Server 2005 SP3 + SQL Fest</title><content type="html">First of all thanks for all the visitors who have been patiently visiting my pages even though they have not been update for a while. Things were really hectic all these days. But the real reason would be obviously my lazyness and my learning curve has gone negative now a days :(.. Any have I need to kick off my learning curve hopefully will keep this blog updated. &lt;br /&gt;&lt;br /&gt;Atlast the long awaited SP3 has been released. It was in CTP for a while and now it has been released to public. It can be downloaded from the following link. &lt;a href = "http://www.microsoft.com/downloads/details.aspx?FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4&amp;displaylang=en"&gt; Click here to download &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Recently attended the SQL Fest conference it was nice to share the thoughts with the sql development team. They have promised that they will try to conduct this event atleast once in a 6 months. They have also extended the venues from Hyd, Bangalore to Chennai and Delhi. You can get details about this at &lt;a href = "http://sqlcommunity.com/SQLFEST/tabid/284/language/en-US/Default.aspx"&gt; sqlcommunity.com &lt;/a&gt;  or &lt;a href = "http://sqlfest.com/Default.aspx"&gt; sqlfest.com &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-826412745319682143?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eYMyedVdCOtW28FW9pr06T0XARk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eYMyedVdCOtW28FW9pr06T0XARk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eYMyedVdCOtW28FW9pr06T0XARk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eYMyedVdCOtW28FW9pr06T0XARk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/9tfGvDbrhck" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/826412745319682143/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2008/12/sql-server-2005-sp3-sql-fest.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/826412745319682143?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/826412745319682143?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/9tfGvDbrhck/sql-server-2005-sp3-sql-fest.html" title="SQL Server 2005 SP3 + SQL Fest" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2008/12/sql-server-2005-sp3-sql-fest.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYCSXgzeyp7ImA9WxZaFEg.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-299916345186587383</id><published>2008-04-29T03:31:00.001-05:00</published><updated>2008-04-29T03:36:08.683-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-04-29T03:36:08.683-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions" /><title>Dumbest SQL Server Interview questions</title><content type="html">Im attending interviews for the past month or so.. I had to face a couple of bookish dumb asses as interviewers(really i mean it), lets see why i mean so. It was a telephonic interview. lets see some of those &lt;br /&gt;&lt;br /&gt;1. explain me the architecture of sql server,indexes, blah blah?&lt;br /&gt;guys how do u want me to explain a product architecture over the phone...btw i have one doubt am im going to rewrite or code the SQL 2010, why the heck shd i know the architecture? have some sense guys.&lt;br /&gt;&lt;br /&gt;2. what is ACID properties, codds rules, boyds rule, normalization rules, how many of these rules does sql server abide blah blah..?&lt;br /&gt;come on guys have some limit to your bookish questions, tell me the names of any one data architect who designs the database using normalization rules, i challenge if some one in the world can say that okey this model is in the 2nd normal form or blah blah.. come on guys business rules are much more important than these.. &lt;br /&gt;&lt;br /&gt;i dont give a damn if sql server follows or abides 12 of codds rules.. its not my business or i cant do anything to make it abide all the rules you cant either.&lt;br /&gt;&lt;br /&gt;3. how do you establish a one to one relation?&lt;br /&gt;what they heck do you mean by how do you establish a one to one relation? is it like u try to ask me what is one to one and what is one to many? be clear.. when i asked back what do you mean by this.. he skipped to next questions..&lt;br /&gt;&lt;br /&gt;4. what is a clustered index, non clustered index, how many of them you can have in a table, max columns, max tables, max indexes etc etc..?&lt;br /&gt;thank god they didnt ask what is a table, column,row etc..(im MCITP with almost 7 yrs of exp in sql server.&lt;br /&gt;&lt;br /&gt;so wt am i going to know the max tables, max indexes, max columns? i know sql server support decent enough to keep your business up and running. so wt r u going to by knowing all these things.. design a table with 1024 columns or try to run ur business critical database with max dbs, max tables, max columns, max indexes.. ask questions that make sense dont be a question thief from websites like this.. http://www.techinterviews.com/?p=42&lt;br /&gt;&lt;br /&gt;5. how do i read the tlog using sql server native tools etc etc..?&lt;br /&gt;oh so r u trying to test my confidence levels.. hmm i pity on you...&lt;br /&gt;&lt;br /&gt;i can recollect jst the above ones.. the below are the examples to show cause their real time efficiency.&lt;br /&gt;&lt;br /&gt;1. Im supporting the sql server of nasdaq something has happened and the traffic to the db has increased 10times. what will you do with out restarting and no spl hardware available?&lt;br /&gt;&lt;br /&gt;I said u have to pre plan u cant do any thing dynamically.. then he told no do something.. i blabbed something like disabling unwanted jobs, if possible take other non critical dbs in that servers offline, make sure ur SAN subsystem doesnt get traffic from some other system blah blah.. I asked him back what would you do...&lt;br /&gt;&lt;br /&gt;He told I would add an Microsoft Queue or will try to add a SQUID.. I asked so your are going to add a Queue to a highly volatile system like NASDAQ.. you are THE MAN, THE MACHINE, THE DBA.. and I give you a Hi5 * 100 for this wonderful reply.I pity on your client if you have designed any solutions to them.&lt;br /&gt;&lt;br /&gt;2. one fine day you find out that one table is having performance issue in the production, what will you do.. i said index, locks blah blah.. &lt;br /&gt;&lt;br /&gt;he was not satisfied and he keep asking me wt else wt else.. at one point i gave up and asked what will you do.. i said the table design is wrong need to redesign the data model.. i was like whatttttttttttttt.. so u mean to say ull scrap ur data model and redesign.. WOW... you are THE SUPER MAN, THE SUPER MACHINE, THE SUPER COMPUTER, THE SUPEREST DBA and THE CLEAR WINNER.. may god bless you, your system, your client..&lt;br /&gt;&lt;br /&gt;probabl you guys would have faced similar dumbest questions... comment if any such..&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-299916345186587383?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vpPXlfx-e8uR6MckTzW8XUj2v_Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vpPXlfx-e8uR6MckTzW8XUj2v_Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vpPXlfx-e8uR6MckTzW8XUj2v_Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vpPXlfx-e8uR6MckTzW8XUj2v_Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/_ybZtCQ2NlE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/299916345186587383/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2008/04/dumbest-sql-server-interview-questions.html#comment-form" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/299916345186587383?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/299916345186587383?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/_ybZtCQ2NlE/dumbest-sql-server-interview-questions.html" title="Dumbest SQL Server Interview questions" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>5</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2008/04/dumbest-sql-server-interview-questions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEGR3g7fip7ImA9WxZWEU8.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-2683490869500037321</id><published>2008-03-10T00:17:00.002-05:00</published><updated>2008-03-10T00:23:46.606-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-10T00:23:46.606-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL 2008" /><title>SQL 2008 Beta Website</title><content type="html">Im back to technical blogging after a very long gap. In the mean while SQL 2008 is out, most of the guys should be aware of that fact. I was just going through the mails from the atlanta.mdf(believe me its a very active sql server group that I know, they have monthly sessions and speeches, believe me they are wonderful.) you can find some good presentations of those sessions &lt;a href = "www.atlantamdf.com"&gt; here &lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;From "atlanta.mdf" I happened to find very good website for &lt;a href = "https://www.microsoftelearning.com"&gt; SQL 2008 beta &lt;/a&gt;. I just tried to use it, its really nice. probably you guys can try to have a peek look into that website.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-2683490869500037321?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/efXCDVMn9-axlnPgb1Dj-Qx5BWE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/efXCDVMn9-axlnPgb1Dj-Qx5BWE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/efXCDVMn9-axlnPgb1Dj-Qx5BWE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/efXCDVMn9-axlnPgb1Dj-Qx5BWE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/INXeuOy97oI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/2683490869500037321/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2008/03/sql-2008-beta-website.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/2683490869500037321?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/2683490869500037321?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/INXeuOy97oI/sql-2008-beta-website.html" title="SQL 2008 Beta Website" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2008/03/sql-2008-beta-website.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEAMQnY9fSp7ImA9WB5TFE0.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-5988769324757758067</id><published>2007-05-28T21:44:00.000-05:00</published><updated>2007-05-28T21:46:23.865-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-28T21:46:23.865-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="2005 Bugs" /><title>Beware while creating Maintenance plans using SP2.</title><content type="html">I created maintenance plans from my laptop which has got SP2 to the servers that doesnt have SP2 installed. I observed that the old backup files didnt get deleted, I was wondering if that is a bug too so I started to create the maintenance plans from the server itself. so guys beware of this fact.  I dont even know if that is a bug or not. Need to verify the same in other servers. &lt;br /&gt;&lt;br /&gt;The another glitch is when you create a maintenance plan using a machine with SP2 we cant edit it from a non sp2 client or server, this is the way SP2 has been designed to work so guys beware of this fact too.&lt;br /&gt;&lt;br /&gt;Any thoughts or insights in this? Did some one else found out similar issues?&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-5988769324757758067?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-2PO76ZEmwFB5US7Y33CAoaYChE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-2PO76ZEmwFB5US7Y33CAoaYChE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-2PO76ZEmwFB5US7Y33CAoaYChE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-2PO76ZEmwFB5US7Y33CAoaYChE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/hUMlQzoz4Xg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/5988769324757758067/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2007/05/beware-while-creating-maintenance-plans.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5988769324757758067?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5988769324757758067?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/hUMlQzoz4Xg/beware-while-creating-maintenance-plans.html" title="Beware while creating Maintenance plans using SP2." /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2007/05/beware-while-creating-maintenance-plans.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEMQHk8eip7ImA9WB5TFE0.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-2774704541339066506</id><published>2007-05-28T21:42:00.000-05:00</published><updated>2007-05-28T21:44:41.772-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-28T21:44:41.772-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Service Packs" /><category scheme="http://www.blogger.com/atom/ns#" term="SP2" /><title>Critical Hot Fix on SP2</title><content type="html">The earlier release on SP2 had a maintenance plan bug (if you have downloaded the SP2 before March 5th), which did an early delete of the backup files, then MS released a hot fix then later on seems like they have found out another bug, which prevents from the maintenance plans to execute the checkdb. They have released another hot fix (It is supposed to be of a critical hot fix type.). The details of this can be read from  &lt;a href = "http://blogs.msdn.com/psssql/archive/2007/04/06/post-sql-server-2005-service-pack-2-sp2-fixes-explained.aspx"&gt;.&lt;br /&gt;this &lt;/a&gt;&lt;br /&gt;I am thinking that MS is a bit hassle in all the releases of this SQL 2005 and that too with the SP2 release its not even couple of months they have released back to back hot fixes on this SP2. Now Im a bit scared to apply SP2 in my servers, since SP2 has no come back once we apply it.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-2774704541339066506?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Ax8PLM_BP04cxgYMtnz-Me5xcZU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ax8PLM_BP04cxgYMtnz-Me5xcZU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Ax8PLM_BP04cxgYMtnz-Me5xcZU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ax8PLM_BP04cxgYMtnz-Me5xcZU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/3D3DyXFc9-I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/2774704541339066506/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2007/05/critical-hot-fix-on-sp2.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/2774704541339066506?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/2774704541339066506?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/3D3DyXFc9-I/critical-hot-fix-on-sp2.html" title="Critical Hot Fix on SP2" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2007/05/critical-hot-fix-on-sp2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YARXg9cCp7ImA9WBFXEko.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-5783980215641022595</id><published>2007-03-18T21:24:00.000-05:00</published><updated>2007-03-18T21:25:44.668-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-03-18T21:25:44.668-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Replication Bugs" /><category scheme="http://www.blogger.com/atom/ns#" term="2005 Bugs" /><title>log_reuse_wait_desc</title><content type="html">Last week I got a production call on transaction log full. hmmm there was no chance for that database log to get filled. I was wondering and when I looked into the database it said the transaction log is waiting for the replication to complete. I was like whatttttttttttt, since I had a replication build earlier and dropped it as it didnt work out good.&lt;br /&gt;&lt;br /&gt;Then after doing some research I found out like there is a bug with the SQL 2005 in which even if we remove the replication, it doesnt remove it clearly. This issue was discovered in CTM and we are currently in SP1, the issue exists till now. It is being discussed in &lt;a href = "http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=654902&amp;amp;SiteID=1"&gt; this MSDN form &lt;/a&gt;. It was really too scary ouchhhhhhhh.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-5783980215641022595?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sXTOwozOn23J05yuUDxn3p8oWXA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sXTOwozOn23J05yuUDxn3p8oWXA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sXTOwozOn23J05yuUDxn3p8oWXA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sXTOwozOn23J05yuUDxn3p8oWXA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/ORAqqKb7zDA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/5783980215641022595/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2007/03/logreusewaitdesc.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5783980215641022595?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/5783980215641022595?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/ORAqqKb7zDA/logreusewaitdesc.html" title="log_reuse_wait_desc" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2007/03/logreusewaitdesc.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYBSHs9eCp7ImA9WBFQEkU.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-4224053892877027968</id><published>2007-03-07T10:35:00.000-05:00</published><updated>2007-03-07T10:59:19.560-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-03-07T10:59:19.560-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Fix Packs" /><category scheme="http://www.blogger.com/atom/ns#" term="SP2" /><title>Bug in SQL 2005 SP2</title><content type="html">SSUG.org has discovered a bug in the maintenance plan clean up schedule, which does the clean up a bit earlier than expected. Seems they have fixed the bug in the latest sp2 i.e the sp2 that is currently in the Microsoft site. If you have downloaded the sp2 prior to March 5th. Please download the latest fix pack or else Microsoft says that it might have some potential data loss.&lt;br /&gt;&lt;br /&gt;You can download the latest fix pack &lt;a href = "http://www.microsoft.com/downloads/details.aspx?FamilyId=e2c358a1-ecc4-4c49-8f65-daa6b7800eec&amp;displaylang=en"&gt;here &lt;/a&gt;.  The associated KB article is &lt;a href = "http://support.microsoft.com/kb/933508 "&gt; here &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-4224053892877027968?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5EtVDNYoyHMAHuzwbo1pxHMOOSI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5EtVDNYoyHMAHuzwbo1pxHMOOSI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5EtVDNYoyHMAHuzwbo1pxHMOOSI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5EtVDNYoyHMAHuzwbo1pxHMOOSI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/a2dPqE0jLtk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/4224053892877027968/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2007/03/bug-in-sql-2005-sp2.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/4224053892877027968?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/4224053892877027968?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/a2dPqE0jLtk/bug-in-sql-2005-sp2.html" title="Bug in SQL 2005 SP2" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2007/03/bug-in-sql-2005-sp2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8CQH0_eSp7ImA9WBFRGEw.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-8820869251541658931</id><published>2007-03-02T00:20:00.000-05:00</published><updated>2007-03-02T00:21:01.341-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-03-02T00:21:01.341-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Service Packs" /><category scheme="http://www.blogger.com/atom/ns#" term="SP2" /><title>What Do I love in SP2</title><content type="html">Microsoft has atlast released its SP2, it has been awaited for so long and it went through a long testing cycle. The CTP was relased some where during mid of October. Lets see what is there in SP2, Now a days the trend as become such that they started releasing enhancements in service packs rather fixes. As you all know SP1 got mirroring similarly SP2 has tons of new features. I just give some of the features that I love it in SP2.&lt;br /&gt;&lt;br /&gt;1. Maintenance Plan - The best thing in this and I love it. Now the plans look like our old 2000 ones, we can have multiple schedulers and bye bye to the shit of creating each plan to each job. The only glitch here is in the wizard we have only one maintenance clean up task, so we need to edit it to add the clean up task of the transaction logs :((.&lt;br /&gt;&lt;br /&gt;2.  There is no need to install business intelligent studio to edit/create the maintenance task hurrahhhhhhh!!!&lt;br /&gt;&lt;br /&gt;3. The next best think I love is the reports oh man they are wow... now you can open them in their own window and the best thing is you can add custom reports in side your management studio. Come on guys its time to rock and role and build custom reports :).&lt;br /&gt;&lt;br /&gt;4. Mann this feature you all will love it oohh earlier if you are generating scripts, you need to run the boring wizard twice if at all you need to create a script to create object and then drop object. Guess what now it has been changed you can generate scripts for both at the same time. Itsnt good guys you rock.&lt;br /&gt;&lt;br /&gt;5. The another thing i have noticed is earlier when you run the sp_helpfile sp on a sql 2000 database, the result will come along with tons of spaces, I noticed it till sp1 but recently after installing sp2 i noticed that the spaces have goneeeeeeee. I surely give a wowooo to SP2 team for this. Its saves me from the pain of removing the unwanted spaces.&lt;br /&gt;&lt;br /&gt;Word of Caution : Once SP2 is applied there is no come back path. You need to remove the whole instance and then do a fresh installation to remove the SP2, which is the biggest nah from me. While SQL 2005 was released the MS assured that there it will be easy to remove the service packs but not this time :((. I wouldnt dare to install it in my production. Just install the tools guys and have fun with them and wait for the screams of ohhh this broke this to settle down and then we can install it in our production.&lt;br /&gt;&lt;br /&gt;You can read abt the features of SP2 &lt;a href = "http://download.microsoft.com/download/2/B/5/2B5E5D37-9B17-423D-BC8F-B11ECD4195B4/WhatsNewSQL2005SP2.htm"&gt; here &lt;/a&gt;. you can download the SP2 &lt;a href = "http://www.microsoft.com/downloads/details.aspx?familyid=d07219b2-1e23-49c8-8f0c-63fa18f26d3a&amp;amp;displaylang=en"&gt; here &lt;/a&gt;. The guys who developed/manage SQL Server blog &lt;a href = "http://blogs.msdn.com/sqlrem/default.aspx"&gt; here &lt;/a&gt; just in case if you guys need to give a howl at them :).&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-8820869251541658931?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bWGztKOnRPTfxp2h80vmGramVEw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bWGztKOnRPTfxp2h80vmGramVEw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bWGztKOnRPTfxp2h80vmGramVEw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bWGztKOnRPTfxp2h80vmGramVEw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/MHEueaBrR20" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/8820869251541658931/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2007/03/what-do-i-love-in-sp2.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/8820869251541658931?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/8820869251541658931?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/MHEueaBrR20/what-do-i-love-in-sp2.html" title="What Do I love in SP2" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2007/03/what-do-i-love-in-sp2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IHQXY5eCp7ImA9WBBQEU0.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-116310553082093469</id><published>2006-11-09T15:50:00.000-05:00</published><updated>2006-11-09T15:52:10.820-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2006-11-09T15:52:10.820-05:00</app:edited><title>SQL 2005 SP2 CTP Released</title><content type="html">The CTP for the SQL 2005 SP2 has been released. Hope are like this SP2 will be available to public during the first quarter of 2007. Check out the &lt;a href="http://www.microsoft.com/sql/ctp.mspx"&gt;Microsoft &lt;/a&gt;site for more details on the CTP.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-116310553082093469?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/op1Y6NRCfCKIKCoeoiUnh1CZBOM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/op1Y6NRCfCKIKCoeoiUnh1CZBOM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/op1Y6NRCfCKIKCoeoiUnh1CZBOM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/op1Y6NRCfCKIKCoeoiUnh1CZBOM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/Snn7Px3q4As" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/116310553082093469/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2006/11/sql-2005-sp2-ctp-released.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/116310553082093469?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/116310553082093469?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/Snn7Px3q4As/sql-2005-sp2-ctp-released.html" title="SQL 2005 SP2 CTP Released" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2006/11/sql-2005-sp2-ctp-released.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkIHR3s-fip7ImA9WBBQEEk.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-116153852723236814</id><published>2006-10-22T12:21:00.000-05:00</published><updated>2006-11-08T21:48:56.556-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2006-11-08T21:48:56.556-05:00</app:edited><title>Back to the days of CUI</title><content type="html">We are managing the users using Active directory groups for easy managability. Couple of days back one of my developer came to me complaining(come on give me a break the normal developer stuff) saying "oh man you revoked my access, I cant edit a stored procedure, I cant modify a table definition, what is going on?" I said "Dude I got tons of other stuff waiting on my mail box and you didnt mess me up too :)) why shd I revoke your access?"&lt;br /&gt;&lt;br /&gt;He came back and with this error &lt;strong&gt;"Property DefaultSchema is not available for Database &lt;dbname&gt;. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (SQLEditors)"&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;oh gash what a hell this is? I started verifying his access rights every thing is perfect. Googlified and found out the following &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=408092&amp;SiteID=1"&gt;link&lt;/a&gt;. In this one of the microsoft accepts the bug in the SQL Server Management Studio, in the following conditions.&lt;br /&gt;&lt;br /&gt;If you have users who are having logins based upon an Active Directory group.i.e they dont have access to the database directly rather, they will be part of an active directory group and that group will be having access to the database. In this case you cant specify a default schema to that group. In this case they cant use the management studio to create a table or a stored procedure.&lt;br /&gt;&lt;br /&gt;So the solution would be use the t-sql. wow what a solution? Welcome back to the CUI world(Character user Interface).&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-116153852723236814?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ifN1qFRYWgdmObWN_1mDtLrKpDE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ifN1qFRYWgdmObWN_1mDtLrKpDE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ifN1qFRYWgdmObWN_1mDtLrKpDE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ifN1qFRYWgdmObWN_1mDtLrKpDE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/xyFclnM6Tco" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/116153852723236814/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2006/10/back-to-days-of-cui.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/116153852723236814?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/116153852723236814?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/xyFclnM6Tco/back-to-days-of-cui.html" title="Back to the days of CUI" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2006/10/back-to-days-of-cui.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QCSHo9fip7ImA9WBNaEUk.&quot;"><id>tag:blogger.com,1999:blog-32461985.post-115914936946001720</id><published>2006-09-24T20:51:00.000-05:00</published><updated>2006-09-24T20:56:09.466-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2006-09-24T20:56:09.466-05:00</app:edited><title>Good Article on database files and file groups</title><content type="html">There are lots of articles, which gives tons of suggestion on designing the placement of the database and log files. In &lt;a href="http://www.informit.com/guides/content.asp?g=sqlserver&amp;seqNum=42&amp;rl=1"&gt;this &lt;/a&gt;article the author describes the advantages of placing the file groups separately and also describes the procedure to do that. In most of the articles the authors either do explain the advantages or just explain how to create a new file group, In this the author explains the both, in both SQL 2000 and 2005.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://secure.bidvertiser.com/performance/bdv_rss_rd.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;click=1&amp;rsrc=3" target="_blank"&gt;&lt;img src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=122273&amp;bid=531481&amp;PHS=122273531481&amp;rssimage=1&amp;rsrc=3" border="0"/&gt;&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32461985-115914936946001720?l=sqlspy.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/F8DYbehbkbWtSeDgpHkhvVtS-hY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/F8DYbehbkbWtSeDgpHkhvVtS-hY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/F8DYbehbkbWtSeDgpHkhvVtS-hY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/F8DYbehbkbWtSeDgpHkhvVtS-hY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sqlspy/~4/cNA7fyh9H-s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://sqlspy.blogspot.com/feeds/115914936946001720/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://sqlspy.blogspot.com/2006/09/good-article-on-database-files-and.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/115914936946001720?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32461985/posts/default/115914936946001720?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Sqlspy/~3/cNA7fyh9H-s/good-article-on-database-files-and.html" title="Good Article on database files and file groups" /><author><name>சந்தோஷ் = Santhosh</name><uri>http://www.blogger.com/profile/08995787863676872709</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://i59.photobucket.com/albums/g284/sjsanthose/2e30scd.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://sqlspy.blogspot.com/2006/09/good-article-on-database-files-and.html</feedburner:origLink></entry></feed>

