<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1321934029541021733</id><updated>2024-09-06T05:59:52.022+05:30</updated><category term="Benefits of Table Partitioning"/><category term="How to shrink log file"/><category term="Table Partitioning"/><category term="delete duplicate records  in table"/><category term="sp_dboption"/><title type='text'>MS SQL Server</title><subtitle type='html'>Facing any issue with SQL Server, check this blog and if you don&#39;t find it leave the post and I will get back to you as soon as posible</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-324732027243844441</id><published>2012-07-02T14:14:00.001+05:30</published><updated>2012-07-02T14:14:15.169+05:30</updated><title type='text'>Best Way to Delete multiple non unique records</title><summary type="text">  Yesterday when standing with my friends we started discussing best interview questions and one of the best questions is &amp;#8220;how to delete duplicate records if there is no unique key in table&amp;#8221;.    So today I will tell you best way to achieve this, I heard many answers like using temp tables with while loop or cursors, sub tables etc etc. But best is CTE (Common table expression). I </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/324732027243844441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2012/07/best-way-to-delete-multiple-non-unique.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/324732027243844441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/324732027243844441'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2012/07/best-way-to-delete-multiple-non-unique.html' title='Best Way to Delete multiple non unique records'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-9110343612941206466</id><published>2010-10-28T12:18:00.000+05:30</published><updated>2010-10-28T12:18:01.693+05:30</updated><title type='text'>Autogenration of Stored Procedure for Insert Update delete</title><summary type="text">Many times we have to create Stored Procedures (SPs) for INSERT, UPDATE and DELETE for all database tables in any given project. These SPs does not have any business logic but just a facilitator for said operation. While preparing for my next training session on Advance T-SQL, I come across a good article on MSDN (http://msdn.microsoft.com/en-us/magazine/cc188749.aspx). This talks about, </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/9110343612941206466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/10/autogenration-of-stored-procedure-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/9110343612941206466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/9110343612941206466'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/10/autogenration-of-stored-procedure-for.html' title='Autogenration of Stored Procedure for Insert Update delete'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-9009062014318925228</id><published>2010-06-14T15:36:00.001+05:30</published><updated>2010-06-14T15:36:55.836+05:30</updated><title type='text'>How to get tempdb space utilization</title><summary type="text">  This query will let you know how much tempdb space is required by query.  &amp;nbsp;  GO  SELECT * FROM sys.dm_db_session_space_usage WHERE SESSION_ID = @@spid  GO  &amp;lt;Your Query&amp;gt;  GO  SELECT * FROM sys.dm_db_session_space_usage WHERE SESSION_ID = @@spid  &amp;nbsp;  &amp;nbsp;    </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/9009062014318925228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/06/how-to-get-tempdb-space-utilization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/9009062014318925228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/9009062014318925228'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/06/how-to-get-tempdb-space-utilization.html' title='How to get tempdb space utilization'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-4924933802307983585</id><published>2010-06-14T14:19:00.000+05:30</published><updated>2010-06-14T14:22:26.924+05:30</updated><title type='text'>Infrastructure Planning and Design for SQL Server based application</title><summary type="text">  Here is the nice document by Microsoft on infrastructure planning and design for SQL Server.  &amp;nbsp;  &amp;nbsp;    </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/4924933802307983585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/06/infrastructure-planning-and-design-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/4924933802307983585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/4924933802307983585'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/06/infrastructure-planning-and-design-for.html' title='Infrastructure Planning and Design for SQL Server based application'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-2739092500574687252</id><published>2010-06-03T14:22:00.001+05:30</published><updated>2010-06-03T14:22:32.839+05:30</updated><title type='text'>SQL Server Trace Flags</title><summary type="text">          Flag         Trace Flag   Description             -1         Sets trace flags for   all connections. Used only with DBCC TRACEON and TRACEOFF. The setting of the   Trace flag -1 is not visible with DBCC TRACESTATUS command, but work without   problems.             105         SQL Server 6.5 you   can use maximum 16 tables or sub queries in a single select statement. There   is no </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/2739092500574687252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/06/sql-server-trace-flags.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/2739092500574687252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/2739092500574687252'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/06/sql-server-trace-flags.html' title='SQL Server Trace Flags'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-8973510348951322160</id><published>2010-05-24T12:00:00.001+05:30</published><updated>2010-05-24T12:00:57.829+05:30</updated><title type='text'>How to rename table column</title><summary type="text">  How to rename table column using T-SQL  &amp;nbsp;  Again very simple just use system SP  SP_RENAME  &amp;nbsp;  &amp;nbsp;  Make sure that you are in same DB whose table&amp;#8217;s column you want to change  EXEC sp_rename &#39;Schema.Table.ColumnName&#39;, &#39;NewName&#39;, &#39;COLUMN&#39;;  &amp;nbsp;  &amp;nbsp;  &amp;nbsp;    </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/8973510348951322160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/how-to-rename-table-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/8973510348951322160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/8973510348951322160'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/how-to-rename-table-column.html' title='How to rename table column'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-957933371684855345</id><published>2010-05-24T11:38:00.001+05:30</published><updated>2010-05-24T11:38:43.546+05:30</updated><title type='text'>How to rename table</title><summary type="text">  How to rename table in SQL Server using T-SQL  &amp;nbsp;  How to rename big\huge tables?  &amp;nbsp;  The best way of renaming table is using system SP   SP_RENAME  &amp;nbsp;  Make sure that you are in same DB whose table you want to change.  &amp;nbsp;  Use DB  SP_RENAME &amp;#8216;Table1&amp;#8217;,&amp;#8217;NewName&amp;#8217;  &amp;nbsp;  SP_RENAME automatically renames the associated index whenever a PRIMARY KEY or UNIQUE </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/957933371684855345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/how-to-rename-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/957933371684855345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/957933371684855345'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/how-to-rename-table.html' title='How to rename table'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-6207214993856752855</id><published>2010-05-24T11:13:00.001+05:30</published><updated>2010-05-24T11:13:56.649+05:30</updated><title type='text'>How to rename SQL Server database</title><summary type="text">  How to rename database using T-SQL in SQL Server 2005/2000/2008?  &amp;nbsp;  Very simple J Microsoft have provided one system SP which can be used here.  Sp_RENAMEDB  &amp;nbsp;  This SP needs two parameters 1st Database name which needs to be change  And 2nd New name.  &amp;nbsp;  SP_RENAMEDB &amp;#8216;MyDB&amp;#8217; , &amp;#8216;YourDB&amp;#8217;  &amp;nbsp;  That&amp;#8217;s it.    </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/6207214993856752855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/how-to-rename-sql-server-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/6207214993856752855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/6207214993856752855'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/how-to-rename-sql-server-database.html' title='How to rename SQL Server database'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-5754382173317169898</id><published>2010-05-14T10:00:00.001+05:30</published><updated>2010-05-14T10:00:56.930+05:30</updated><title type='text'>Getting Deadlock information in SQL Server</title><summary type="text">        How to predict deadlock in SQL Server?  &amp;nbsp;  To know the process details involved in the deadlock one need to add two trace flag. These flag will enable log writer to write full information of deadlock in SQL server error logs.  &amp;nbsp;  DBCC TRACEON(1222,-1)  DBCC TRACEON(1205,-1)  &amp;nbsp;  After this when deadlock happened use xp_readerrorlog to read error log.  &amp;nbsp;  Or open SQL </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/5754382173317169898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/getting-deadlock-information-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/5754382173317169898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/5754382173317169898'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/getting-deadlock-information-in-sql.html' title='Getting Deadlock information in SQL Server'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-7051437589913752559</id><published>2010-05-10T15:00:00.000+05:30</published><updated>2010-05-10T15:01:05.852+05:30</updated><title type='text'>Order in which Query got executed by SQL Server</title><summary type="text">  Here is the know fact,  &amp;nbsp;  The way you write query is never executed in same order, so today I am post the order in which query got executed by SQL Server  &amp;nbsp;    FROM   JOINS   WHERE CLAUSE  GROUP BY  HAVING  SELECT  DISTINCT  ORDER BY  TOP   &amp;nbsp;  &amp;nbsp;    </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/7051437589913752559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/order-in-which-query-got-executed-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/7051437589913752559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/7051437589913752559'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/05/order-in-which-query-got-executed-by.html' title='Order in which Query got executed by SQL Server'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-6626739572657606675</id><published>2010-04-28T11:17:00.001+05:30</published><updated>2010-04-28T11:17:33.610+05:30</updated><title type='text'>Index Fragmentation Status Script</title><summary type="text">  This script will let you know &amp;#8220;how much your index is fragmented&amp;#8221;  &amp;nbsp;  SELECT  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OBJECT_NAME(o.object_id) AS TableName  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,i.name&amp;nbsp; AS IndexName  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,i.type_desc AS IndexType  &amp;</summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/6626739572657606675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/index-fragmentation-status-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/6626739572657606675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/6626739572657606675'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/index-fragmentation-status-script.html' title='Index Fragmentation Status Script'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-7579546344917462920</id><published>2010-04-27T15:12:00.001+05:30</published><updated>2010-04-27T15:12:18.046+05:30</updated><title type='text'>Upgrading SQL Server 2000 to 2008</title><summary type="text">  Upgrading to SQL 2008 is simple and easy.  First you need to make sure that you have latest service pack applied on your current box, for SQL 2000 it SP4.  Then run SQL 2008 upgrade advisor on current box and resolve all issues report then by upgrade advisor.  Then run the step-up and choose upgrade from SQL 2000 and follow the instructions.  &amp;nbsp;  For more details:  http://msdn.microsoft.com</summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/7579546344917462920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/upgrading-sql-server-2000-to-2008.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/7579546344917462920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/7579546344917462920'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/upgrading-sql-server-2000-to-2008.html' title='Upgrading SQL Server 2000 to 2008'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-2032002704620117323</id><published>2010-04-27T13:16:00.001+05:30</published><updated>2010-04-27T13:16:38.079+05:30</updated><title type='text'>Getting Query text for running process</title><summary type="text">    &amp;nbsp;    DECLARE @SPID int    &amp;nbsp;    CREATE TABLE #process (      SPID int NOT  NULL    , Status varchar (255)  NOT NULL    , Login varchar (255) NOT NULL    , HostName varchar (255)  NOT NULL    , BlkBy varchar(10)  NOT NULL    , DBName varchar (255)  null    , Command varchar (255)  NOT NULL    , CPUTime int NOT  NULL    , DiskIO int NOT  NULL    , LastBatch varchar (255)  NOT NULL    ,</summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/2032002704620117323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/getting-query-text-for-running-process.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/2032002704620117323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/2032002704620117323'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/getting-query-text-for-running-process.html' title='Getting Query text for running process'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-3025100220865679060</id><published>2010-04-14T16:34:00.000+05:30</published><updated>2010-04-14T17:04:39.034+05:30</updated><title type='text'>How to create MYSQL database LinkServer?</title><summary type="text">  Here are script to create linkserver between SQL Server and MYSQL  &amp;nbsp;  &amp;nbsp;  EXEC master.dbo.sp_addlinkedserver @server = N&amp;#8217;MYSQLDB&amp;#8217;, @srvproduct=N&#39;MySQL ODBC 5.1 driver&#39;, @provider=N&#39;MSDASQL&#39;, @provstr=N&#39;Driver={MySQL ODBC 5.1 driver};Server=172.XXX.XXX.XXX;Port=3306;Option=131072;Stmt=;Database=trial;Uid=user;Pwd=@@&#39;  &amp;nbsp;  &amp;nbsp;  EXEC master.dbo.sp_addlinkedsrvlogin @</summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/3025100220865679060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/how-to-create-mysql-database-linkserver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/3025100220865679060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/3025100220865679060'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/how-to-create-mysql-database-linkserver.html' title='How to create MYSQL database LinkServer?'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-5757844467985060270</id><published>2010-04-08T13:25:00.003+05:30</published><updated>2010-04-08T13:25:54.779+05:30</updated><title type='text'>Changing Collation of Database</title><summary type="text">  How to change Collation of database (non systems)  &amp;nbsp;  ALTER DATABASE MyDB COLLATE SQL_Latin1_General_Cp1250_CS_AS    </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/5757844467985060270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/changing-collation-of-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/5757844467985060270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/5757844467985060270'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/changing-collation-of-database.html' title='Changing Collation of Database'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-7610699000921284180</id><published>2010-04-08T13:25:00.001+05:30</published><updated>2010-04-08T13:25:34.552+05:30</updated><title type='text'>How to Change Collation of SQL Server?</title><summary type="text">  For this you need to rebuild your master db and you will lose all user databases so before that backup every thing.  &amp;nbsp;  Run following command on command prompt:  &amp;nbsp;  start /wait \\172.19.19.6\&amp;quot;sql dump on 10.105.98.68&amp;quot;\&amp;quot;SQL 2005 64bit CD1&amp;quot;\setup.exe /qn INSTANCENAME=MSSQLSERVER REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=XXXXXX SQLCOLLATION=</summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/7610699000921284180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/how-to-change-collation-of-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/7610699000921284180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/7610699000921284180'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/how-to-change-collation-of-sql-server.html' title='How to Change Collation of SQL Server?'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-412502278909830783</id><published>2010-04-01T13:03:00.000+05:30</published><updated>2010-04-01T13:33:38.806+05:30</updated><title type='text'>How to make query to wait for some time</title><summary type="text">  How to make query to wait for some time  WAITFOR clause will cause a delay in the execution of the subsequent statements until the condition is met.  WAITFOR clause can be used along with Time or Delay  WAITFOR DELAY  When WAITFOR DELAY is used a delay duration needs to be mentioned which is of the format HH:MM:SS format followed by one thousandth of a second&amp;#8217;s value. In the following </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/412502278909830783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/how-to-make-query-to-wait-for-some-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/412502278909830783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/412502278909830783'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/04/how-to-make-query-to-wait-for-some-time.html' title='How to make query to wait for some time'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-7535320851667193663</id><published>2010-03-22T14:26:00.001+05:30</published><updated>2010-03-22T14:26:25.436+05:30</updated><title type='text'>How to calculate Buffer Cache Hit Ratio</title><summary type="text">  &amp;nbsp;  The buffer cache hit ratio value measures how well your pages are staying in the buffer cache.&amp;nbsp; The closer the buffer cache hit ratio is to 100 % the better your buffer cache is being utilized, and the better performance you will get out of your SQL Server.&amp;nbsp;&amp;nbsp; Here is how you would use this DMV to calculate the buffer cache hit ratio:  &amp;nbsp;  SELECT cast((CAST(</summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/7535320851667193663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/how-to-calculate-buffer-cache-hit-ratio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/7535320851667193663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/7535320851667193663'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/how-to-calculate-buffer-cache-hit-ratio.html' title='How to calculate Buffer Cache Hit Ratio'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-4337980632555048862</id><published>2010-03-19T18:40:00.003+05:30</published><updated>2010-03-19T18:51:45.617+05:30</updated><title type='text'>Memory used by SQL Server</title><summary type="text">Memory or RAM utilization by SQL Server
Here is the Query:
SELECT&amp;nbsp; cntr_value/1024 as &#39;MB used&#39;FROM master.dbo.sysperfinfoWhere object_name = &#39;SQLServer:Memory Manager&#39; and counter_name = &#39;Total Server Memory (KB)&#39;
or&amp;nbsp; DBCC MEMORYSTATUS&amp;nbsp;
 Apart from this you can use Prefmon with counters name SQLServer:Memory Manager, Total Server Memory (KB)And if server is only used for SQL </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/4337980632555048862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/memory-used-by-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/4337980632555048862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/4337980632555048862'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/memory-used-by-sql-server.html' title='Memory used by SQL Server'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-4751815339093435880</id><published>2010-03-10T11:56:00.001+05:30</published><updated>2010-03-10T11:56:24.594+05:30</updated><title type='text'>Prefmon Counter to be watch for High CPU utilization</title><summary type="text">  Prefmon Counter to be watch for High CPU utilization  &amp;nbsp;          Performance Counter         Counter Object         Threshold         Notes             % Processor Time         Processor         &amp;gt; 80%         Potential causes include memory pressure, low query   plan reuse, non-optimized queries.             Context Switches/sec          System         &amp;gt; 5000 x processors         </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/4751815339093435880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/prefmon-counter-to-be-watch-for-high.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/4751815339093435880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/4751815339093435880'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/prefmon-counter-to-be-watch-for-high.html' title='Prefmon Counter to be watch for High CPU utilization'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-8938501896554340724</id><published>2010-03-08T10:04:00.001+05:30</published><updated>2010-03-08T10:04:12.853+05:30</updated><title type='text'>How to shrink the tempdb database in SQL Server?</title><summary type="text">  Method 1 to Shrink Tempdb                   loadTOCNode(2, &#39;summary&#39;); This method requires you to restart SQL Server.  Stop SQL Server. Start SQL Server by typing the following command: sqlservr -c -f  Run Following Command  ALTER DATABASE tempdb MODIFY FILE(NAME = &#39;tempdev&#39;, SIZE = target_size_in_MB) ALTER DATABASE tempdb MODIFY FILE(NAME = &#39;templog&#39;, SIZE = target_size_in_MB)&amp;nbsp;&amp;nbsp;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/8938501896554340724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/how-to-shrink-tempdb-database-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/8938501896554340724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/8938501896554340724'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/how-to-shrink-tempdb-database-in-sql.html' title='How to shrink the tempdb database in SQL Server?'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-5833899339003511262</id><published>2010-03-03T12:55:00.001+05:30</published><updated>2010-03-03T12:55:20.163+05:30</updated><title type='text'>Optimizing Where clause</title><summary type="text">  Try to avoid WHERE clauses that are non-sargable. The term &amp;quot;sargable&amp;quot; (which is in effect a made-up word) comes from the pseudo-acronym &amp;quot;SARG&amp;quot;, which stands for &amp;quot;Search ARGument,&amp;quot; which refers to a WHERE clause that compares a column to a constant value. If a WHERE clause is sargable, this means that it can take advantage of an index (assuming one is available) to </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/5833899339003511262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/optimizing-where-clause.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/5833899339003511262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/5833899339003511262'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/optimizing-where-clause.html' title='Optimizing Where clause'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-5883797616760043005</id><published>2010-03-03T11:19:00.000+05:30</published><updated>2010-03-03T11:25:31.115+05:30</updated><title type='text'>How to find Virtual Address Space on your SQL Server</title><summary type="text">  What to do if Virtual Address Fragmentation and getting OOM (out-of-memory)&amp;nbsp;errors in your SQL Server. &amp;nbsp;More RAM is definitely not a solution here!  Here are some sample error messages you might have seen in your SQL Errorlog which will indicate if this is physical memory or virtual memory issue:  SQL 2000 WARNING: Failed to reserve contiguous memory of Size= 65536. SQL Server could </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/5883797616760043005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/how-to-find-virtual-address-space-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/5883797616760043005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/5883797616760043005'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/03/how-to-find-virtual-address-space-on.html' title='How to find Virtual Address Space on your SQL Server'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-3045980846588490880</id><published>2010-02-26T15:57:00.001+05:30</published><updated>2010-02-26T15:57:35.030+05:30</updated><title type='text'>Best daily MS SQL DBA checklist or DBA daily activity</title><summary type="text">  DBA Morning Checklist  Backups  - Verify that the Network Backups are good by checking the backup emails. If a backup did not complete, contact _____ in the networking group, and send an email to the DBA group.  - Check the SQL Server backups. If a backup failed, research the cause of the failure and ensure that it is scheduled to run tonight.  - Check the database backup run duration of all </summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/3045980846588490880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/02/best-daily-ms-sql-dba-checklist-or-dba.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/3045980846588490880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/3045980846588490880'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/02/best-daily-ms-sql-dba-checklist-or-dba.html' title='Best daily MS SQL DBA checklist or DBA daily activity'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1321934029541021733.post-55581029210552777</id><published>2010-02-22T18:26:00.001+05:30</published><updated>2010-02-22T18:29:21.041+05:30</updated><title type='text'>Function to return a table from a delimitted (csv) string</title><summary type="text">Create function fn_CSVString 
(@CSVStr varchar(8000) ,@Delim varchar(10))
returns @CSV table (s varchar(1000))
as
begin

declare @i int , @j int
select @i = 1

while @i &amp;lt;= len(@CSVStr)
begin
select @j = charindex(@Delim, @CSVStr, @i)
if @j = 0
begin
select @j = len(@CSVStr) + 1
end
insert @CSV
select substring(@CSVStr, @i, @j - @i)

select @i = @j + len(@Delim)
end
Select * from @CSV
return
end</summary><link rel='replies' type='application/atom+xml' href='http://mssqlserverissues.blogspot.com/feeds/55581029210552777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/02/function-to-return-table-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/55581029210552777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1321934029541021733/posts/default/55581029210552777'/><link rel='alternate' type='text/html' href='http://mssqlserverissues.blogspot.com/2010/02/function-to-return-table-from.html' title='Function to return a table from a delimitted (csv) string'/><author><name>Gaurav</name><uri>http://www.blogger.com/profile/01284879277606726422</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLpYAZWzO3ZVM2xR3TSZM0qngYvnPxEFrVcUwoa9Axz8OBClrncje7hmHJqrsI1Cu7zFsPBhEsFfIfahk-LhXha5DniDPJ25Z_eYZ7_dkpltXv6loZio0jE-AJDYAWvE/s220/DSCN0393.JPG'/></author><thr:total>0</thr:total></entry></feed>