<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.sqlservercentral.com/blogs/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Vinay Thakur</title><subtitle type="html" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/atom.aspx</id><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/default.aspx" /><link rel="self" type="application/atom+xml" href="http://www.sqlservercentral.com/blogs/vinaythakur/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.20917.1142">Community Server</generator><updated>2009-10-13T20:28:55Z</updated><entry><title>New Blog Location</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2010/01/08/new-blog-location.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2010/01/08/new-blog-location.aspx</id><published>2010-01-09T05:13:11Z</published><updated>2010-01-09T05:13:11Z</updated><content type="html">&lt;div&gt;Hi Friends.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanx for your support. for this year onwords I will be bloging on my own website....&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Hope to see you there&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;a href="http://rdbmsexperts.com/Blogs/"&gt;http://rdbmsexperts.com/Blogs/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanx.&lt;/div&gt;
&lt;div&gt;Vinay&lt;/div&gt;&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=16804" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Error Log:</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/12/25/error-log_3A00_.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/12/25/error-log_3A00_.aspx</id><published>2009-12-26T01:02:45Z</published><updated>2009-12-26T01:02:45Z</updated><content type="html">&lt;p&gt;Following steps happened when sql server starts… we can see that in error log:: &lt;p&gt;1. Build of sql server and platform as Microsoft Sql server 2005 version. Edition on OS. &lt;p&gt;2. Windows process ID (kid): &lt;p&gt;3. Error log file location. &lt;p&gt;4. when last time sql was down and what spid it used. &lt;p&gt;5. New to sql server 2005, start up options either from register/command prompt. &lt;p&gt;6. –d Read “Master.mdf” file and store configuration into memory. &lt;p&gt;7. –e error log file &lt;p&gt;8. –l master.ldf file &lt;p&gt;9. Configuration of the system : CPU… &lt;p&gt;10. SQLOS subsystem initialization. memory and mode of operation DAC/light weighted pooling. &lt;p&gt;11. DTC Initialization attempt if any recovery require. &lt;p&gt;12. SQL Network Interface (SNI) initialize prepare server to listen connection. &lt;p&gt;13. Main background tread will start : &amp;quot; – LazyWriter, LogWriter, Checkpoint and database mirroring. &lt;p&gt;14. Ready to startup system database and user database (it goes with session(s)). &lt;p&gt;15. Configure Default trace if any. &lt;p&gt;16. Resource database is started. &lt;p&gt;17. Server starts – Service Broker and Mirroring. during connection starts. &lt;p&gt;18. Master startup stored procedure runs if any. &lt;p&gt;Happy Holiday – Merry Christmas. &lt;p&gt;Thanx. &lt;p&gt;Vinay &lt;p&gt;Reference: &lt;p&gt;Book:  &lt;em&gt;SQL Server&lt;/em&gt; 2005 &lt;em&gt;Practical Troubleshooting&lt;/em&gt;: The Database Engine: Ken Henderson.&lt;/p&gt;  &lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=16509" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Remove Replication:</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/12/16/remove-replication_3A00_.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/12/16/remove-replication_3A00_.aspx</id><published>2009-12-17T03:45:57Z</published><updated>2009-12-17T03:45:57Z</updated><content type="html">&lt;p align="justify"&gt;Its quite some time that I blog… but good news is I have some good stuff to blog on… so could be you will see some good blog in pipeline soon.&lt;/p&gt;
&lt;p align="justify"&gt;I blog on how to configure the replication &lt;a href="http://vinay-thakur.spaces.live.com/blog/cns!645E3FC14D5130F2!223.entry"&gt;here&lt;/a&gt; with commands and a separate blog for replication setup &lt;a href="http://vinay-thakur.spaces.live.com/blog/cns!645E3FC14D5130F2!592.entry"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p align="justify"&gt;I might have discussed about how to remove replication on my earlier &lt;a href="http://vinay-thakur.spaces.live.com/blog/cns!645E3FC14D5130F2!590.entry"&gt;blog&lt;/a&gt; but would like to have separate blog for future reference so blogging this again about how to remove the replication, I know its very important to remove the replication properly.&lt;/p&gt;
&lt;p align="justify"&gt;Replication removal steps:&lt;/p&gt;
&lt;p align="justify"&gt;&lt;strong&gt;-----------------------------Process 1 –replication clean up on server&lt;/strong&gt;&lt;/p&gt;
&lt;p align="justify"&gt;1. Remove the subscriber.&lt;/p&gt;
&lt;p align="justify"&gt;a.Go to Replication –&amp;gt;selection Publications-&amp;gt;select Publisher, you will get the respective subscriber(s) for that publisher. select subscriber and right click –&amp;gt;delete&lt;/p&gt;
&lt;p align="justify"&gt;2 Remove the publisher.&lt;/p&gt;
&lt;p align="justify"&gt;Go to Replication –&amp;gt;selection Publications-&amp;gt;select Publisher –&amp;gt;Right click and delete&lt;/p&gt;
&lt;p align="justify"&gt;after this I generally enable none on&lt;/p&gt;
&lt;p align="justify"&gt;Go to Replication –&amp;gt;–&amp;gt;selection Publications-&amp;gt;Right click –&amp;gt;configuration of publisher, subscriber or distributor and enable none for all.&lt;/p&gt;
&lt;p align="justify"&gt;3 Remove the Distributor.&lt;/p&gt;
&lt;p align="justify"&gt;Go to Server Property-&amp;gt; Select Replication tab –&amp;gt; select “Disable”  button –&amp;gt; this will open a wizard. go through the wizard and disable the distribution. it will drop the distribution database.&lt;/p&gt;
&lt;p align="justify"&gt;or&lt;/p&gt;
&lt;p align="justify"&gt;sp_dropdistributiondb &amp;#39;distribution&amp;#39;&lt;/p&gt;
&lt;p align="justify"&gt;&lt;em&gt;exec master..sp_dropdistributor – this will remove the replication monitor as well and logins &lt;/em&gt;&lt;/p&gt;
&lt;p align="justify"&gt;at the end I generally run&lt;/p&gt;
&lt;p align="justify"&gt;&lt;em&gt;sp_removedbreplication &lt;/em&gt;‘replicated database’ – to make sure we have completely remove the replication&lt;/p&gt;
&lt;p align="justify"&gt;Their is a great KB article which describe it in details.&lt;/p&gt;
&lt;p align="justify"&gt;&lt;a title="http://support.microsoft.com/kb/324401" href="http://support.microsoft.com/kb/324401"&gt;http://support.microsoft.com/kb/324401&lt;/a&gt;&lt;/p&gt;
&lt;p align="justify"&gt;This will also solve the issue with following error:&lt;/p&gt;
&lt;p align="justify"&gt;&lt;span style="color:#ff0000;"&gt;Cannot drop the distribution database ‘distribution’ because it is currently in use.&lt;/span&gt;&lt;/p&gt;
&lt;p align="justify"&gt;&lt;strong&gt;-----------------------------Process 2&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;exec master..sp_dropdistributor @no_checks = 1 
&lt;p&gt;please use it with care as it will not check anything and will delete the distributor corresponding to that replication(subscriber/publisher/distributor including logins).  at the same time its very fast, so if you want to just clean everything from the server specially on dev this is good. 
&lt;p&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/ms173516.aspx" href="http://msdn.microsoft.com/en-us/library/ms173516.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms173516.aspx&lt;/a&gt; 
&lt;p&gt;&lt;strong&gt;-----------------------------Process 3 --check&lt;/strong&gt; 
&lt;p&gt;Today I was working on Transaction replication on Sql server 2000 sp3a... found very weird thing happened I removed replication with above commands no replication onto the server but I was still getting below error: 
&lt;p&gt;&lt;font color="#ff0000"&gt;Server: Msg 3724, Level 16, State 2, Line 1&lt;br /&gt;Cannot drop the table &amp;#39;test1&amp;#39; because it is used for replication.&lt;/font&gt; 
&lt;p&gt;I searched a lot  but could not find much information, I also tried to detach the db and attached on different server but no luck. 
&lt;p&gt;finally found that &amp;quot;replinfo&amp;quot; column from &amp;quot;sysobjects&amp;quot; table 
&lt;p&gt;update sysobjects set replinfo=0 where replinfo=1 
&lt;p&gt;Thanx to Vyas for the great article. 
&lt;p&gt;&lt;a href="http://vyaskn.tripod.com/repl_ans3.htm"&gt;http://vyaskn.tripod.com/repl_ans3.htm&lt;/a&gt; 
&lt;p&gt;I know you might have read the same in my blog but this will be one point for removal of replication and try to keep up to date or keep it with series. 
&lt;p&gt;Thanx. 
&lt;p&gt;Vinay 
&lt;p&gt;Twitter @thakurvinay &lt;/p&gt;&lt;/p&gt;&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=16380" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author><category term="Replication" scheme="http://www.sqlservercentral.com/blogs/vinaythakur/archive/tags/Replication/default.aspx" /></entry><entry><title>Transactional Replication Conversations –Must read</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/12/03/transactional-replication-conversations-_1320_must-read.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/12/03/transactional-replication-conversations-_1320_must-read.aspx</id><published>2009-12-04T04:09:29Z</published><updated>2009-12-04T04:09:29Z</updated><content type="html">&lt;p&gt;&lt;/p&gt; &lt;h1&gt;&lt;/h1&gt; &lt;p&gt;Everyone who wants to know about how transaction replication works and how to improve the performance of transaction replication &lt;strong&gt;must&lt;/strong&gt; read a great blog :&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/chrissk/archive/2009/05/25/transactional-replication-conversations.aspx"&gt;http://blogs.msdn.com/chrissk/archive/2009/05/25/transactional-replication-conversations.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Summary:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;log reader read the transactions(Changes) with sp_replcmds, for xp_replcmds. &lt;/p&gt; &lt;p&gt;then log reader writes into distributor database using sp_MSadd_replcmds&lt;/p&gt; &lt;p&gt;Distributor reads commands using sp_MSget_repl_commands &lt;/p&gt; &lt;p&gt;Distributor writes command to subscriber using sp_MSupd, sp_MSins, sp_MSdel stored procedures&lt;/p&gt; &lt;p&gt; Log reader and distributor keeps the history at distributor database with MSlogreader_history and MSdistribution_history  tables.&lt;/p&gt; &lt;p&gt;This is very important information everyone should know.&lt;/p&gt; &lt;p&gt;Thanx.&lt;/p&gt; &lt;p&gt;Vinay&lt;/p&gt;  &lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=16076" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Microsoft Release end dates:</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/11/13/microsoft-release-end-dates_3A00_.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/11/13/microsoft-release-end-dates_3A00_.aspx</id><published>2009-11-13T23:11:15Z</published><updated>2009-11-13T23:11:15Z</updated><content type="html">&lt;p&gt;I realize that we all should know when the support of Microsoft sql server will expire. we should have this information handy. hence want to keep it in my Blog. &lt;p&gt;As everybody knows sql server 2000 support is already ended. but you know the extended support is exists till 2013… but it might be having some conditions. &lt;p&gt;The Sql server product is very stable now a days. but due to support expires and new features we have to go for next version. I still work on sql server 2000 and I like it. It is still very stable but as support ends we moved to sql server 2005. &lt;p&gt;Below link is having more information on this: &lt;p&gt;&lt;a href="http://blogs.msdn.com/sqlreleaseservices/archive/2009/10/08/end-of-service-pack-support-for-sql-server-2005-sp2-and-sql-server-2008-rtm.aspx"&gt;http://blogs.msdn.com/sqlreleaseservices/archive/2009/10/08/end-of-service-pack-support-for-sql-server-2005-sp2-and-sql-server-2008-rtm.aspx&lt;/a&gt; &lt;p&gt;Thanx. &lt;p&gt;Vinay   &lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15703" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Compare Microsoft Sql Server with other DBMS/RDBMS</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/11/04/compare-microsoft-sql-server-with-other-dbms_2F00_rdbms.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/11/04/compare-microsoft-sql-server-with-other-dbms_2F00_rdbms.aspx</id><published>2009-11-05T04:53:51Z</published><updated>2009-11-05T04:53:51Z</updated><content type="html">&lt;p&gt;Today I was just thinking about to know what is the difference between sql server vs.. other DBMS/RDBMS. so thought of documenting this.searched on net and found some very interesting links….&lt;/p&gt;
&lt;p&gt;All RDBMS... Very good: &lt;br /&gt;&lt;a href="http://troels.arvin.dk/db/rdbms/"&gt;http://troels.arvin.dk/db/rdbms/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Comparison MS Sql Server with Other DBMS/RDBMS&lt;br /&gt;&lt;a href="http://www.mssqlcity.com/Articles/Compare/Compare.htm"&gt;http://www.mssqlcity.com/Articles/Compare/Compare.htm&lt;/a&gt; 
&lt;p&gt;&amp;gt;&amp;gt;MS Sql Server VS Oracle: 
&lt;p&gt;&lt;a href="http://nocoug.org/download/2004-05/BegSQL.ppt"&gt;http://nocoug.org/download/2004-05/BegSQL.ppt&lt;/a&gt; 
&lt;p&gt;&lt;a href="http://www.alinean.com/PDFs/Alinean-MicrosoftAndOracleTCAStudy.pdf"&gt;http://www.alinean.com/PDFs/Alinean-MicrosoftAndOracleTCAStudy.pdf&lt;/a&gt; 
&lt;p&gt;----- so many sites has this info. 
&lt;p&gt;I like this...&lt;br /&gt;&lt;a href="http://www.infoworld.com/d/data-management/real-difference-between-sql-server-and-oracle-755"&gt;http://www.infoworld.com/d/data-management/real-difference-between-sql-server-and-oracle-755&lt;/a&gt; 
&lt;p&gt;&amp;gt;&amp;gt;MS Sql Server VS DB2&lt;br /&gt;&lt;a href="http://download.microsoft.com/download/a/4/7/a47b7b0e-976d-4f49-b15d-f02ade638ebe/ComparingSQLServer2005andDB28.2_DevelopmentProductivity.doc"&gt;http://download.microsoft.com/download/a/4/7/a47b7b0e-976d-4f49-b15d-f02ade638ebe/ComparingSQLServer2005andDB28.2_DevelopmentProductivity.doc&lt;/a&gt; 
&lt;p&gt;&amp;gt;&amp;gt;MS sql server vs Informix 
&lt;p&gt;&lt;a href="http://forums.databasejournal.com/showthread.php?t=19408"&gt;http://forums.databasejournal.com/showthread.php?t=19408&lt;/a&gt; 
&lt;p&gt;&amp;gt;&amp;gt;MS sql server vs. mysql (old)..... &lt;br /&gt;&lt;a href="http://www.tometasoftware.com/mysql_vs_sqlserver.asp"&gt;http://www.tometasoftware.com/mysql_vs_sqlserver.asp&lt;/a&gt; 
&lt;p&gt;&amp;gt;&amp;gt;Sql server VS PostgreSql 
&lt;p&gt;&lt;a href="http://www.postgresonline.com/journal/index.php?/archives/130-Cross-Compare-of-PostgreSQL-8.4,-SQL-Server-2008,-MySQL-5.1.html"&gt;http://www.postgresonline.com/journal/index.php?/archives/130-Cross-Compare-of-PostgreSQL-8.4,-SQL-Server-2008,-MySQL-5.1.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.petefreitag.com/item/5.cfm"&gt;http://www.petefreitag.com/item/5.cfm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://searchoracle.techtarget.com/tip/0,289483,sid41_gci1222615,00.html"&gt;http://searchoracle.techtarget.com/tip/0,289483,sid41_gci1222615,00.html&lt;/a&gt; 
&lt;p&gt;Please share something if you have any. 
&lt;p&gt;Thanx. 
&lt;p&gt;Vinay 
&lt;p&gt;twitter @ThakurVinay 
&lt;p&gt;&lt;a title="http://vinay-thakur.spaces.live.com/" href="http://vinay-thakur.spaces.live.com/"&gt;http://vinay-thakur.spaces.live.com/&lt;/a&gt; 
&lt;p&gt;&lt;a title="http://www.sqlservercentral.com/blogs/vinaythakur" href="http://www.sqlservercentral.com/blogs/vinaythakur"&gt;http://www.sqlservercentral.com/blogs/vinaythakur&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15606" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Comparison Microsoft Sql Server with other DBMS/RDBMS</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/11/04/comparison-microsoft-sql-server-with-other-dbms_2F00_rdbms.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/11/04/comparison-microsoft-sql-server-with-other-dbms_2F00_rdbms.aspx</id><published>2009-11-05T04:53:51Z</published><updated>2009-11-05T04:53:51Z</updated><content type="html">&lt;p&gt;Today I was just thinking about to know what is the difference between sql server vs.. other DBMS/RDBMS. so thought of documenting this.searched on net and found some very interesting links….&lt;/p&gt; &lt;p&gt;All RDBMS... Very good: &lt;br /&gt;&lt;a href="http://troels.arvin.dk/db/rdbms/"&gt;http://troels.arvin.dk/db/rdbms/&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Comparison MS Sql Server with Other DBMS/RDBMS&lt;br /&gt;&lt;a href="http://www.mssqlcity.com/Articles/Compare/Compare.htm"&gt;http://www.mssqlcity.com/Articles/Compare/Compare.htm&lt;/a&gt; &lt;p&gt;&amp;gt;&amp;gt;MS Sql Server VS Oracle:  &lt;p&gt;&lt;a href="http://nocoug.org/download/2004-05/BegSQL.ppt"&gt;http://nocoug.org/download/2004-05/BegSQL.ppt&lt;/a&gt; &lt;p&gt;&lt;a href="http://www.alinean.com/PDFs/Alinean-MicrosoftAndOracleTCAStudy.pdf"&gt;http://www.alinean.com/PDFs/Alinean-MicrosoftAndOracleTCAStudy.pdf&lt;/a&gt; &lt;p&gt;----- so many sites has this info.  &lt;p&gt;I like this...&lt;br /&gt;&lt;a href="http://www.infoworld.com/d/data-management/real-difference-between-sql-server-and-oracle-755"&gt;http://www.infoworld.com/d/data-management/real-difference-between-sql-server-and-oracle-755&lt;/a&gt; &lt;p&gt;&amp;gt;&amp;gt;MS Sql Server VS DB2&lt;br /&gt;&lt;a href="http://download.microsoft.com/download/a/4/7/a47b7b0e-976d-4f49-b15d-f02ade638ebe/ComparingSQLServer2005andDB28.2_DevelopmentProductivity.doc"&gt;http://download.microsoft.com/download/a/4/7/a47b7b0e-976d-4f49-b15d-f02ade638ebe/ComparingSQLServer2005andDB28.2_DevelopmentProductivity.doc&lt;/a&gt; &lt;p&gt;&amp;gt;&amp;gt;MS sql server vs Informix  &lt;p&gt;&lt;a href="http://forums.databasejournal.com/showthread.php?t=19408"&gt;http://forums.databasejournal.com/showthread.php?t=19408&lt;/a&gt; &lt;p&gt;&amp;gt;&amp;gt;MS sql server vs. mysql (old)..... &lt;br /&gt;&lt;a href="http://www.tometasoftware.com/mysql_vs_sqlserver.asp"&gt;http://www.tometasoftware.com/mysql_vs_sqlserver.asp&lt;/a&gt; &lt;p&gt;&amp;gt;&amp;gt;Sql server VS PostgreSql  &lt;p&gt;&lt;a href="http://www.postgresonline.com/journal/index.php?/archives/130-Cross-Compare-of-PostgreSQL-8.4,-SQL-Server-2008,-MySQL-5.1.html"&gt;http://www.postgresonline.com/journal/index.php?/archives/130-Cross-Compare-of-PostgreSQL-8.4,-SQL-Server-2008,-MySQL-5.1.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.petefreitag.com/item/5.cfm"&gt;http://www.petefreitag.com/item/5.cfm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://searchoracle.techtarget.com/tip/0,289483,sid41_gci1222615,00.html"&gt;http://searchoracle.techtarget.com/tip/0,289483,sid41_gci1222615,00.html&lt;/a&gt; &lt;p&gt;Please share something if you have any. &lt;p&gt;Thanx. &lt;p&gt;Vinay &lt;p&gt;twitter @ThakurVinay &lt;p&gt;&lt;a title="http://vinay-thakur.spaces.live.com/" href="http://vinay-thakur.spaces.live.com/"&gt;http://vinay-thakur.spaces.live.com/&lt;/a&gt; &lt;p&gt;&lt;a title="http://www.sqlservercentral.com/blogs/vinaythakur" href="http://www.sqlservercentral.com/blogs/vinaythakur"&gt;http://www.sqlservercentral.com/blogs/vinaythakur&lt;/a&gt;  &lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15510" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Consider this while doing any UPDATE</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/30/consider-this-while-doing-any-update.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/30/consider-this-while-doing-any-update.aspx</id><published>2009-10-31T01:52:24Z</published><updated>2009-10-31T01:52:24Z</updated><content type="html">&lt;p&gt;&lt;strong&gt;Trigger:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When you create trigger for insert and delete we will get two reference table as “inserted” and “deleted” respectively now what if we create a trigger for “update” on trigger, your answer might be  we will get reference table “updated” :-) …. NO their is no updated table in trigger.&lt;/p&gt;
&lt;p&gt;Here when we create a trigger for “update” on any table it will use two reference tables “deleted” and “inserted” to make the update.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Replication:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In the same way when we make any update on publisher it will go to subscriber as two statement Delete that records and insert that records.&lt;/p&gt;
&lt;p&gt;As I already explain it &lt;a href="http://vinay-thakur.spaces.live.com/blog/cns!645E3FC14D5130F2!227.entry"&gt;here&lt;/a&gt; and also discuss about the issue we get due to this &lt;a href="http://vinay-thakur.spaces.live.com/blog/cns!645E3FC14D5130F2!226.entry"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We come across situation that when we have update on primary key. our replication may fail as update will be delete and insert to subscriber.&lt;/p&gt;
&lt;p&gt;&lt;font color="#ff0000"&gt;DELETE statement conflicted with COLUMN REFERENCE constraint 'FK_xxxx'. The conflict occurred in database 'DBnamexxx', table 'tablexxxxx', column 'column_pk'.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;I explain the resolution what I do &lt;a href="http://vinay-thakur.spaces.live.com/blog/cns!645E3FC14D5130F2!226.entry"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update on table:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When we update the data from any column and that data size fits into the page that will be ok. but when the data is not fit into the page they in that case update will delete that records from that page and insert into new page… &lt;/p&gt;
&lt;p&gt;&lt;a title="http://blogs.msdn.com/sqlserverstorageengine/archive/2006/12/13/More-undocumented-fun_3A00_-DBCC-IND_2C00_-DBCC-PAGE_2C00_-and-off_2D00_row-columns.aspx" href="http://blogs.msdn.com/sqlserverstorageengine/archive/2006/12/13/More-undocumented-fun_3A00_-DBCC-IND_2C00_-DBCC-PAGE_2C00_-and-off_2D00_row-columns.aspx"&gt;http://blogs.msdn.com/sqlserverstorageengine/archive/2006/12/13/More-undocumented-fun_3A00_-DBCC-IND_2C00_-DBCC-PAGE_2C00_-and-off_2D00_row-columns.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also update on huge data will also impact the performance. will try to blog more detail about Update in future.&lt;/p&gt;
&lt;p&gt;Let me know your thought on this.&lt;/p&gt;
&lt;p&gt;Thanx.&lt;/p&gt;
&lt;p&gt;Vinay&lt;/p&gt;
&lt;p&gt;@thakurvinay&lt;/p&gt;
&lt;p&gt;&lt;a title="http://www.eggheadcafe.com/software/aspnet/29906548/how-does-update-statement.aspx" href="http://www.eggheadcafe.com/software/aspnet/29906548/how-does-update-statement.aspx"&gt;http://www.eggheadcafe.com/software/aspnet/29906548/how-does-update-statement.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;. &lt;/p&gt;&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15384" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Replication Setup:</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/28/replication-setup_3A00_.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/28/replication-setup_3A00_.aspx</id><published>2009-10-29T01:38:38Z</published><updated>2009-10-29T01:38:38Z</updated><content type="html">&lt;p&gt; &lt;/p&gt; &lt;p&gt;I saw too many questions on forum asking step by step process of configuring replication I have these links in my favorites so though consolidating it.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="3"&gt;For Sql Server 2000:&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Snapshot Replication setup:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;By &lt;a href="http://www.databasejournal.com/feedback.php/http://www.databasejournal.com/features/mssql/article.php/1438201"&gt;&lt;strong&gt;Alexander Chigrik&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.databasejournal.com/features/mssql/article.php/1458491/Setting-Up-Snapshot-Replication-A-Step-by-step-Guide.htm" href="http://www.databasejournal.com/features/mssql/article.php/1458491/Setting-Up-Snapshot-Replication-A-Step-by-step-Guide.htm"&gt;http://www.databasejournal.com/features/mssql/article.php/1458491/Setting-Up-Snapshot-Replication-A-Step-by-step-Guide.htm&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Transaction Replication setup:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This is by &lt;a href="http://www.databasejournal.com/feedback.php/http://www.databasejournal.com/features/mssql/article.php/1438201"&gt;&lt;strong&gt;Alexander Chigrik&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;at database journal you can also find the same at mssqlcity.com&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.databasejournal.com/features/mssql/article.php/1438201/Setting-Up-Transactional-Replication-A-Step-by-step-Guide.htm" href="http://www.databasejournal.com/features/mssql/article.php/1438201/Setting-Up-Transactional-Replication-A-Step-by-step-Guide.htm"&gt;http://www.databasejournal.com/features/mssql/article.php/1438201/Setting-Up-Transactional-Replication-A-Step-by-step-Guide.htm&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Merge Replication setup:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This is also by &lt;a href="http://www.databasejournal.com/feedback.php/http://www.databasejournal.com/features/mssql/article.php/1438201"&gt;&lt;strong&gt;Alexander Chigrik&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.databasejournal.com/features/mssql/article.php/1438231/Setting-Up-Merge-Replication-A-Step-by-step-Guide.htm" href="http://www.databasejournal.com/features/mssql/article.php/1438231/Setting-Up-Merge-Replication-A-Step-by-step-Guide.htm"&gt;http://www.databasejournal.com/features/mssql/article.php/1438231/Setting-Up-Merge-Replication-A-Step-by-step-Guide.htm&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Another for merge replication by &lt;b&gt;&lt;a href="http://www.codeproject.com/Members/D-J-Nagendra"&gt;D J Nagendra&lt;/a&gt;&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.codeproject.com/KB/database/MergeReplication.aspx" href="http://www.codeproject.com/KB/database/MergeReplication.aspx"&gt;http://www.codeproject.com/KB/database/MergeReplication.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;and more information about replication and step by step by &lt;a href="http://www.devarticles.com/cp/bio/Mahesh-Kodli/"&gt;Mahesh Kodli&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.devarticles.com/c/a/SQL-Server/Replication-SQL-Server-2000-Part-2/" href="http://www.devarticles.com/c/a/SQL-Server/Replication-SQL-Server-2000-Part-2/"&gt;http://www.devarticles.com/c/a/SQL-Server/Replication-SQL-Server-2000-Part-2/&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="3"&gt;For Sql Server 2005:&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Transaction Replication setup:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;I always refer this great link by longrujun &lt;/p&gt; &lt;p&gt;&lt;a title="http://blog.csdn.net/longrujun/archive/2006/06/09/783357.aspx" href="http://blog.csdn.net/longrujun/archive/2006/06/09/783357.aspx"&gt;http://blog.csdn.net/longrujun/archive/2006/06/09/783357.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Merge replication setup:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;here is link by &lt;b&gt;&lt;a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=3667128"&gt;Ahmad Eid Salim&lt;/a&gt; &lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.codeproject.com/KB/database/sql2005-replication.aspx" href="http://www.codeproject.com/KB/database/sql2005-replication.aspx"&gt;http://www.codeproject.com/KB/database/sql2005-replication.aspx&lt;/a&gt; &lt;p&gt;Finally To Implement Bidirectional Transactional Replication: &lt;p&gt;&lt;a title="http://support.microsoft.com/kb/820675" href="http://support.microsoft.com/kb/820675"&gt;http://support.microsoft.com/kb/820675&lt;/a&gt; &lt;p&gt;Thanks you very much to all the bloggers to share this valuable information with us. &lt;p&gt;I will try to keep this up to date. Appreciate more links if you have any. &lt;p&gt;Thanx. &lt;p&gt;Vinay &lt;p&gt;twitter @thakurvinay   &lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15300" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Tricks and issues Part 1</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/23/tricks-and-issues-part-1.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/23/tricks-and-issues-part-1.aspx</id><published>2009-10-24T02:50:26Z</published><updated>2009-10-24T02:50:26Z</updated><content type="html">&lt;p&gt;Today was browsing the Blog &lt;a href="http://blog.sqlauthority.com/"&gt;http://blog.sqlauthority.com/&lt;/a&gt; Pinal Dave expert on Sql server and great Blog writer. Got surprise to see the comments on his Blog. Great job and thank you Pinal for having such a wonderful site and sharing valuable information. 
&lt;p&gt;Found following information helpful to me today (*as I was having some issue related to this) 
&lt;p&gt;&lt;strong&gt;Bulk insert CSV and xls:&lt;/strong&gt;&lt;strong&gt; &lt;/strong&gt;
&lt;p&gt;With this script we can import the CSV data into sql server table.&lt;br /&gt;&lt;a href="http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/"&gt;http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/&lt;/a&gt; 
&lt;p&gt;&lt;a href="http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file"&gt;http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file&lt;/a&gt; 
&lt;p&gt;Following script helped me to import excel file 
&lt;p&gt;SELECT &lt;br /&gt;* FROM &lt;strong&gt;OPENDATASOURCE&lt;/strong&gt;('Microsoft.Jet.OLEDB.4.0',&lt;br /&gt;'Data Source=D:\excelsourcefile.xls;Extended Properties=Excel 8.0')...[Sheet1$] 
&lt;p&gt;I used sql server 2000 and sheet 1$ data 
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms179856.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms179856.aspx&lt;/a&gt; 
&lt;p&gt;and if we want to export into xls we can use the below query but we have to give heading Name on excelTargetfile.xls file before running this query: 
&lt;p&gt;INSERT INTO &lt;br /&gt;OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0',&lt;br /&gt;'Data Source=e:\excelTargetfile.xls;Extended Properties=Excel 8.0;')...[Sheet1$]&lt;br /&gt;SELECT name FROM master.dbo.sysdatabases&lt;br /&gt;GO 
&lt;p&gt;we can use the same with OPENROWSET&lt;/p&gt;&lt;font color="#ffffff"&gt;
&lt;p&gt;&lt;/font&gt;&lt;a href="http://www.mssqltips.com/tip.asp?tip=1202"&gt;http://www.mssqltips.com/tip.asp?tip=1202&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926"&gt;http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Job server name change (Instance name). Error 14274:&lt;/strong&gt; 
&lt;p&gt;  
&lt;p&gt;While working on msdb database I restore msdb of other server/instance to different instance. found Pinal’s Blog helped me to solve my issue. by changing the server name in sysjobs table on sql server 2000. 
&lt;p&gt;&lt;a href="http://blog.sqlauthority.com/2006/12/20/sql-server-fix-error-14274-cannot-add-update-or-delete-a-job-or-its-steps-or-schedules-that-originated-from-an-msx-server-the-job-was-not-saved/"&gt;http://blog.sqlauthority.com/2006/12/20/sql-server-fix-error-14274-cannot-add-update-or-delete-a-job-or-its-steps-or-schedules-that-originated-from-an-msx-server-the-job-was-not-saved/&lt;/a&gt; 
&lt;p&gt;We get the same error when server name changes for that we may have to follow Microsoft KB link as follows 
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/281642"&gt;http://support.microsoft.com/kb/281642&lt;/a&gt; 
&lt;p&gt;&lt;strong&gt;Insert multiple records with single insert&lt;/strong&gt; 
&lt;p&gt;Before sql server 2008 to insert multiple records with single query was very difficult, got the very good Blog by Pinal where he shows a trick to insert multiple records with single insert statement as follows link: 
&lt;p&gt;&lt;a href="http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/"&gt;http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/&lt;/a&gt; 
&lt;p&gt;As Microsoft introduce new feature in insert statement were we can insert multiple records with single insert statement simply by a comma separated with multiple records value as follows:&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/dd776381.aspx"&gt;http://msdn.microsoft.com/en-us/library/dd776381.aspx&lt;/a&gt; 
&lt;p&gt;&lt;strong&gt;Sending mail from sql server&lt;/strong&gt; 
&lt;p&gt;using SMTP : 
&lt;p&gt;Following is a great KB articles by Microsoft, which explains everything and gives a sample script for the same. 
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/312839"&gt;http://support.microsoft.com/kb/312839&lt;/a&gt; 
&lt;p&gt;We can use sqlmail and database mail for sending mail via sql server. 
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/311231"&gt;http://support.microsoft.com/kb/311231&lt;/a&gt; 
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms186358.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms186358.aspx&lt;/a&gt; 
&lt;p&gt;Writing this blog to keep things as a reference to me. 
&lt;p&gt;  
&lt;p&gt;Thanx 
&lt;p&gt;Vinay 
&lt;p&gt;Twitter @thakurvinay 
&lt;p&gt;Reference: 
&lt;p&gt;&lt;a href="http://blog.sqlauthority.com/"&gt;http://blog.sqlauthority.com/&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;/p&gt;&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15231" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Some useful commands and sp I use for Transaction Replication:</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/23/some-useful-commands-and-sp-i-use-for-transaction-replication_3A00_.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/23/some-useful-commands-and-sp-i-use-for-transaction-replication_3A00_.aspx</id><published>2009-10-23T23:01:19Z</published><updated>2009-10-23T23:01:19Z</updated><content type="html">&lt;p&gt;I write several blog  about replication and mansion commands and stored procedure related to transaction replication, but I would like to dedicate one blog (series of blogs) which should have all these information.  &lt;p&gt;&lt;strong&gt;&amp;gt;&amp;gt;Some useful commands and stored procedures&lt;/strong&gt; &lt;p&gt;&lt;strong&gt;How it works:&lt;/strong&gt; &lt;p&gt;Log reader agent stores the command and transaction into following tables. &lt;p&gt;SELECT * FROM distribution.dbo.MSrepl_Commands  --- commands for all transactions for replication for seqno or all&lt;br /&gt;   WHERE   xact_seqno = 0x00001C030000F4540018  &lt;p&gt;SELECT * FROM distribution.dbo.MSrepl_transactions  -- -- transactions for particular seqno or all &lt;br /&gt;   WHERE  xact_seqno= 0x00001C030000F4540018  &lt;p&gt;and sql script stores into sp_browsereplcmds stored procedure. &lt;p&gt;sp_browsereplcmds @xact_seqno_start =  '0x00001C030000F4540018',  -- returns all/seqno info (sql query) on replication&lt;br /&gt;    @xact_seqno_end  =  '0x00001C030000F4540018' &lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/library/ms176109.aspx"&gt;http://technet.microsoft.com/en-us/library/ms176109.aspx&lt;/a&gt; &lt;p&gt;It stores all the transactions(sql script) on distribution which will distribute to subscriber.and once these transaction delivers to subscriber. it will remove after “Distribution cleanup job” from these tables. &lt;p&gt;------------------ &lt;p&gt;&lt;strong&gt;Informative Commands:&lt;/strong&gt; &lt;p&gt;&lt;strong&gt;select * from distribution.dbo.MSrepl_errors &lt;/strong&gt; ---returns errors for replication. &lt;p&gt;select * from distribution.dbo.msdistribution_history  ---- job history  &lt;p&gt;select * from distribution.dbo.MSarticles ---- give info about replication  articles  &lt;p&gt;select * from publisher.dbo.sysarticles  ---- give info about replication  articles  &lt;p&gt;Also transaction replication takes article up to &lt;strong&gt;255 columns &lt;/strong&gt;limit.  &lt;p&gt;&lt;strong&gt;To get the information about publisher from subscriber:&lt;/strong&gt; &lt;p&gt;exec sp_MSenumsubscriptions 'both'&lt;br /&gt;SELECT * FROM MSreplication_subscriptions  &lt;p&gt;&lt;strong&gt;To remove the Replication:&lt;/strong&gt; &lt;p&gt;* Once we found on our dev server, the distribution database was not properly deleted and we could not able to work on it.  &lt;p&gt;We wanted to drop the distribution but system was not allowing us... entry was their in this table. &lt;p&gt;select * from distribution.dbo.msdistribution_agents  --- distributor agent info &lt;p&gt;To remove the unwanted Replication follow the below link: &lt;p&gt;&lt;a href="http://support.microsoft.com/kb/324401"&gt;http://support.microsoft.com/kb/324401&lt;/a&gt; &lt;p&gt;I mostly use the following commands for the same: &lt;p&gt;sp_removedbreplication ‘publisherDB’ &lt;p&gt;exec master..sp_dropdistributor @no_checks = 1  &lt;p&gt;I will blog more about useful commands related to replication. &lt;p&gt;Thanx. &lt;p&gt;Vinay &lt;p&gt;Twitter @thakurvinay &lt;p&gt;Reference: &lt;p&gt;&lt;a href="http://www.replicationanswers.com/default.asp"&gt;http://www.replicationanswers.com/default.asp&lt;/a&gt; &lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/library/ms151198.aspx"&gt;http://technet.microsoft.com/en-us/library/ms151198.aspx&lt;/a&gt;&lt;/p&gt;  &lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15232" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Logins no longer exists.</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/22/logins-no-longer-exists_2E00_.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/22/logins-no-longer-exists_2E00_.aspx</id><published>2009-10-22T21:55:55Z</published><updated>2009-10-22T21:55:55Z</updated><content type="html">&lt;p&gt;Today while checking the logins, just want to clear/clean logins which are no longer exists on NT domain.  &lt;p&gt;To get the logins which are no longer exits run the following:  &lt;p&gt;EXEC master.dbo.sp_validatelogins  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms181728.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms181728.aspx&lt;/a&gt;  &lt;p&gt;It will show you the list of SID and logins which are not exists. And then after that run the below command to remove that login.  &lt;p&gt;Exec.sp_revokelogin ‘domain\Login name’  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms188784.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms188784.aspx&lt;/a&gt;  &lt;p&gt;This is old commands and will be remove in future release… so if you are using sql server 2005 and above use below command which will be same as sp_revokelogin.  &lt;p&gt;DROP LOGIN login_name  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms188012(SQL.90).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms188012(SQL.90).aspx&lt;/a&gt;  &lt;p&gt;You can use the Enterprise Manager or SSMS for the same.  &lt;p&gt;Go to Securities –&amp;gt; logins –&amp;gt; Right click and Delete login.  &lt;p&gt;HTH.  &lt;p&gt;Vinay  &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;p&gt;twitter @thakurvinay.&lt;/p&gt;  &lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15233" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Table Variable and Temp Table</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/16/table-variable-and-temp-table.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/16/table-variable-and-temp-table.aspx</id><published>2009-10-16T22:28:31Z</published><updated>2009-10-16T22:28:31Z</updated><content type="html">&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Today I come across the great blog by &lt;a href="http://www.sqlservercentral.com/Authors/Articles/Wayne_Sheffield/380617/"&gt;Wayne Sheffield&lt;/a&gt; on Sqlservercentral.com about temp table and table variable so I would like to keep this blog as my reference to this so blogging about it.&lt;/p&gt;
&lt;p&gt;&lt;a title="http://www.sqlservercentral.com/articles/Temporary+Tables/66720/" href="http://www.sqlservercentral.com/articles/Temporary+Tables/66720/"&gt;http://www.sqlservercentral.com/articles/Temporary+Tables/66720/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This blog  explains everything about this as well as provide us some good links.&lt;/p&gt;
&lt;p&gt;HTH.&lt;/p&gt;
&lt;p&gt;Vinay&lt;/p&gt;&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15234" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Network backup Access via Query Analyzer</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/14/network-backup-access-via-query-analyzer.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/14/network-backup-access-via-query-analyzer.aspx</id><published>2009-10-14T20:56:29Z</published><updated>2009-10-14T20:56:29Z</updated><content type="html">&lt;p&gt;Hi,&lt;/p&gt; &lt;p&gt;Today while working on query analyzer found very interesting thing about security.&lt;/p&gt; &lt;p&gt;My sql server A is running with service account which is same as service account of server B and having all access.and I am login with my credential to server A, I am not having any access to server B.When I open a query analyzer with my credential.and run a restore command like this.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Restore database B_DB_on_A from disk =’\\B_servername\Drive$\backupfilelocation\backupfile.bkp’&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Here the backup file is at located on  &lt;strong&gt;B&lt;/strong&gt; server. where I don't have access but as sql server A running with service account this command works and it will restore the database.&lt;/p&gt; &lt;p&gt;This works well if you want to restore things production to development.&lt;/p&gt; &lt;p&gt;HTH.&lt;/p&gt; &lt;p&gt;Vinay &lt;/p&gt;  &lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15235" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry><entry><title>Blogging</title><link rel="alternate" type="text/html" href="http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/13/blogging.aspx" /><id>http://www.sqlservercentral.com/blogs/vinaythakur/archive/2009/10/13/blogging.aspx</id><published>2009-10-14T02:28:55Z</published><updated>2009-10-14T02:28:55Z</updated><content type="html">&lt;p&gt;Hi,  &lt;p&gt;Yesterday while talking to my friend, he reviewed my blog and suggested that I was having so many spelling issues in my blog... so was working from morning to correct that and finally feels its corrected. I installed Windows Live Writer to write a blog… hope now on I will not have any spelling mistakes in my blogging.  &lt;p&gt;  &lt;p&gt;I blog because it will help me for future reference, and it will be in my collection. also it might help others as others blog which helped me a lot.  &lt;p&gt;I will try to improve my blogging and knowledge…  &lt;p&gt;Thanx (This is my way of saying &lt;strong&gt;Thanks&lt;/strong&gt;).  &lt;p&gt;Vinay    &lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15236" width="1" height="1"&gt;</content><author><name>hi2vinay@gmail.com</name><uri>http://www.sqlservercentral.com/blogs/members/hi2vinay_4000_gmail.com.aspx</uri></author></entry></feed>