<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-10550791</id><updated>2012-01-25T05:18:55.696+05:30</updated><category term='sql server 2008'/><category term='index fragmentation'/><category term='Reset Identity column'/><category term='Architecture'/><category term='dmv'/><category term='sys.dm_db_index_physical_stats'/><category term='Scripts'/><category term='asynchronous mirroring'/><category term='Art of SQL Server'/><category term='Katmai'/><category term='Learn SQL Server 2005'/><category term='csv'/><category term='update statistics'/><category term='Free SQL Server tools'/><category term='Installation'/><category term='sys.dm_exec_connections'/><title type='text'>SQL Server Tips &amp; Tricks</title><subtitle type='html'>Free SQL Server Articles and Scripts. 
*New: Learn sql server 2005 Series</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default?start-index=101&amp;max-results=100'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>199</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10550791.post-934044310182839497</id><published>2011-07-20T06:57:00.000+05:30</published><updated>2011-07-20T07:45:02.657+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>SQL Server Migration Checklist</title><summary type='text'>Here is a quick checklist for your SQL Server Migration.  1. Build your New Server, Install SQL Server and required updates and keep the server ready for migration  2. Stop Application Service(s) and kill all the connections from sql server.   This is to ensure that the no applications are connected to the Databases during the migration process.  3. Disable all the jobs that refers to this </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/934044310182839497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=934044310182839497&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/934044310182839497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/934044310182839497'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/07/sql-server-migration-checklist.html' title='SQL Server Migration Checklist'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7136077458722949836</id><published>2011-06-23T20:04:00.000+05:30</published><updated>2011-07-20T07:45:02.657+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>DBCC REINDEX vs DBCC INDEXDEFRAG</title><summary type='text'>Note that DBCC DBREINDEX uses one big transaction, killing the operation in the middle would rollback the entire transaction.  It would not help you reduce log space consumption if you restart the index rebuild after killing.  I noticed that you were doing index rebuild monthly.  DBCC DBREINDEX is an offline operation.  While doing clustered index rebuild, the entire table is offline.  You should</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7136077458722949836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7136077458722949836&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7136077458722949836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7136077458722949836'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/06/dbcc-reindex-vs-dbcc-indexdefrag.html' title='DBCC REINDEX vs DBCC INDEXDEFRAG'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6675589652380113682</id><published>2011-06-14T20:17:00.000+05:30</published><updated>2011-07-20T07:45:02.658+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Lists user login attempts to a SQL Server (failed and successful login attempts)</title><summary type='text'>This script is useful for security audits (helping you gather information about failed login attempts), and for checking recent activity by a particular login (before you delete a login, for example).   The script lists all failed login attempts by a user, including the IP address of the computer from which the login attempts were made. The last successful login for a user is also listed.    Note</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6675589652380113682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6675589652380113682&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6675589652380113682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6675589652380113682'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/06/lists-user-login-attempts-to-sql-server.html' title='Lists user login attempts to a SQL Server (failed and successful login attempts)'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-4458395973646990721</id><published>2011-06-14T20:13:00.000+05:30</published><updated>2011-07-20T07:45:02.658+05:30</updated><title type='text'>Script to Generate BCP out and Bulk insert statements</title><summary type='text'>This will be useful while migrating the data from one server to another     SET NOCOUNT ONGOSELECT @@SERVERNAMEDECLARE @path nvarchar(2000), @batchsize nvarchar(40),         @format nvarchar(40), @serverinstance nvarchar(200),         @security nvarchar(800) SET @path = 'C:\Temp\';SET @batchsize = '100000' -- COMMIT EVERY n RECORDSSET @serverinstance = @@SERVERNAME --SQL Server \ Instance nameSET</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/4458395973646990721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=4458395973646990721&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4458395973646990721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4458395973646990721'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/06/script-to-generate-bcp-out-and-bulk.html' title='Script to Generate BCP out and Bulk insert statements'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7336967803425811281</id><published>2011-06-01T19:47:00.000+05:30</published><updated>2011-07-20T07:45:02.658+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Query to return fragmentation information on partitioned indexes</title><summary type='text'>This will very useful, if you have implemented the partitioning functionality .     SELECT  OBJECT_NAME(a.object_id) AS object_name       ,a.index_id       ,b.name       ,b.type_desc       ,a.partition_number       ,a.avg_fragmentation_in_percentFROM    sys.dm_db_index_physical_stats(DB_ID(), NULL, NULL, NULL, 'LIMITED') aJOIN    sys.indexes b ON a.object_id = b.object_id AND a.index_id = </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7336967803425811281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7336967803425811281&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7336967803425811281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7336967803425811281'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/06/query-to-return-fragmentation.html' title='Query to return fragmentation information on partitioned indexes'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3657988964817793995</id><published>2011-05-30T09:18:00.000+05:30</published><updated>2011-07-20T07:45:02.658+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Minimally Logged Inserts in sql server 2008</title><summary type='text'>This is another great feature that was introduced in sql server 2008. This is one of the enhanced features of ‘SELECT INTO ‘ statements. All you need to do is to make sure that the following conditions are met      ensure that the database recovery model is bulk-logged / simple    enable the Trace flag 610.    insert the data ordered by the clustered index   So what is exactly happening behind </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3657988964817793995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3657988964817793995&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3657988964817793995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3657988964817793995'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/05/minimally-logged-inserts-in-sql-server.html' title='Minimally Logged Inserts in sql server 2008'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2930767779504646751</id><published>2011-05-23T22:32:00.000+05:30</published><updated>2011-07-20T07:45:02.658+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Parameter Sniffing</title><summary type='text'>When a stored procedure is first executed SQL Server looks at the input parameters and uses this as guidance to build the query plan. This is known as "parameter sniffing". This is good as long as the input parameters for the first invocation are typical for future invocations. But if that is not the case this will cause performance problems.  Okay, I understand parameter sniffing, How should I </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2930767779504646751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2930767779504646751&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2930767779504646751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2930767779504646751'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/05/parameter-sniffing.html' title='Parameter Sniffing'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-9196819298405912815</id><published>2011-05-05T19:55:00.000+05:30</published><updated>2011-07-20T07:45:02.659+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>find the tables having composite clustered index</title><summary type='text'>script to find the tables having composite clustered index  ;WITH cte AS (SELECT   OBJECT_NAME(i.object_id) NAME, type_desc, i.index_id ,c.name columnName ,p.rows FROM sys.indexes i INNER JOIN sys.partitions p ON i.object_id = p.object_id AND i.index_id = p.index_idINNER JOIN sys.index_columns ic ON i.object_id = ic.object_id AND i.index_id = ic.index_idINNER JOIN sys.columns c on ic.column_id = </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/9196819298405912815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=9196819298405912815&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/9196819298405912815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/9196819298405912815'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/05/find-tables-having-composite-clustered.html' title='find the tables having composite clustered index'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8433537222971502460</id><published>2011-05-04T21:28:00.000+05:30</published><updated>2011-07-20T07:45:02.659+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Historic information – sql backups</title><summary type='text'>Need to find out the historic information of backups , try this script      SELECT     CONVERT(CHAR(100), SERVERPROPERTY('Servername')) AS Server,    msdb.dbo.backupset.database_name,     msdb.dbo.backupset.backup_start_date,     msdb.dbo.backupset.backup_finish_date,    msdb.dbo.backupset.expiration_date,    CASE msdb..backupset.type         WHEN 'D' THEN 'Database'         WHEN 'L' THEN 'Log'</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8433537222971502460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8433537222971502460&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8433537222971502460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8433537222971502460'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/05/historic-information-sql-backups.html' title='Historic information – sql backups'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8914700270809109152</id><published>2011-04-27T19:54:00.000+05:30</published><updated>2011-07-20T07:45:02.659+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Suggested Max Memory Settings for SQL Server 2005/2008</title><summary type='text'>It is important to make sure you set the Max server memory setting for SQL Server 2005/2008 to something besides the default setting (which allows SQL Server to use as much memory as it wants, subject to signals from the host OS that it is under memory pressure). This is especially important with larger, busier systems that may be under memory pressure.  This setting controls how much memory can </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8914700270809109152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8914700270809109152&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8914700270809109152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8914700270809109152'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/04/suggested-max-memory-settings-for-sql.html' title='Suggested Max Memory Settings for SQL Server 2005/2008'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6383481206053407857</id><published>2011-04-26T09:22:00.000+05:30</published><updated>2011-07-20T07:45:02.659+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Use sys.dm_os_performance_counters to get your Buffer cache hit ratio and Page life expectancy counters</title><summary type='text'>Buffer cache hit ratio  This means what is the percentage that SQL Server had the data in cache and did not have to read the data from disk. Ideally you want this number to be as close to 100 as possible.  In order to calculate the Buffer cache hit ratio we need to query the sys.dm_os_performance_counters dynamic management view. There are 2 counters we need in order to do our calculation, one </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6383481206053407857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6383481206053407857&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6383481206053407857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6383481206053407857'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/04/use-sysdmosperformancecounters-to-get.html' title='Use sys.dm_os_performance_counters to get your Buffer cache hit ratio and Page life expectancy counters'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5039850456464236486</id><published>2011-04-20T20:04:00.000+05:30</published><updated>2011-07-20T07:45:02.659+05:30</updated><title type='text'>script – percentage of identity values being used</title><summary type='text'>Here is a script which list out all the identity columns and percentage used      SET NOCOUNT ONSELECT	SCHEMA_NAME(t.schema_id) + '.' +  t.name AS TableName, idc.name AS ColumnName,CASE idc.system_type_id	WHEN 127 THEN 'bigint'	WHEN 56 THEN 'int'	WHEN 52 THEN 'smallint'	WHEN 48 THEN 'tinyint'END AS 'DataType',idc.last_value AS CurrentIdentityValue,idc.seed_value,increment_value,CASE </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5039850456464236486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5039850456464236486&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5039850456464236486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5039850456464236486'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/04/script-percentage-of-identity-values.html' title='script – percentage of identity values being used'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-441105688087970805</id><published>2011-04-14T21:17:00.000+05:30</published><updated>2011-07-20T07:45:02.660+05:30</updated><title type='text'>Index Fragmentation on Partitioned tables</title><summary type='text'>Partitioning can be effectively used to break up a very large table into multiple partitions based on a column or partitioning key. However, there can be significant management overhead in maintaining partitioned tables. The features of partitioned tables that give you the ease of management can also conspire against you to make your maintenance a nightmare!  Thinking of each partition as its own</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/441105688087970805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=441105688087970805&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/441105688087970805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/441105688087970805'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/04/index-fragmentation-on-partitioned.html' title='Index Fragmentation on Partitioned tables'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5156291963188313984</id><published>2011-04-13T20:51:00.000+05:30</published><updated>2011-07-20T07:45:02.660+05:30</updated><title type='text'>Find the Size of Database</title><summary type='text'>I encountered the situation recently where I needed to find the size of the database.  --size of database SELECT DB_NAME(database_id) AS DatabaseName,SUM((size*8)/1024) SizeInMBFROM sys.master_filesGROUP BY DB_NAME(database_id) -- size of individual db filesSELECT DB_NAME(database_id) AS DatabaseName,Name AS Logical_Name,Physical_Name, (size*8)/1024 SizeInMBFROM sys.master_files  </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5156291963188313984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5156291963188313984&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5156291963188313984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5156291963188313984'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/04/find-size-of-database.html' title='Find the Size of Database'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3211981873591353937</id><published>2011-03-29T04:19:00.000+05:30</published><updated>2011-07-20T07:45:02.660+05:30</updated><title type='text'>Best practices for Indexing</title><summary type='text'>Create index on columns that are frequently used for data retrieval or in filter conditions. For example in SELECT statement and WHERE clause or in ORDER BY, GROUP BY, and DISTINCT clauses. As in our first example, if most of the queries are referencing emp_name column instead of emp_id column, then it is wise to create index on emp_name instead of emp_id i.e. create indexes based on use. Every </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3211981873591353937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3211981873591353937&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3211981873591353937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3211981873591353937'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/03/best-practices-for-indexing.html' title='Best practices for Indexing'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5263760368610147436</id><published>2011-02-25T22:43:00.000+05:30</published><updated>2011-07-20T07:45:02.660+05:30</updated><title type='text'>How to run a stored procedure at SQL Server start-up</title><summary type='text'>This is actually quite simple. There is 'startup' option that you can set to the procedure.  There are a few limitations though:   - sp must reside in the [master] database    - it's owner must be dbo   - it mustn't have any input or output parameters  Note that each stored procedure run at start up takes up one worker thread until finished. So if you want to run multiple sps at runtime and </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5263760368610147436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5263760368610147436&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5263760368610147436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5263760368610147436'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/02/how-to-run-stored-procedure-at-sql.html' title='How to run a stored procedure at SQL Server start-up'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6994982582490938438</id><published>2011-02-24T01:45:00.000+05:30</published><updated>2011-07-20T07:45:02.661+05:30</updated><title type='text'>alternate to IF EXISTS ..UPDATE ELSE ..INSERT</title><summary type='text'>On some occasions we need to update an entry in a table in case there is an entry otherwise we need to insert that data into the table. The easiest way to do this is something like this   IF EXISTS ( SELECT customer_id            FROM   dbo.customer_comments            WHERE  customer_id = @customerId ) 	UPDATE  dbo.customer_comments	SET     customer_comment = @comment +  'something here' 	WHERE</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6994982582490938438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6994982582490938438&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6994982582490938438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6994982582490938438'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/02/alternate-to-if-exists-update-else.html' title='alternate to IF EXISTS ..UPDATE ELSE ..INSERT'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-9043469578971117605</id><published>2011-02-10T22:25:00.000+05:30</published><updated>2011-07-20T07:45:02.661+05:30</updated><title type='text'>Script to Check and Fix Orphan Users</title><summary type='text'>      -- Script to check the orphan userEXEC sp_change_users_login 'Report'--Use below code to fix the Orphan User issueDECLARE @username varchar(25)DECLARE fixusers CURSOR FORSELECT UserName = name FROM sysusersWHERE issqluser = 1 and (sid is not null and sid &lt;&gt; 0x0)and suser_sname(sid) is nullORDER BY nameOPEN fixusersFETCH NEXT FROM fixusersINTO @usernameWHILE @@FETCH_STATUS = 0BEGINEXEC </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/9043469578971117605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=9043469578971117605&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/9043469578971117605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/9043469578971117605'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/02/script-to-check-and-fix-orphan-users.html' title='Script to Check and Fix Orphan Users'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2979481703326128174</id><published>2011-02-10T22:08:00.000+05:30</published><updated>2011-07-20T07:45:02.661+05:30</updated><title type='text'>DBCC UPDATEUSAGE and sp_updatestats</title><summary type='text'>This may provide some light on the usage of DBCC UPDATEUSAGE and sp_updatestatsDBCC UPDATEUSAGE corrects the rows, used, reserved, and dpages columns of the sysindexes table for tables and clustered indexes. Size information is not maintained for nonclustered indexes.If there are no inaccuracies in sysindexes, DBCC UPDATEUSAGE returns no data. If inaccuracies are found and corrected and the WITH </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2979481703326128174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2979481703326128174&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2979481703326128174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2979481703326128174'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/02/dbcc-updateusage-and-spupdatestats.html' title='DBCC UPDATEUSAGE and sp_updatestats'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3543771553293841165</id><published>2011-02-07T23:56:00.000+05:30</published><updated>2011-07-20T07:45:02.661+05:30</updated><title type='text'>sys.dm_io_virtual_file_stats</title><summary type='text'>Excellent dmf that shows, for each file that SQL Server uses for the databases, stats on how frequently the file has been used by the database. This is one of the primary dynamic management views I use almost daily (well, not usually when I am on vacation, but even sometimes then!)  The file can be any file used in the database, including the log or full text files. Parameters: 				database_id – </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3543771553293841165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3543771553293841165&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3543771553293841165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3543771553293841165'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/02/sysdmiovirtualfilestats.html' title='sys.dm_io_virtual_file_stats'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8809889104538027360</id><published>2011-02-07T22:21:00.000+05:30</published><updated>2011-07-20T07:45:02.661+05:30</updated><title type='text'>Register an Extended Stored Procedure in SQL Server 2008 R2</title><summary type='text'>Aside from those integrated into SQL Server (e.g. xp_cmdshell) it's not often I come across the need to use Extended Stored Procedures but an application I installed recently required that I add their custom procedure to the SQL Server housing the application data.  Having been years since I had last added one it took a little figuring out since I would've expected to find it in Management Studio</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8809889104538027360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8809889104538027360&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8809889104538027360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8809889104538027360'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/02/register-extended-stored-procedure-in.html' title='Register an Extended Stored Procedure in SQL Server 2008 R2'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-300006140046216267</id><published>2011-02-07T22:20:00.000+05:30</published><updated>2011-07-20T07:45:02.661+05:30</updated><title type='text'>How to Enable xp_cmdshell</title><summary type='text'>There's a great little feature of SQL Server that allows you to execute command-line statements, allowing you to run batch files, get directory listings or call executables.  The feature is accessed via the xp_cmdshell Extended Stored Procedure, the syntax is pretty simple and looks like this…EXEC					xp_cmdshell					'dir *.exe';								In the wrong hands xp_cmdshell could cause havoc, for that </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/300006140046216267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=300006140046216267&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/300006140046216267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/300006140046216267'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/02/how-to-enable-xpcmdshell.html' title='How to Enable xp_cmdshell'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7993661038046035479</id><published>2011-02-07T22:18:00.000+05:30</published><updated>2011-07-20T07:45:02.662+05:30</updated><title type='text'>Reset Default Database from Command Line</title><summary type='text'>During a recent consolidation exercise I was migrating one database at a time and then taking the old copy offline, unfortunately one of the DBs had (un-knowingly) been my default database and next time I tried to log in I received the dreaded "Cannot open user default database. Login Failed." Message.In my case it was to execute the sp_defaultdb stored procedure using the OSQL utility, for </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7993661038046035479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7993661038046035479&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7993661038046035479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7993661038046035479'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/02/reset-default-database-from-command.html' title='Reset Default Database from Command Line'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-1545050187668057623</id><published>2011-01-21T04:22:00.000+05:30</published><updated>2011-07-20T07:45:02.662+05:30</updated><title type='text'>What is Database Mirroring</title><summary type='text'>In the proposed database mirroring solution there will be two groups of active-passive windows clusters deployed at each location (PRIMARY SITE and Secondary Site). The Primary Site will be the primary site and the Secondary Site will be the disaster recovery (DR) site.The different failure scenarios are as follows:   - In case of a failure at the Primary Site, Node-A would automatically </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/1545050187668057623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=1545050187668057623&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1545050187668057623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1545050187668057623'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/01/what-is-database-mirroring.html' title='What is Database Mirroring'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8482996392468978228</id><published>2011-01-20T04:04:00.000+05:30</published><updated>2011-07-20T07:45:02.662+05:30</updated><title type='text'>SQL Server Management Studio (SSMS) – Keyboard Shortcut Keys</title><summary type='text'>Here is list of Shortcut keys to work with SSMS handy.ActionSSMS-Shortcut KeyMove to the SQL Server Management Studio menu barALTActivate the menu for a tool componentALT+HYPHENDisplay the context menuSHIFT+F10Display the New File dialog box to create a fileCTRL+NDisplay the New Project dialog box to create a new projectCTRL+SHIFT+NDisplay the Open File dialog box to open an existing fileCTRL+</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8482996392468978228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8482996392468978228&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8482996392468978228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8482996392468978228'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/01/sql-server-management-studio-ssms.html' title='SQL Server Management Studio (SSMS) – Keyboard Shortcut Keys'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8454311234509414216</id><published>2011-01-13T22:18:00.000+05:30</published><updated>2011-07-20T07:45:02.662+05:30</updated><title type='text'>SQL Server Service Account Privileges</title><summary type='text'>SQL Server 2005 Books Online indicates that the SQL Server service account requires permission to start the following related services (among many other requirements): SQL Server Active Directory Helper and SQL Server VSS Writer services. How can I verify service-related permissions for the SQL Server service account?  Obviously, the service really would NOT NEED permissions to start these </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8454311234509414216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8454311234509414216&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8454311234509414216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8454311234509414216'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/01/sql-server-service-account-privileges.html' title='SQL Server Service Account Privileges'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8495881754250873534</id><published>2011-01-11T20:44:00.000+05:30</published><updated>2011-07-20T07:45:02.662+05:30</updated><title type='text'>Log Shipping vs. database mirroring</title><summary type='text'>Database mirroring is functionality in the SQL Server engine that reads from the transaction log and copies transactions from the principal server instance to the mirror server instance.  It can operate synchronously or asynchronously. If configured to operate synchronously, the transaction on the principal will not be committed until it is hardened to disk on the mirror. Database mirroring </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8495881754250873534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8495881754250873534&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8495881754250873534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8495881754250873534'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/01/log-shipping-vs-database-mirroring.html' title='Log Shipping vs. database mirroring'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7280187098189201316</id><published>2011-01-10T22:07:00.000+05:30</published><updated>2011-07-20T07:45:02.663+05:30</updated><title type='text'>Log Shipping – NORECOVERY vs. STANDBY mode</title><summary type='text'>When you restore a transaction log using the NORECOVERY option, SQL Server does not need to analyze the transaction log and roll back any uncommitted transactions at the end of the restore process.     When you restore a transaction log using the STANDBY option, SQL Server has to undo any uncommitted transactions so that the data files contain only committed transactions. While it does this, it </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7280187098189201316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7280187098189201316&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7280187098189201316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7280187098189201316'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/01/log-shipping-norecovery-vs-standby-mode.html' title='Log Shipping – NORECOVERY vs. STANDBY mode'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-9191543531436464933</id><published>2011-01-10T21:49:00.000+05:30</published><updated>2011-07-20T07:45:02.663+05:30</updated><title type='text'>Log shipping –Failover</title><summary type='text'>When it's time to failover to the secondary database, so that it becomes our primary database, we have to do the following·     if possible, back up the transaction log on the primary database      Apply all outstanding transaction logs to the secondary database after careful consideration. You may not want to restore all the transactions, if the reason you are failing over is because some </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/9191543531436464933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=9191543531436464933&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/9191543531436464933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/9191543531436464933'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/01/log-shipping-failover.html' title='Log shipping –Failover'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-911243416737903894</id><published>2011-01-06T22:46:00.000+05:30</published><updated>2011-07-20T07:45:02.663+05:30</updated><title type='text'>Reading SQL Trace Files using fn_trace_gettable function</title><summary type='text'>While working in SQL Server, most of the time we create trace files(.trc) to identify performance bottleneck. You can create trace files using SQL Profiler or you can use SQL as well. Most of us would go SQL Profiler way, because simply putting is very easy and quite elegant too, further more it gives you WYSIWYG environment.   Now suppose somebody has already generated a trace file, and you just</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/911243416737903894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=911243416737903894&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/911243416737903894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/911243416737903894'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2011/01/reading-sql-trace-files-using.html' title='Reading SQL Trace Files using fn_trace_gettable function'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3043000750122208633</id><published>2010-12-23T01:11:00.000+05:30</published><updated>2011-07-20T07:45:02.663+05:30</updated><title type='text'>How to create a SQL trace using T-SQL</title><summary type='text'>Some users want to know if there is a way to monitor events on SQL server without using SQL Profiler. Yes, there is: the engine support behind SQL Profiler is the feature called SQL Trace which is introduced in SQL 2005. SQL Trace provides a set of stored procedures to create traces on an instance of the SQL Server Database Engine. These system stored procedures can be used from within user's own</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3043000750122208633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3043000750122208633&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3043000750122208633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3043000750122208633'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/12/how-to-create-sql-trace-using-t-sql.html' title='How to create a SQL trace using T-SQL'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-423908835128403489</id><published>2010-12-09T20:27:00.000+05:30</published><updated>2011-07-20T07:45:02.663+05:30</updated><title type='text'>Find Best Clustered Index</title><summary type='text'>The following query will compare the nonclustered indexes vs the clustered index and determine which index would qualify as the best clustered index based upon the DMV statistics.  If a clustered index does not exist on the table, it will also suggest one of the existing nonclustered indexes as the clustered index.  DECLARE @NonClusteredSeekPct float DECLARE @ClusteredLookupFromNCPct float -- </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/423908835128403489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=423908835128403489&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/423908835128403489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/423908835128403489'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/12/find-best-clustered-index.html' title='Find Best Clustered Index'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5735736915192233959</id><published>2010-12-09T04:15:00.000+05:30</published><updated>2011-07-20T07:45:02.664+05:30</updated><title type='text'>Find Table without Clustered Index / Primary Key</title><summary type='text'>One of the basic Database Rule I have is that all the table must Clustered Index. Clustered Index speeds up performance of the query ran on that table. Clustered Index are usually Primary Key but not necessarily.SELECT OBJECT_NAME(i.OBJECT_ID) AS tableName, rowsFROM sys.indexes iINNER JOIN sys.partitions p ON i.object_id = p.object_id AND i.index_id = p.index_idWHERE i.INDEX_ID = 0AND </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5735736915192233959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5735736915192233959&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5735736915192233959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5735736915192233959'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/12/find-table-without-clustered-index.html' title='Find Table without Clustered Index / Primary Key'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-4163766237126558977</id><published>2010-12-08T21:57:00.000+05:30</published><updated>2011-07-20T07:45:02.664+05:30</updated><title type='text'>Using TRY...CATCH to Rollback a Transaction in case of an error</title><summary type='text'>As you all might know, one of the downsides of the @@ERROR variable approach  to catch the  error is that we must check the value of this variable after each and every DML /DDL  statement to determine if an error occurred and, if so, to rollback the transaction. With SQL Server 2005's TRY...CATCH block, however, these types of scripts are greatly simplified.     BEGIN TRANBEGIN TRY    SELECT  1 /</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/4163766237126558977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=4163766237126558977&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4163766237126558977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4163766237126558977'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/12/using-trycatch-to-rollback-transaction.html' title='Using TRY...CATCH to Rollback a Transaction in case of an error'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8004752429321512579</id><published>2010-07-21T20:12:00.002+05:30</published><updated>2011-07-20T07:45:02.664+05:30</updated><title type='text'>Currently Executing SQL Statements</title><summary type='text'>Here is a script to find out the currently executing sql statements, of course you can use the ‘sp_who2’, but I use this one very often      select	C.client_tcp_port, T.textfrom	sys.dm_exec_connections  C	CROSS APPLY sys.dm_exec_sql_text(most_recent_sql_handle) Twhere	client_net_address = 'myComputerIpHere'  </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8004752429321512579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8004752429321512579&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8004752429321512579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8004752429321512579'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/07/currently-executing-sql-statements_21.html' title='Currently Executing SQL Statements'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7558325624128794087</id><published>2010-07-21T20:12:00.001+05:30</published><updated>2010-11-30T22:35:32.309+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sys.dm_exec_connections'/><category scheme='http://www.blogger.com/atom/ns#' term='dmv'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Currently Executing SQL Statements</title><summary type='text'>Here is a script to find out the currently executing sql statements, of course you can use the ‘sp_who2’, but I use this one very often 

select C.client_tcp_port, T.text
from sys.dm_exec_connections  C
CROSS APPLY sys.dm_exec_sql_text(most_recent_sql_handle) T
where client_net_address = 'myComputerIpHere'
</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7558325624128794087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7558325624128794087&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7558325624128794087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7558325624128794087'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/07/currently-executing-sql-statements.html' title='Currently Executing SQL Statements'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3969862183756769552</id><published>2010-07-09T21:52:00.003+05:30</published><updated>2011-07-20T07:45:02.664+05:30</updated><title type='text'>Find the Index fragmentation on SQL Server 2005 /2008</title><summary type='text'>Here is the script to find out the average index fragmentation levels. Based on this value you can either Rebuild or Reorganize the indexes. Index should be rebuild when index fragmentation is great than 40%. Index should be reorganized when index fragmentation is between 10% to 40%. Index rebuilding process uses more CPU and it locks the database resources. SQL Server development version and </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3969862183756769552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3969862183756769552&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3969862183756769552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3969862183756769552'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/07/find-index-fragmentation-on-sql-server_09.html' title='Find the Index fragmentation on SQL Server 2005 /2008'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7784498565269206822</id><published>2010-07-09T21:52:00.002+05:30</published><updated>2010-11-30T22:39:29.594+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='index fragmentation'/><category scheme='http://www.blogger.com/atom/ns#' term='Learn SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Find the Index fragmentation on SQL Server 2005 /2008</title><summary type='text'>Here is the script to find out the average index fragmentation levels. Based on this value you can either Rebuild or Reorganize the indexes. Index should be rebuild when index fragmentation is great than 40%. Index should be reorganized when index fragmentation is between 10% to 40%. Index rebuilding process uses more CPU and it locks the database resources. SQL Server development version and </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7784498565269206822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7784498565269206822&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7784498565269206822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7784498565269206822'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/07/find-index-fragmentation-on-sql-server.html' title='Find the Index fragmentation on SQL Server 2005 /2008'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2530456908707519815</id><published>2010-07-03T00:17:00.003+05:30</published><updated>2011-07-20T07:45:02.664+05:30</updated><title type='text'>Find table and index name for fragmented indexes</title><summary type='text'>SELECT   OBJECT_NAME(object_id) AS tblName ,(SELECT name FROM sys.indexes WHERE object_id = a.object_id and index_id = a.index_id) ,avg_fragmentation_in_percent FROM sys.dm_db_index_physical_stats(DB_ID(), NULL, NULL, NULL, NULL) aWHERE avg_fragmentation_in_percent &gt; 30 AND index_type_desc IN('CLUSTERED INDEX', 'NONCLUSTERED INDEX') ORDER BY avg_fragmentation_in_percent DESC   </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2530456908707519815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2530456908707519815&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2530456908707519815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2530456908707519815'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/07/find-table-and-index-name-for_03.html' title='Find table and index name for fragmented indexes'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3770623280163436444</id><published>2010-07-03T00:17:00.002+05:30</published><updated>2010-11-30T22:38:24.620+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='index fragmentation'/><category scheme='http://www.blogger.com/atom/ns#' term='dmv'/><category scheme='http://www.blogger.com/atom/ns#' term='sys.dm_db_index_physical_stats'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Find table and index name for fragmented indexes</title><summary type='text'>SELECT  
OBJECT_NAME(object_id) AS tblName 
,(SELECT name FROM sys.indexes WHERE object_id = a.object_id and index_id = a.index_id) 
,avg_fragmentation_in_percent 
FROM sys.dm_db_index_physical_stats(DB_ID(), NULL, NULL, NULL, NULL) a
WHERE avg_fragmentation_in_percent &gt; 30 
AND index_type_desc IN('CLUSTERED INDEX', 'NONCLUSTERED INDEX') 
ORDER BY avg_fragmentation_in_percent DESC </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3770623280163436444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3770623280163436444&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3770623280163436444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3770623280163436444'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/07/find-table-and-index-name-for.html' title='Find table and index name for fragmented indexes'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-4585014261027363435</id><published>2010-07-03T00:15:00.002+05:30</published><updated>2011-07-20T07:45:02.665+05:30</updated><title type='text'>Rebuilding Indexes vs Updating Statistics</title><summary type='text'>No matter in which order you perform these, here are some points to keep in mind      1) By default, the UPDATE STATISTICS statement uses only a sample of records of the table. Using UPDATE STATISTICS WITH FULLSCAN will scan the entire table.   2) By default, the UPDATE STATISTICS statement updates both index and column statistics. Using the COLUMNS option will update column statistics only. </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/4585014261027363435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=4585014261027363435&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4585014261027363435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4585014261027363435'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/07/rebuilding-indexes-vs-updating_03.html' title='Rebuilding Indexes vs Updating Statistics'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8458330415928399062</id><published>2010-07-03T00:15:00.001+05:30</published><updated>2010-11-30T22:45:18.236+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='update statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='Learn SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Rebuilding Indexes vs Updating Statistics</title><summary type='text'>No matter in which order you perform these, here are some points to keep in mind 

1) By default, the UPDATE STATISTICS statement uses only a sample of records of the table. Using UPDATE STATISTICS WITH FULLSCAN will scan the entire table. 
2) By default, the UPDATE STATISTICS statement updates both index and column statistics. Using the COLUMNS option will update column statistics only. Using </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8458330415928399062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8458330415928399062&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8458330415928399062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8458330415928399062'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/07/rebuilding-indexes-vs-updating.html' title='Rebuilding Indexes vs Updating Statistics'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5283423367638455899</id><published>2010-06-29T21:20:00.002+05:30</published><updated>2011-07-20T07:45:02.665+05:30</updated><title type='text'>How to Setup High Performance (asynchronous) Mirroring with No Witness</title><summary type='text'>      Principal Instance - Put the database you want to mirror in FULL recovery mode.       For example:          1:  BACKUP DATABASE AdventureWorksLT2008        2:  TO DISK = 'c:\AdventureWorksLT2008.bak'       3:         4:  BACKUP LOG AdventureWorksLT2008        5:  TO DISK = 'c:\AdventureWorksLT2008.trn'    Copy the backups you made on the Principal Instance to the Mirror Instance   Mirror </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5283423367638455899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5283423367638455899&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5283423367638455899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5283423367638455899'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/06/how-to-setup-high-performance_29.html' title='How to Setup High Performance (asynchronous) Mirroring with No Witness'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5363824619929755323</id><published>2010-06-29T21:20:00.001+05:30</published><updated>2010-11-30T22:45:09.452+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='asynchronous mirroring'/><category scheme='http://www.blogger.com/atom/ns#' term='Learn SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>How to Setup High Performance (asynchronous) Mirroring with No Witness</title><summary type='text'> Principal Instance - Put the database you want to mirror in FULL recovery mode.       
For example:       1:  BACKUP DATABASE AdventureWorksLT2008 
    TO DISK = 'c:\AdventureWorksLT2008.bak'  2:  BACKUP LOG AdventureWorksLT2008 TO DISK = 'c:\AdventureWorksLT2008.trn'

Copy the backups you made on the Principal Instance to the Mirror Instance 
Mirror Instance - Restore the database and log with </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5363824619929755323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5363824619929755323&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5363824619929755323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5363824619929755323'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/06/how-to-setup-high-performance.html' title='How to Setup High Performance (asynchronous) Mirroring with No Witness'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6101706595720328149</id><published>2010-06-16T20:54:00.002+05:30</published><updated>2011-07-20T07:45:02.665+05:30</updated><title type='text'>How To: Reset Identity column in SQL Server</title><summary type='text'>This is one of those simple tip posts that may seem obvious and taken for granted by those of us who have been working with SQL Server for a while now but maybe a newbie or two out there will find this helpful.  The following line resets the Identity value for the UserTable to ‘0’ so that the next record added starts at 1.  DBCC CHECKIDENT(‘UserTable’ , RESEED, 0)  </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6101706595720328149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6101706595720328149&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6101706595720328149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6101706595720328149'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/06/how-to-reset-identity-column-in-sql_16.html' title='How To: Reset Identity column in SQL Server'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-4584463260495272742</id><published>2010-06-16T20:54:00.001+05:30</published><updated>2010-11-30T22:45:54.205+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reset Identity column'/><category scheme='http://www.blogger.com/atom/ns#' term='Learn SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>How To: Reset Identity column in SQL Server</title><summary type='text'>This is one of those simple tip posts that may seem obvious and taken for granted by those of us who have been working with SQL Server for a while now but maybe a newbie or two out there will find this helpful.
The following line resets the Identity value for the UserTable to ‘0’ so that the next record added starts at 1.
DBCC CHECKIDENT(‘UserTable’ , RESEED, 0)</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/4584463260495272742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=4584463260495272742&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4584463260495272742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4584463260495272742'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/06/how-to-reset-identity-column-in-sql.html' title='How To: Reset Identity column in SQL Server'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2573111167178991766</id><published>2010-06-14T21:59:00.002+05:30</published><updated>2011-07-20T07:45:02.665+05:30</updated><title type='text'>Free SQL Server tools that might make your life a little easier</title><summary type='text'>   This list will grow as I find new tools. So if you know of some not on this list do post them in the comments.  SQL Server Management Studio Add-in's  SSMS Tools Pack - an add-in with lots of IDE options (Query Execution history, regions, debug sections, CRUD stored procedures creation, new query templates, running custom scripts from Object explorer's context menu) for SQL Server Management </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2573111167178991766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2573111167178991766&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2573111167178991766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2573111167178991766'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/06/free-sql-server-tools-that-might-make_14.html' title='Free SQL Server tools that might make your life a little easier'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5245648911879267252</id><published>2010-06-14T21:59:00.001+05:30</published><updated>2010-11-30T22:46:13.666+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Free SQL Server tools'/><title type='text'>Free SQL Server tools that might make your life a little easier</title><summary type='text'> This list will grow as I find new tools. So if you know of some not on this list do post them in the comments.
SQL Server Management Studio Add-in's
SSMS Tools Pack - an add-in with lots of IDE options (Query Execution history, regions, debug sections, CRUD stored procedures creation, new query templates, running custom scripts from Object explorer's context menu) for SQL Server Management </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5245648911879267252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5245648911879267252&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5245648911879267252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5245648911879267252'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/06/free-sql-server-tools-that-might-make.html' title='Free SQL Server tools that might make your life a little easier'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3482604007929347803</id><published>2010-05-21T21:23:00.002+05:30</published><updated>2011-07-20T07:45:02.665+05:30</updated><title type='text'>Generate Comma Separated List – SQL Server</title><summary type='text'>In one to many relationships of two tables, sometimes we need to write a query which can return comma separated list of all child values for each parent.    Here are two different methods by which you can easily create a Comma Separated List, the first runs from sql 2000 onwards and the second on is for SQL 2005 onwards.  USE tempdbGOCREATE TABLE [dbo].[student](	StudentID INT IDENTITY,	Name   </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3482604007929347803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3482604007929347803&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3482604007929347803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3482604007929347803'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/05/generate-comma-separated-list-sql_21.html' title='Generate Comma Separated List – SQL Server'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-205861292758950052</id><published>2010-05-21T21:23:00.001+05:30</published><updated>2010-11-30T22:47:04.967+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='csv'/><category scheme='http://www.blogger.com/atom/ns#' term='Learn SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server 2008'/><title type='text'>Generate Comma Separated List – SQL Server</title><summary type='text'>In one to many relationships of two tables, sometimes we need to write a query which can return comma separated list of all child values for each parent.    
Here are two different methods by which you can easily create a Comma Separated List, the first runs from sql 2000 onwards and the second on is for SQL 2005 onwards.
USE tempdb
GO
CREATE TABLE [dbo].[student](
StudentID INT IDENTITY,
Name   </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/205861292758950052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=205861292758950052&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/205861292758950052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/205861292758950052'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/05/generate-comma-separated-list-sql.html' title='Generate Comma Separated List – SQL Server'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8553506482363318852</id><published>2010-05-13T21:23:00.001+05:30</published><updated>2011-07-20T07:45:02.665+05:30</updated><title type='text'>Add Column With Default Column Constraint to Table</title><summary type='text'>I found many questions regarding the inline named default constraints in many user groups, its actually pretty simple   CREATE TABLE dbo.tempabc([col1] [varchar] (16),[col2] [int] NULL CONSTRAINT df__tempabc__Col2 DEFAULT ((0))) ON [PRIMARY]GO  </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8553506482363318852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8553506482363318852&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8553506482363318852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8553506482363318852'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/05/add-column-with-default-column_13.html' title='Add Column With Default Column Constraint to Table'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5641290078421687474</id><published>2010-05-13T21:23:00.000+05:30</published><updated>2010-11-30T22:33:09.516+05:30</updated><title type='text'>Add Column With Default Column Constraint to Table</title><summary type='text'>I found many questions regarding the inline named default constraints in many user groups, its actually pretty simple   CREATE TABLE dbo.tempabc([col1] [varchar] (16),[col2] [int] NULL CONSTRAINT df__tempabc__Col2 DEFAULT ((0))) ON [PRIMARY]GO  </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5641290078421687474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5641290078421687474&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5641290078421687474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5641290078421687474'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/05/add-column-with-default-column.html' title='Add Column With Default Column Constraint to Table'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7717958936635420215</id><published>2010-05-13T21:20:00.001+05:30</published><updated>2011-07-20T07:45:02.666+05:30</updated><title type='text'>Alter column set default</title><summary type='text'>CREATE TABLE dbo.tempabc([col1] [varchar] (16),[col2] [int] NULL CONSTRAINT df__tempabc__Col2 DEFAULT ((0))) ON [PRIMARY]GOALTER TABLE dbo.tempabc ALTER COLUMN Col1 VARCHAR(32) NOT NULLALTER TABLE dbo.tempabc ADD CONSTRAINT df__tempabc__Col1 DEFAULT 'abc' FOR Col1   </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7717958936635420215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7717958936635420215&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7717958936635420215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7717958936635420215'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/05/alter-column-set-default_13.html' title='Alter column set default'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7267598909388513627</id><published>2010-05-13T21:20:00.000+05:30</published><updated>2010-11-30T22:33:09.547+05:30</updated><title type='text'>Alter column set default</title><summary type='text'>CREATE TABLE dbo.tempabc([col1] [varchar] (16),[col2] [int] NULL CONSTRAINT df__tempabc__Col2 DEFAULT ((0))) ON [PRIMARY]GOALTER TABLE dbo.tempabc ALTER COLUMN Col1 VARCHAR(32) NOT NULLALTER TABLE dbo.tempabc ADD CONSTRAINT df__tempabc__Col1 DEFAULT 'abc' FOR Col1   </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7267598909388513627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7267598909388513627&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7267598909388513627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7267598909388513627'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/05/alter-column-set-default.html' title='Alter column set default'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-4657153855149294633</id><published>2010-05-13T00:35:00.001+05:30</published><updated>2011-07-20T07:45:02.666+05:30</updated><title type='text'>Script to find the No of reads/ writes on DB files</title><summary type='text'>SELECT  DB_NAME(mf.database_id) AS databaseName       ,mf.physical_name       ,num_of_reads       ,num_of_bytes_read       ,io_stall_read_ms       ,num_of_writes       ,num_of_bytes_written       ,io_stall_write_ms       ,io_stall       ,size_on_disk_bytesFROM    sys.dm_io_virtual_file_stats(NULL, NULL) AS divfsJOIN    sys.master_files AS mf ON mf.database_id = divfs.database_id</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/4657153855149294633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=4657153855149294633&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4657153855149294633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4657153855149294633'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/05/script-to-find-no-of-reads-writes-on-db_13.html' title='Script to find the No of reads/ writes on DB files'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-418362988790403908</id><published>2010-05-13T00:35:00.000+05:30</published><updated>2010-11-30T22:33:09.584+05:30</updated><title type='text'>Script to find the No of reads/ writes on DB files</title><summary type='text'>SELECT  DB_NAME(mf.database_id) AS databaseName       ,mf.physical_name       ,num_of_reads       ,num_of_bytes_read       ,io_stall_read_ms       ,num_of_writes       ,num_of_bytes_written       ,io_stall_write_ms       ,io_stall       ,size_on_disk_bytesFROM    sys.dm_io_virtual_file_stats(NULL, NULL) AS divfsJOIN    sys.master_files AS mf ON mf.database_id = divfs.database_id</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/418362988790403908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=418362988790403908&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/418362988790403908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/418362988790403908'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/05/script-to-find-no-of-reads-writes-on-db.html' title='Script to find the No of reads/ writes on DB files'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5565568948753898105</id><published>2010-04-24T04:01:00.001+05:30</published><updated>2011-07-20T07:45:02.666+05:30</updated><title type='text'>Splitting CSV string using CTE</title><summary type='text'>DECLARE @CSVString varchar(2000)DECLARE @Delimiter varchar(1)SELECT       @CSVString = 'This,is,a,test,for,splitting,using,a,CTE,to,break,a,varchar,into,records,based,on,a,delimiter',      @Delimiter = ','SET @CSVString = @CSVString+@Delimiter  --- append the delimiter ;WITH Res(s, r)AS(SELECTSUBSTRING(@CSVString,1, CHARINDEX(@Delimiter, @CSVString)-1) s,SUBSTRING(@CSVString,CHARINDEX(@Delimiter,</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5565568948753898105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5565568948753898105&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5565568948753898105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5565568948753898105'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/splitting-csv-string-using-cte_24.html' title='Splitting CSV string using CTE'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6658279939348635450</id><published>2010-04-24T04:01:00.000+05:30</published><updated>2010-11-30T22:33:09.627+05:30</updated><title type='text'>Splitting CSV string using CTE</title><summary type='text'>DECLARE @CSVString varchar(2000)DECLARE @Delimiter varchar(1)SELECT       @CSVString = 'This,is,a,test,for,splitting,using,a,CTE,to,break,a,varchar,into,records,based,on,a,delimiter',      @Delimiter = ','SET @CSVString = @CSVString+@Delimiter  --- append the delimiter ;WITH Res(s, r)AS(SELECTSUBSTRING(@CSVString,1, CHARINDEX(@Delimiter, @CSVString)-1) s,SUBSTRING(@CSVString,CHARINDEX(@Delimiter,</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6658279939348635450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6658279939348635450&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6658279939348635450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6658279939348635450'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/splitting-csv-string-using-cte.html' title='Splitting CSV string using CTE'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3425986326609791174</id><published>2010-04-19T21:29:00.001+05:30</published><updated>2011-07-20T07:45:02.666+05:30</updated><title type='text'>Some Licensing FAQ</title><summary type='text'>What is a CAL?  A CAL is a Client Access License. This type of license grants one network user or device permission to access a network service (such as a SQL or Exchange Server). There are also different types of CALs for each service.  What is the difference between per seat, per server, and per processor?  The Per seat licensing model refers to the total number of computers allowed to connect </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3425986326609791174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3425986326609791174&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3425986326609791174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3425986326609791174'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/some-licensing-faq_19.html' title='Some Licensing FAQ'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-1521984224370822652</id><published>2010-04-19T21:29:00.000+05:30</published><updated>2010-11-30T22:33:09.663+05:30</updated><title type='text'>Some Licensing FAQ</title><summary type='text'>What is a CAL?  A CAL is a Client Access License. This type of license grants one network user or device permission to access a network service (such as a SQL or Exchange Server). There are also different types of CALs for each service.  What is the difference between per seat, per server, and per processor?  The Per seat licensing model refers to the total number of computers allowed to connect </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/1521984224370822652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=1521984224370822652&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1521984224370822652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1521984224370822652'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/some-licensing-faq.html' title='Some Licensing FAQ'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3531787183374410979</id><published>2010-04-15T22:24:00.001+05:30</published><updated>2011-07-20T07:45:02.666+05:30</updated><title type='text'>Using SET XACT_ABORT</title><summary type='text'>SET XACT_ABORT specifies what action SQL Server should take following run-time errors. The default session setting is SET XACT_ABORT OFF, which indicates that only the Transact-SQL statement that raised the error is rolled back and the transaction continues. Depending on the severity of the error, the entire transaction and/or batch may be rolled back even with SET XACT_ABORT is OFF.  A side </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3531787183374410979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3531787183374410979&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3531787183374410979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3531787183374410979'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/using-set-xactabort_15.html' title='Using SET XACT_ABORT'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6031657507239860458</id><published>2010-04-15T22:24:00.000+05:30</published><updated>2010-11-30T22:33:09.683+05:30</updated><title type='text'>Using SET XACT_ABORT</title><summary type='text'>SET XACT_ABORT specifies what action SQL Server should take following run-time errors. The default session setting is SET XACT_ABORT OFF, which indicates that only the Transact-SQL statement that raised the error is rolled back and the transaction continues. Depending on the severity of the error, the entire transaction and/or batch may be rolled back even with SET XACT_ABORT is OFF.  A side </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6031657507239860458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6031657507239860458&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6031657507239860458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6031657507239860458'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/using-set-xactabort.html' title='Using SET XACT_ABORT'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2004045262716017626</id><published>2010-04-15T00:40:00.001+05:30</published><updated>2011-07-20T07:45:02.667+05:30</updated><title type='text'>Formatting Money datatypes</title><summary type='text'>Quite often people ask how to format numeric/money formats in more readable forms separated by commas. The same CONVERT function we use to format the date’s can be used for the same purpose.   Only money datatypes can be formatted like this, if you want to format a decimal/numeric fields, you need to cast them using the CAST function.     DECLARE @Amount MONEYSELECT @Amount = 123456.7899--No </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2004045262716017626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2004045262716017626&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2004045262716017626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2004045262716017626'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/formatting-money-datatypes_15.html' title='Formatting Money datatypes'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-4417243238867401143</id><published>2010-04-15T00:40:00.000+05:30</published><updated>2010-11-30T22:33:09.705+05:30</updated><title type='text'>Formatting Money datatypes</title><summary type='text'>Quite often people ask how to format numeric/money formats in more readable forms separated by commas. The same CONVERT function we use to format the date’s can be used for the same purpose.   Only money datatypes can be formatted like this, if you want to format a decimal/numeric fields, you need to cast them using the CAST function.     DECLARE @Amount MONEYSELECT @Amount = 123456.7899--No </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/4417243238867401143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=4417243238867401143&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4417243238867401143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4417243238867401143'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/formatting-money-datatypes.html' title='Formatting Money datatypes'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5972341668266124437</id><published>2010-04-14T20:42:00.001+05:30</published><updated>2011-07-20T07:45:02.667+05:30</updated><title type='text'>List Object level permissions</title><summary type='text'>       SELECT c.action, o.name, b.name FROM sys.objects oINNER JOIN sysprotects c      ON o.object_id = c.idINNER JOIN sysusers b      ON c.uid = b.uidWHERE o.type IN ('U','P','V')AND b.name = 'LoginName'  </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5972341668266124437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5972341668266124437&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5972341668266124437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5972341668266124437'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/list-object-level-permissions_14.html' title='List Object level permissions'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6374902183131382228</id><published>2010-04-14T20:42:00.000+05:30</published><updated>2010-11-30T22:33:09.726+05:30</updated><title type='text'>List Object level permissions</title><summary type='text'>       SELECT c.action, o.name, b.name FROM sys.objects oINNER JOIN sysprotects c      ON o.object_id = c.idINNER JOIN sysusers b      ON c.uid = b.uidWHERE o.type IN ('U','P','V')AND b.name = 'LoginName'  </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6374902183131382228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6374902183131382228&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6374902183131382228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6374902183131382228'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/list-object-level-permissions.html' title='List Object level permissions'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-406490911914780203</id><published>2010-04-01T22:55:00.001+05:30</published><updated>2011-07-20T07:45:02.667+05:30</updated><title type='text'>System views – login/permissions</title><summary type='text'>---logins:SELECT					*					FROM					sys.server_principals --database users (run in the db)SELECT					*					FROM					sys.database_principals --db roles SELECT dp.type_desc, dp.name, p.nameFROM										sys.data base_role_members rJOIN										sys.database_principals dp ON r.role_principal_id = dp.principal_idJOIN										sys.database_principals p ON r.member_principal_id = p.principal_id</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/406490911914780203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=406490911914780203&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/406490911914780203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/406490911914780203'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/system-views-loginpermissions_01.html' title='System views – login/permissions'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7239785606834960756</id><published>2010-04-01T22:55:00.000+05:30</published><updated>2010-11-30T22:33:09.765+05:30</updated><title type='text'>System views – login/permissions</title><summary type='text'>---logins:SELECT					*					FROM					sys.server_principals --database users (run in the db)SELECT					*					FROM					sys.database_principals --db roles SELECT dp.type_desc, dp.name, p.nameFROM										sys.data base_role_members rJOIN										sys.database_principals dp ON r.role_principal_id = dp.principal_idJOIN										sys.database_principals p ON r.member_principal_id = p.principal_id</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7239785606834960756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7239785606834960756&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7239785606834960756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7239785606834960756'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/04/system-views-loginpermissions.html' title='System views – login/permissions'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6023909162998252009</id><published>2010-03-20T01:29:00.001+05:30</published><updated>2011-07-20T07:45:02.667+05:30</updated><title type='text'>A few maximum limitations for SQL Server 2005</title><summary type='text'> Every now and then i see a question pop up that asks what is the max this or that in sql server?Well here are some maximum values:Bytes per short string column8,000  Bytes per GROUP BY, ORDER BY8,060  Columns in GROUP BY, ORDER BYLimited only by number of bytes  Bytes per index key900  Bytes per foreign key900  Bytes per primary key900  Bytes per row8,060  Bytes per varchar(max), varbinary(max),</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6023909162998252009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6023909162998252009&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6023909162998252009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6023909162998252009'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/03/few-maximum-limitations-for-sql-server_20.html' title='A few maximum limitations for SQL Server 2005'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-9221383409620626603</id><published>2010-03-20T01:29:00.000+05:30</published><updated>2010-11-30T22:33:09.803+05:30</updated><title type='text'>A few maximum limitations for SQL Server 2005</title><summary type='text'> Every now and then i see a question pop up that asks what is the max this or that in sql server?Well here are some maximum values:Bytes per short string column8,000  Bytes per GROUP BY, ORDER BY8,060  Columns in GROUP BY, ORDER BYLimited only by number of bytes  Bytes per index key900  Bytes per foreign key900  Bytes per primary key900  Bytes per row8,060  Bytes per varchar(max), varbinary(max),</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/9221383409620626603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=9221383409620626603&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/9221383409620626603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/9221383409620626603'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/03/few-maximum-limitations-for-sql-server.html' title='A few maximum limitations for SQL Server 2005'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8297732730406343045</id><published>2010-03-17T21:16:00.001+05:30</published><updated>2011-07-20T07:45:02.667+05:30</updated><title type='text'>How to move database physical files?</title><summary type='text'>If you want to					move					database physical files to a new location, you can use the "ALTER DATABASE" statements to bring the database					offline,					MOVE the files TO the new location and map it .				Here is an example  EXEC					sp_helpDB					myDB  Note the filenames AND the physical paths  ALTER					DATABASE MyDB SET					ONLINEGOALTER					DATABASE MyDB SET					OFFLINEGO Now it is					safe</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8297732730406343045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8297732730406343045&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8297732730406343045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8297732730406343045'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/03/how-to-move-database-physical-files_17.html' title='How to move database physical files?'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2520297072603645041</id><published>2010-03-17T21:16:00.000+05:30</published><updated>2010-11-30T22:33:09.925+05:30</updated><title type='text'>How to move database physical files?</title><summary type='text'>If you want to					move					database physical files to a new location, you can use the "ALTER DATABASE" statements to bring the database					offline,					MOVE the files TO the new location and map it .				Here is an example  EXEC					sp_helpDB					myDB  Note the filenames AND the physical paths  ALTER					DATABASE MyDB SET					ONLINEGOALTER					DATABASE MyDB SET					OFFLINEGO Now it is					safe</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2520297072603645041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2520297072603645041&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2520297072603645041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2520297072603645041'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/03/how-to-move-database-physical-files.html' title='How to move database physical files?'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2028511766065390624</id><published>2010-03-02T21:38:00.001+05:30</published><updated>2011-07-20T07:45:02.668+05:30</updated><title type='text'>Stress Testing tools for SQL Server</title><summary type='text'> http://www.microsoft.com/downloads/details.aspx?familyid=9a8b005b-84e4-4f24-8d65-cb53442d9e19&amp;displaylang=en				 http://blogs.msdn.com/psssql/archive/2008/12/19/using-sqliosim-to-diagnose-sql-server-reported-checksum-error-824-823-failures.aspx				 http://www.windowsitpro.com/article/john-savills-windows-faqs/what-tools-are-available-to-stress-benchmark-sql-server-.aspx				 http://www.quest.com/</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2028511766065390624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2028511766065390624&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2028511766065390624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2028511766065390624'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/03/stress-testing-tools-for-sql-server_02.html' title='Stress Testing tools for SQL Server'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6956870809868595862</id><published>2010-03-02T21:38:00.000+05:30</published><updated>2010-11-30T22:33:09.956+05:30</updated><title type='text'>Stress Testing tools for SQL Server</title><summary type='text'> http://www.microsoft.com/downloads/details.aspx?familyid=9a8b005b-84e4-4f24-8d65-cb53442d9e19&amp;displaylang=en				 http://blogs.msdn.com/psssql/archive/2008/12/19/using-sqliosim-to-diagnose-sql-server-reported-checksum-error-824-823-failures.aspx				 http://www.windowsitpro.com/article/john-savills-windows-faqs/what-tools-are-available-to-stress-benchmark-sql-server-.aspx				 http://www.quest.com/</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6956870809868595862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6956870809868595862&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6956870809868595862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6956870809868595862'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/03/stress-testing-tools-for-sql-server.html' title='Stress Testing tools for SQL Server'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8702205090400545026</id><published>2010-02-03T04:15:00.001+05:30</published><updated>2011-07-20T07:45:02.668+05:30</updated><title type='text'>List-all-indexes-statistics-sql-server</title><summary type='text'>select					'Table name'					=					object_name(id),					'column_name'					=					index_col(object_name(id), indid, 1),					'index_description'					=					convert(varchar(210),					case					when (					status					&amp; 16 )					&lt;&gt; 0					then					'clustered'					else					'nonclustered'					end					+					case					when (					status					&amp; 1 )					&lt;&gt; 0 then					', '					+					'ignore duplicate keys'					else</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8702205090400545026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8702205090400545026&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8702205090400545026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8702205090400545026'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/02/list-all-indexes-statistics-sql-server_218.html' title='List-all-indexes-statistics-sql-server'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-8206088309438423777</id><published>2010-02-03T04:15:00.000+05:30</published><updated>2010-11-30T22:33:09.988+05:30</updated><title type='text'>List-all-indexes-statistics-sql-server</title><summary type='text'>select					'Table name'					=					object_name(id),					'column_name'					=					index_col(object_name(id), indid, 1),					'index_description'					=					convert(varchar(210),					case					when (					status					&amp; 16 )					&lt;&gt; 0					then					'clustered'					else					'nonclustered'					end					+					case					when (					status					&amp; 1 )					&lt;&gt; 0 then					', '					+					'ignore duplicate keys'					else</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/8206088309438423777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=8206088309438423777&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8206088309438423777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/8206088309438423777'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/02/list-all-indexes-statistics-sql-server.html' title='List-all-indexes-statistics-sql-server'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5299927145344488765</id><published>2010-02-03T04:13:00.001+05:30</published><updated>2011-07-20T07:45:02.668+05:30</updated><title type='text'>List all indexes /statistics sql server 2000</title><summary type='text'> </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5299927145344488765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5299927145344488765&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5299927145344488765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5299927145344488765'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/02/list-all-indexes-statistics-sql-server_5638.html' title='List all indexes /statistics sql server 2000'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3661367117842292990</id><published>2010-02-03T04:13:00.000+05:30</published><updated>2010-11-30T22:33:10.047+05:30</updated><title type='text'>List all indexes /statistics sql server 2000</title><summary type='text'> </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3661367117842292990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3661367117842292990&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3661367117842292990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3661367117842292990'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/02/list-all-indexes-statistics-sql-server_03.html' title='List all indexes /statistics sql server 2000'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2880450720802503052</id><published>2010-01-27T22:06:00.001+05:30</published><updated>2011-07-20T07:45:02.668+05:30</updated><title type='text'>Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005</title><summary type='text'>You may have faced the issue of losing the SQL Server SA password. Perhaps you followed the security best-practice of removing the  builtin\Administrators from the sysadmin server role,  and no one  you can find is in the sysadmin role.   At this point you may think that your only options are to reinstall SQL Server and attach the databases, or to  directly access the master database files, which</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2880450720802503052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2880450720802503052&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2880450720802503052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2880450720802503052'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/01/disaster-recovery-what-to-do-when-sa_27.html' title='Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-4408666276976640476</id><published>2010-01-27T22:06:00.000+05:30</published><updated>2010-11-30T22:33:10.095+05:30</updated><title type='text'>Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005</title><summary type='text'>You may have faced the issue of losing the SQL Server SA password. Perhaps you followed the security best-practice of removing the  builtin\Administrators from the sysadmin server role,  and no one  you can find is in the sysadmin role.   At this point you may think that your only options are to reinstall SQL Server and attach the databases, or to  directly access the master database files, which</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/4408666276976640476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=4408666276976640476&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4408666276976640476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/4408666276976640476'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2010/01/disaster-recovery-what-to-do-when-sa.html' title='Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-220582220878250033</id><published>2009-07-27T03:00:00.001+05:30</published><updated>2011-07-20T07:45:02.668+05:30</updated><title type='text'>List User permissions</title><summary type='text'>Another common question I found in several user forums WITH cte    AS ( SELECT             USER_NAME ( p.grantee_principal_id ) AS principal_name ,             dp.principal_id ,             dp.type_desc             AS principal_type_desc ,             p.class_desc ,             OBJECT_NAME ( p.major_id )             AS object_name ,&lt;!--CRLF--&gt;             p.permission_name ,             </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/220582220878250033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=220582220878250033&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/220582220878250033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/220582220878250033'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/list-user-permissions_27.html' title='List User permissions'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5241444053776689364</id><published>2009-07-27T03:00:00.000+05:30</published><updated>2010-11-30T22:33:10.251+05:30</updated><title type='text'>List User permissions</title><summary type='text'>Another common question I found in several user forums WITH cte    AS ( SELECT             USER_NAME ( p.grantee_principal_id ) AS principal_name ,             dp.principal_id ,             dp.type_desc             AS principal_type_desc ,             p.class_desc ,             OBJECT_NAME ( p.major_id )             AS object_name ,&lt;!--CRLF--&gt;             p.permission_name ,             </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5241444053776689364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5241444053776689364&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5241444053776689364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5241444053776689364'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/list-user-permissions.html' title='List User permissions'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7364992722478659232</id><published>2009-07-26T04:13:00.001+05:30</published><updated>2011-07-20T07:45:02.669+05:30</updated><title type='text'>Step By Step Guide to Database Mirroring</title><summary type='text'> Principal Server: SQL8Mirrored Server: SQL 4Pre-Requisites - Ensure that SQL Service /SQL Agent Services on all the machines start with the same domain account, otherwise mirroring wont work.Step 1 : Install database on Mirrored ServerIn order to get the database onto the mirrored server, we do a full backup of the ‘YourDatabase’ database on the Principal server, followed by a backup of the </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7364992722478659232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7364992722478659232&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7364992722478659232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7364992722478659232'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/step-by-step-guide-to-database_26.html' title='Step By Step Guide to Database Mirroring'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6645798280482118348</id><published>2009-07-26T04:13:00.000+05:30</published><updated>2010-11-30T22:33:10.369+05:30</updated><title type='text'>Step By Step Guide to Database Mirroring</title><summary type='text'> Principal Server: SQL8Mirrored Server: SQL 4Pre-Requisites - Ensure that SQL Service /SQL Agent Services on all the machines start with the same domain account, otherwise mirroring wont work.Step 1 : Install database on Mirrored ServerIn order to get the database onto the mirrored server, we do a full backup of the ‘YourDatabase’ database on the Principal server, followed by a backup of the </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6645798280482118348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6645798280482118348&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6645798280482118348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6645798280482118348'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/step-by-step-guide-to-database.html' title='Step By Step Guide to Database Mirroring'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5727509393509248311</id><published>2009-07-23T20:58:00.001+05:30</published><updated>2011-07-20T07:45:02.669+05:30</updated><title type='text'>How to kill a profiler trace</title><summary type='text'>Let's say the DBA ran a trace on a server and left for a long lunch, and the client server where the profiler is running is suffering badly with poor performance on the applications running on it and someone in the admin team want to kill that trace even in the absence of the DBA.  Running the following will give you the status of running traces. You may see one running, usually traceid of 1, </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5727509393509248311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5727509393509248311&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5727509393509248311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5727509393509248311'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/how-to-kill-profiler-trace_23.html' title='How to kill a profiler trace'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-263477638106369179</id><published>2009-07-23T20:58:00.000+05:30</published><updated>2010-11-30T22:33:10.408+05:30</updated><title type='text'>How to kill a profiler trace</title><summary type='text'>Let's say the DBA ran a trace on a server and left for a long lunch, and the client server where the profiler is running is suffering badly with poor performance on the applications running on it and someone in the admin team want to kill that trace even in the absence of the DBA.  Running the following will give you the status of running traces. You may see one running, usually traceid of 1, </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/263477638106369179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=263477638106369179&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/263477638106369179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/263477638106369179'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/how-to-kill-profiler-trace.html' title='How to kill a profiler trace'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-2859201889983768404</id><published>2009-07-09T08:42:00.001+05:30</published><updated>2011-07-20T07:45:02.669+05:30</updated><title type='text'>Forgot/Lost ‘sa’ password</title><summary type='text'>You may have faced the issue of losing the SQL Server SA password. Perhaps you followed the security best-practice of removing the  builtin\Administrators from the sysadmin server role,  and no one  you can find is in the sysadmin role.   At this point you may think that your only options are to reinstall SQL Server and attach the databases, or to  directly access the master database files, which</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/2859201889983768404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=2859201889983768404&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2859201889983768404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/2859201889983768404'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/forgotlost-sa-password_09.html' title='Forgot/Lost ‘sa’ password'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5333671669923741886</id><published>2009-07-09T08:42:00.000+05:30</published><updated>2010-11-30T22:33:10.448+05:30</updated><title type='text'>Forgot/Lost ‘sa’ password</title><summary type='text'>You may have faced the issue of losing the SQL Server SA password. Perhaps you followed the security best-practice of removing the  builtin\Administrators from the sysadmin server role,  and no one  you can find is in the sysadmin role.   At this point you may think that your only options are to reinstall SQL Server and attach the databases, or to  directly access the master database files, which</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5333671669923741886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5333671669923741886&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5333671669923741886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5333671669923741886'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/forgotlost-sa-password.html' title='Forgot/Lost ‘sa’ password'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-635349375764947073</id><published>2009-07-03T21:39:00.001+05:30</published><updated>2011-07-20T07:45:02.669+05:30</updated><title type='text'>Rename Schema / Transfer schema</title><summary type='text'>   1: CREATE SCHEMA new_schema &lt;!--CRLF--&gt;   2: GO &lt;!--CRLF--&gt;   3: -- Now run these queries one by one, copy and paste the result of this in a new window and run it &lt;!--CRLF--&gt;   4: SELECT 'ALTER SCHEMA new_schema TRANSFER ' + SCHEMA_NAME(schema_id) + '.' + name &lt;!--CRLF--&gt;   5: FROM sys.tables WHERE schema_id = SCHEMA_ID('old_schema'); &lt;!--CRLF--&gt;   6:  &lt;!--CRLF--&gt;   7: SELECT 'ALTER SCHEMA </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/635349375764947073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=635349375764947073&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/635349375764947073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/635349375764947073'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/rename-schema-transfer-schema_03.html' title='Rename Schema / Transfer schema'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3527916037582959402</id><published>2009-07-03T21:39:00.000+05:30</published><updated>2010-11-30T22:33:10.480+05:30</updated><title type='text'>Rename Schema / Transfer schema</title><summary type='text'>   1: CREATE SCHEMA new_schema &lt;!--CRLF--&gt;   2: GO &lt;!--CRLF--&gt;   3: -- Now run these queries one by one, copy and paste the result of this in a new window and run it &lt;!--CRLF--&gt;   4: SELECT 'ALTER SCHEMA new_schema TRANSFER ' + SCHEMA_NAME(schema_id) + '.' + name &lt;!--CRLF--&gt;   5: FROM sys.tables WHERE schema_id = SCHEMA_ID('old_schema'); &lt;!--CRLF--&gt;   6:  &lt;!--CRLF--&gt;   7: SELECT 'ALTER SCHEMA </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3527916037582959402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3527916037582959402&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3527916037582959402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3527916037582959402'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/rename-schema-transfer-schema.html' title='Rename Schema / Transfer schema'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-7930299782808362906</id><published>2009-07-03T05:16:00.001+05:30</published><updated>2011-07-20T07:45:02.669+05:30</updated><title type='text'>Maintenance Plans in SQL 2005 Express</title><summary type='text'>I found lot of questions on the missing in ability of SQL Server Express to automatically perform database backups/integrity checks/reindexing regularly with a Maintenance Plan. Since SQL Express doesn't have Maintenance Plans, it takes a bit of extra effort to set that up. Here's how I do it:A Windows Scheduled Task runs daily, kicking off sqlexpressmaintplan.cmd:sqlcmd -S SQLSERVER\INSTANCE -i </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/7930299782808362906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=7930299782808362906&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7930299782808362906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/7930299782808362906'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/maintenance-plans-in-sql-2005-express_03.html' title='Maintenance Plans in SQL 2005 Express'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-1446508036239707599</id><published>2009-07-03T05:16:00.000+05:30</published><updated>2010-11-30T22:33:10.509+05:30</updated><title type='text'>Maintenance Plans in SQL 2005 Express</title><summary type='text'>I found lot of questions on the missing in ability of SQL Server Express to automatically perform database backups/integrity checks/reindexing regularly with a Maintenance Plan. Since SQL Express doesn't have Maintenance Plans, it takes a bit of extra effort to set that up. Here's how I do it:A Windows Scheduled Task runs daily, kicking off sqlexpressmaintplan.cmd:sqlcmd -S SQLSERVER\INSTANCE -i </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/1446508036239707599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=1446508036239707599&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1446508036239707599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1446508036239707599'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/07/maintenance-plans-in-sql-2005-express.html' title='Maintenance Plans in SQL 2005 Express'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5203007697408540436</id><published>2009-06-24T20:43:00.001+05:30</published><updated>2011-07-20T07:45:02.670+05:30</updated><title type='text'>Recently executed SQL Statements</title><summary type='text'>SELECT last_execution_time , [text] AS [Statement]FROM					sys.dm_exec_query_stats				CROSS					APPLY					sys.dm_exec_sql_text(sql_handle)				ORDER					BY last_execution_time DESC</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5203007697408540436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5203007697408540436&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5203007697408540436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5203007697408540436'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/06/recently-executed-sql-statements_24.html' title='Recently executed SQL Statements'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6844501113283728169</id><published>2009-06-24T20:43:00.000+05:30</published><updated>2010-11-30T22:33:10.534+05:30</updated><title type='text'>Recently executed SQL Statements</title><summary type='text'>SELECT last_execution_time , [text] AS [Statement]FROM					sys.dm_exec_query_stats				CROSS					APPLY					sys.dm_exec_sql_text(sql_handle)				ORDER					BY last_execution_time DESC</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6844501113283728169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6844501113283728169&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6844501113283728169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6844501113283728169'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/06/recently-executed-sql-statements.html' title='Recently executed SQL Statements'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-146840005692737990</id><published>2009-06-05T04:08:00.001+05:30</published><updated>2011-07-20T07:45:02.670+05:30</updated><title type='text'>Failover Clustering</title><summary type='text'>Failover Clustering High availability option, standby instance on a different node In case of failover: active transactions are rolled back, connections retry, reconnect to other node Single copy of databases in shared storage Built on top of Windows Server Failover Clustering – up to 8 nodes in SQL 2005, 16 in SQL 2008 SQL Server 2005 – Requires certified hardware See http://</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/146840005692737990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=146840005692737990&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/146840005692737990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/146840005692737990'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/06/failover-clustering_05.html' title='Failover Clustering'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-1677002505574107502</id><published>2009-06-05T04:08:00.000+05:30</published><updated>2010-11-30T22:33:10.638+05:30</updated><title type='text'>Failover Clustering</title><summary type='text'>Failover Clustering High availability option, standby instance on a different node In case of failover: active transactions are rolled back, connections retry, reconnect to other node Single copy of databases in shared storage Built on top of Windows Server Failover Clustering – up to 8 nodes in SQL 2005, 16 in SQL 2008 SQL Server 2005 – Requires certified hardware See http://</summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/1677002505574107502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=1677002505574107502&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1677002505574107502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1677002505574107502'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/06/failover-clustering.html' title='Failover Clustering'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-1877097578152599023</id><published>2009-06-05T04:05:00.001+05:30</published><updated>2011-07-20T07:45:02.670+05:30</updated><title type='text'>SQL Server 2008 Database Mirroring</title><summary type='text'>Database MirroringSoftware solution for high availability. Per database and not per server. Increase data protection, availability, upgrade availability. Careful – A lot of things live outside the database SQL HA options for the masses, without the high-end hardware requirement. Very popular option. See http://msdn.microsoft.com/en-us/library/ms189852.aspx					Requirements and LimitationsFull </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/1877097578152599023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=1877097578152599023&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1877097578152599023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/1877097578152599023'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/06/sql-server-2008-database-mirroring_05.html' title='SQL Server 2008 Database Mirroring'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-3523761721255331874</id><published>2009-06-05T04:05:00.000+05:30</published><updated>2010-11-30T22:33:10.679+05:30</updated><title type='text'>SQL Server 2008 Database Mirroring</title><summary type='text'>Database MirroringSoftware solution for high availability. Per database and not per server. Increase data protection, availability, upgrade availability. Careful – A lot of things live outside the database SQL HA options for the masses, without the high-end hardware requirement. Very popular option. See http://msdn.microsoft.com/en-us/library/ms189852.aspx					Requirements and LimitationsFull </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/3523761721255331874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=3523761721255331874&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3523761721255331874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/3523761721255331874'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/06/sql-server-2008-database-mirroring.html' title='SQL Server 2008 Database Mirroring'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-5059504005255005261</id><published>2009-05-21T22:51:00.001+05:30</published><updated>2011-07-20T07:45:02.670+05:30</updated><title type='text'>DBA database management checklist</title><summary type='text'>   Problem   For both old and new DBAs there are fundamental procedures that should be addressed and proper processes put in place to handle various areas of database management for SQL Server. Whether you are a full time DBA or this is one of many job roles that you perform the same basic steps should be implemented and adhered to in order to have some peace of mind that you are performing the </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/5059504005255005261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=5059504005255005261&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5059504005255005261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/5059504005255005261'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/05/dba-database-management-checklist_21.html' title='DBA database management checklist'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10550791.post-6160216862048549167</id><published>2009-05-21T22:51:00.000+05:30</published><updated>2010-11-30T22:33:10.761+05:30</updated><title type='text'>DBA database management checklist</title><summary type='text'>   Problem   For both old and new DBAs there are fundamental procedures that should be addressed and proper processes put in place to handle various areas of database management for SQL Server. Whether you are a full time DBA or this is one of many job roles that you perform the same basic steps should be implemented and adhered to in order to have some peace of mind that you are performing the </summary><link rel='replies' type='application/atom+xml' href='http://sequelserver.blogspot.com/feeds/6160216862048549167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10550791&amp;postID=6160216862048549167&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6160216862048549167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10550791/posts/default/6160216862048549167'/><link rel='alternate' type='text/html' href='http://sequelserver.blogspot.com/2009/05/dba-database-management-checklist.html' title='DBA database management checklist'/><author><name>Aneesh</name><uri>http://www.blogger.com/profile/14630205472188972293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://inlinethumb51.webshots.com/2930/2528181020093185927S600x600Q85.jpg'/></author><thr:total>0</thr:total></entry></feed>
