<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; MSSQL</title>
	<atom:link href="http://eitwebguru.com/category/microsoft-windows/mssql/feed/" rel="self" type="application/rss+xml" />
	<link>http://eitwebguru.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 04:53:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>FIX:- Login failed for user &#8216;sa&#8217;. The user is not associated with a trusted SQL Server connection</title>
		<link>http://eitwebguru.com/fix-login-failed-for-user-sa-the-user-is-not-associated-with-a-trusted-sql-server-connection/</link>
		<comments>http://eitwebguru.com/fix-login-failed-for-user-sa-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 02:18:22 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Error: 18452]]></category>
		<category><![CDATA[Login failed for user]]></category>
		<category><![CDATA[Microsoft SQL Server Error: 18452]]></category>
		<category><![CDATA[MSSQL 2005 login Error]]></category>
		<category><![CDATA[MSSQL Management Studio Error]]></category>
		<category><![CDATA[SA user permissions]]></category>
		<category><![CDATA[Unable to login into MSSQL]]></category>
		<category><![CDATA[user is not associated with a trusted SQL Server connection]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=56</guid>
		<description><![CDATA[Tweet Sometime while connecting MSSQL 2005 Remotely OR locally using MSSQL Management Studio (using user as SA) it throw following Error Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&#38;EvtSrc=MSSQLServer&#38;EvtID=18452&#38;LinkId=20476 This Error occurs when SQL Server doesn&#8217;t support SQL [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Ffix-login-failed-for-user-sa-the-user-is-not-associated-with-a-trusted-sql-server-connection%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/fix-login-failed-for-user-sa-the-user-is-not-associated-with-a-trusted-sql-server-connection/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/fix-login-failed-for-user-sa-the-user-is-not-associated-with-a-trusted-sql-server-connection/"  data-text="FIX:- Login failed for user &#8216;sa&#8217;. The user is not associated with a trusted SQL Server connection" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/fix-login-failed-for-user-sa-the-user-is-not-associated-with-a-trusted-sql-server-connection/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/fix-login-failed-for-user-sa-the-user-is-not-associated-with-a-trusted-sql-server-connection/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p align="justify"><span style="font-family: Verdana; font-size: small;">Sometime while connecting <strong>MSSQL 2005</strong> Remotely OR locally using MSSQL Management Studio (using user as SA) it throw following Error</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 80px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong><span style="color: #ff0000;">Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)
</span>
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;EvtSrc=MSSQLServer&amp;EvtID=18452&amp;LinkId=20476</strong></pre>
<p align="justify"><span style="font-family: Verdana; font-size: small;">This Error occurs when SQL Server doesn&#8217;t support SQL Server Authentication Mode (Mixed Mode for MSSQL 2000). This issue can be fixed using following Steps:</span></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">1) Connect the MSSQL server using Windows Authentication of the server.</span></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;"><img class="aligncenter size-full wp-image-57" src="http://eitwebguru.com/wp-content/uploads/2009/07/mssql1.png" alt="mssql1 FIX:  Login failed for user sa. The user is not associated with a trusted SQL Server connection" width="416" height="309" title="FIX:  Login failed for user sa. The user is not associated with a trusted SQL Server connection" /><br />
</span></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">2) Right Click on the server name in the tree on the left and go to properties.</span></p>
<p style="text-align: center;" align="justify"><span style="font-family: Verdana; font-size: small;"><img class="aligncenter size-full wp-image-63" src="http://eitwebguru.com/wp-content/uploads/2009/07/mssql21.png" alt="mssql21 FIX:  Login failed for user sa. The user is not associated with a trusted SQL Server connection" width="500" height="267" title="FIX:  Login failed for user sa. The user is not associated with a trusted SQL Server connection" /><br />
</span></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">3) Click the <strong>Security</strong> Option. Now under Server authentication Select &#8220;<strong>SQL Server and Windows Authentication Mode</strong>&#8221; and press OK.</span></p>
<p style="text-align: center;" align="justify"><span style="font-family: Verdana; font-size: small;"><img class="aligncenter size-full wp-image-64" src="http://eitwebguru.com/wp-content/uploads/2009/07/mssql31.png" alt="mssql31 FIX:  Login failed for user sa. The user is not associated with a trusted SQL Server connection" width="500" height="375" title="FIX:  Login failed for user sa. The user is not associated with a trusted SQL Server connection" /></span></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">Now try to connect MSSQL using SA user. Please refer <strong>Microsoft KB Article <a target="_blank" href="http://support.microsoft.com/kb/840219" target="_blank">840219</a></strong> for more information</span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/fix-login-failed-for-user-sa-the-user-is-not-associated-with-a-trusted-sql-server-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL 2005 Error: Cannot recover the master database</title>
		<link>http://eitwebguru.com/mssql-2005-error-cannot-recover-the-master-database/</link>
		<comments>http://eitwebguru.com/mssql-2005-error-cannot-recover-the-master-database/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 22:51:25 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[MSSQL 2005 Error]]></category>
		<category><![CDATA[rebuild master database]]></category>
		<category><![CDATA[recover master database]]></category>
		<category><![CDATA[repair system database]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=667</guid>
		<description><![CDATA[Tweet Sometime due to some technical problems or uncleaned shutdown master database of MSSQL gets corrupted and while starting MSSQL service it throws following Error Application Log in Event Viewer shows following Error Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Fmssql-2005-error-cannot-recover-the-master-database%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/mssql-2005-error-cannot-recover-the-master-database/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/mssql-2005-error-cannot-recover-the-master-database/"  data-text="MSSQL 2005 Error: Cannot recover the master database" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/mssql-2005-error-cannot-recover-the-master-database/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/mssql-2005-error-cannot-recover-the-master-database/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Sometime due to some technical problems or uncleaned shutdown master database of MSSQL gets corrupted and while starting MSSQL service it throws following Error</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><a href="http://eitwebguru.com/wp-content/uploads/2010/04/mssqlerror.png"><img class="aligncenter size-medium wp-image-668" src="http://eitwebguru.com/wp-content/uploads/2010/04/mssqlerror-300x48.png" alt="mssqlerror 300x48 MSSQL 2005 Error: Cannot recover the master database" width="300" height="48" title="MSSQL 2005 Error: Cannot recover the master database" /></a><br /></span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Application Log in Event Viewer </span></strong><span style="font-family: Verdana; font-size: small;">shows following Error</span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it.</span></strong></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;"><a href="http://eitwebguru.com/wp-content/uploads/2010/04/mssqlerror1.png"><img class="aligncenter size-medium wp-image-669" src="http://eitwebguru.com/wp-content/uploads/2010/04/mssqlerror1-270x300.png" alt="mssqlerror1 270x300 MSSQL 2005 Error: Cannot recover the master database" width="270" height="300" title="MSSQL 2005 Error: Cannot recover the master database" /></a><br /></span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">The above error shows that the<strong> System Database like Master has been corrupted</strong>. To fix this issue we need to rebuild the MSSQL system databases from Installation Disk.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Insert <strong>MSSQL Installation Disk</strong> in Optical Disk Drive</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">2) Go to <strong>Command Promp</strong>t (<strong>Start &gt;&gt; run &gt;&gt; cmd &gt;&gt; Enter</strong>)</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">3) Execute Following Command:</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 45px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff; text-align: justify;">start /wait []\setup.exe /qn INSTANCENAME=<strong>[Instance Name]</strong> REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=<strong>[Password]</strong></div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Here, <strong>[Instance Name]</strong> will be the name of the MSSQL instance you want to set like MSSQLSERVER and <strong>[Password]</strong> will be the sa password for MSSQL.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Now try to start MSSQL service.</span></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 47px; width: 1px; height: 1px; overflow: hidden; text-align: justify;"><img src="file:///C:/DOCUME%7E1/Admin/LOCALS%7E1/Temp/moz-screenshot.png" alt="moz screenshot MSSQL 2005 Error: Cannot recover the master database"  title="MSSQL 2005 Error: Cannot recover the master database" /></div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/mssql-2005-error-cannot-recover-the-master-database/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cannot Connect to WMI Provider. You do not have permissions of the server is unreachable</title>
		<link>http://eitwebguru.com/cannot-connect-to-wmi-provider-you-do-not-have-permissions-of-the-server-is-unreachable/</link>
		<comments>http://eitwebguru.com/cannot-connect-to-wmi-provider-you-do-not-have-permissions-of-the-server-is-unreachable/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 22:46:02 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Plesk For Windows]]></category>
		<category><![CDATA[Cannot Connect to WMI Provider]]></category>
		<category><![CDATA[mofcomp]]></category>
		<category><![CDATA[MSSQL Configuration Manager Error]]></category>
		<category><![CDATA[MSSQl Error]]></category>
		<category><![CDATA[You do not have permissions of the server is unreachable]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=194</guid>
		<description><![CDATA[Tweet Sometime while connecting to MSSQL Server Configuration Manager it throws following Error Cannot Connect to WMI Provider. You do not have permissions of the server is unreachable. Note that you can only manage SQL Server 2005 servers with the SQL Server Configuration Manager. Invalid namespace[0x8004100e] I have searched on Google and found that it [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Fcannot-connect-to-wmi-provider-you-do-not-have-permissions-of-the-server-is-unreachable%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/cannot-connect-to-wmi-provider-you-do-not-have-permissions-of-the-server-is-unreachable/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/cannot-connect-to-wmi-provider-you-do-not-have-permissions-of-the-server-is-unreachable/"  data-text="Cannot Connect to WMI Provider. You do not have permissions of the server is unreachable" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/cannot-connect-to-wmi-provider-you-do-not-have-permissions-of-the-server-is-unreachable/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/cannot-connect-to-wmi-provider-you-do-not-have-permissions-of-the-server-is-unreachable/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Sometime while connecting to MSSQL Server Configuration Manager it throws following Error</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 55px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><span style="color: #ff0000;"><strong>Cannot Connect to WMI Provider. You do not have permissions of the server is unreachable. Note that you can only manage SQL Server 2005 servers with the SQL Server Configuration Manager.
Invalid namespace[0x8004100e]</strong></span></pre>
<p style="text-align: justify;">
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-198" title="sql-error" src="http://eitwebguru.com/wp-content/uploads/2009/10/sql-error1-300x60.jpg" alt="sql error1 300x60 Cannot Connect to WMI Provider. You do not have permissions of the server is unreachable" width="300" height="60" /></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">I have searched on Google and found that it happens when 32bit MSSSQL application is installed on 64bit Server and they suggested to execute the following command to fix the issue.<br />
</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 40px; text-align: center; font-family: Verdana; font-size: small;" dir="ltr"><strong>mofcomp "%programfiles%\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof"</strong></pre>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><br />
MOF files are appropriate for static management data or dynamic management data. Static data includes details such as the computer user&#8217;s phone number, office number, and name. Dynamic data includes details such as Microsoft SQL Server(tm) database sizes and applications installed with Windows Installer.</span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/cannot-connect-to-wmi-provider-you-do-not-have-permissions-of-the-server-is-unreachable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Find Table Count and Tables without Primary Key in MS SQL</title>
		<link>http://eitwebguru.com/find-table-count-and-tables-without-primary-key-in-mssql/</link>
		<comments>http://eitwebguru.com/find-table-count-and-tables-without-primary-key-in-mssql/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 20:13:39 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Find table Count]]></category>
		<category><![CDATA[MSSQL query]]></category>
		<category><![CDATA[primary key column error]]></category>
		<category><![CDATA[Table without Primary Key]]></category>
		<category><![CDATA[transaction replication primary key error]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=1336</guid>
		<description><![CDATA[Tweet Few days ago while working on MS SQL 2008 Transactional Replication I have faced following two issue 1) To find out the total number of tables to verify that Primary Server and Secondary server have same table count. 2) Tables without Primary key: After replication setup I have found that some tables were not [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Ffind-table-count-and-tables-without-primary-key-in-mssql%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/find-table-count-and-tables-without-primary-key-in-mssql/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/find-table-count-and-tables-without-primary-key-in-mssql/"  data-text="Find Table Count and Tables without Primary Key in MS SQL" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/find-table-count-and-tables-without-primary-key-in-mssql/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/find-table-count-and-tables-without-primary-key-in-mssql/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>Few days ago while working on MS SQL 2008 Transactional Replication I have faced following two issue<br />
1) To find out the total number of tables to verify that Primary Server and Secondary server have same table count.<br />
2) Tables without Primary key: After replication setup I have found that some tables were not replication. When I checked the logs it showed following error</p>
<p>&#8220;<span style="color: #ff0000;"><strong>This table cannot be published because it does not have a primary key column. Primary key columns are required for all tables in transactional publications.</strong></span>&#8221;</p>
<p><strong>1) Find Number of Tables:</strong></p>
<p>a) Open MSSQL management studio and login using SA password or Administrator access.<br />
b) Click on &#8220;New Query&#8221; and select the database using following command</p>
<div style="background-color: #eeeeee; width: 550px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;">use &lt;database name&gt;</div>
<p>&nbsp;</p>
<p>c) now execute following Query to count the total number of tables in the database.</p>
<div style="background-color: #eeeeee; width: 550px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;">Select Count(*) As TableCount<br />
From Information_Schema.Tables<br />
Where Table_Type = &#8216;BASE TABLE&#8217;</div>
<p>&nbsp;</p>
<p>You will get result like:</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/09/1.png"><img class="size-medium wp-image-1338 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/09/1-300x137.png" alt="1 300x137 Find Table Count and Tables without Primary Key in MS SQL" width="300" height="137" title="Find Table Count and Tables without Primary Key in MS SQL" /></a></p>
<p><strong>2) Tables without primary key:</strong></p>
<p>a) Open MSSQL management studio and login using SA password or Administrator access.<br />
b) Click on &#8220;New Query&#8221; and select the database using following command</p>
<div style="background-color: #eeeeee; width: 550px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;">use &lt;database name&gt;</div>
<p>&nbsp;</p>
<p>c) now execute following Query to find the Tables without Primary Key.</p>
<div style="background-color: #eeeeee; width: 550px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;">SELECT DISTINCT<br />
T.TABLE_CATALOG<br />
, T.TABLE_SCHEMA<br />
, T.TABLE_NAME<br />
FROM<br />
INFORMATION_SCHEMA.TABLES T<br />
LEFT OUTER JOIN<br />
INFORMATION_SCHEMA.TABLE_CONSTRAINTS TC<br />
ON TC.TABLE_NAME = T.TABLE_NAME<br />
AND TC.TABLE_SCHEMA = T.TABLE_SCHEMA<br />
AND TC.CONSTRAINT_TYPE = &#8216;PRIMARY KEY&#8217;<br />
WHERE<br />
TC.TABLE_NAME IS NULL<br />
AND T.TABLE_TYPE = &#8216;BASE TABLE&#8217;</div>
<p>&nbsp;</p>
<p>Output tab will show result like:</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/09/2.png"><img class="size-medium wp-image-1339 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/09/2-300x223.png" alt="2 300x223 Find Table Count and Tables without Primary Key in MS SQL" width="300" height="223" title="Find Table Count and Tables without Primary Key in MS SQL" /></a></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/find-table-count-and-tables-without-primary-key-in-mssql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part-III</title>
		<link>http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii/</link>
		<comments>http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 19:50:56 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Configure MSSQL 2008 Publisher]]></category>
		<category><![CDATA[Create MSSQL Publisher]]></category>
		<category><![CDATA[mssql 2008 replication]]></category>
		<category><![CDATA[MSSQL Transaction Replication]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=1270</guid>
		<description><![CDATA[Tweet After you configure the Distributor Server (Guide to MS SQL 2008 Transactional Replication (Configure Distributor) Part-II) now I will explain how you can create &#38; configure the Publisher. Create &#38; Configure Publisher 1) Select the Transactional Databases: Login to MSSQL Management Studio and go to  Server &#62;&#62; Replication (right Click) &#62;&#62; Publisher Properties &#62;&#62; [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Fguide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii/"  data-text="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part-III" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="text-align: justify;">After you configure the Distributor Server (<strong><a target="_blank" title="Permanent Link to Guide to MS SQL 2008 Transactional Replication (Configure Distributor) Part-II" href="../guide-to-ms-sql-2008-transactional-replication-configure-distributor-part-ii/" rel="bookmark">Guide to MS SQL 2008 Transactional Replication (Configure Distributor) Part-II</a></strong>) now I will explain how you can create &amp; configure the Publisher.</p>
<p><span style="text-decoration: underline;"><strong>Create &amp; Configure Publisher</strong></span></p>
<p>1) Select the Transactional Databases: Login to MSSQL Management Studio and go to  <strong>Server &gt;&gt; Replication (right Click) &gt;&gt; Publisher Properties &gt;&gt; Publication Databases &gt;&gt;</strong> <strong>Select the database</strong> you want as Transactional Database and press <strong>OK</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/14.png"><img class="size-medium wp-image-1272 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/14-300x268.png" alt="14 300x268 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="268" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p>2) Now under Replication Right click on Local Publication and select &#8220;<strong>New Publication&#8230;</strong>&#8221;</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/15.png"><img class="size-medium wp-image-1273 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/15-300x227.png" alt="15 300x227 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="227" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p>3) <strong>New Publication Wizard</strong> window will open; Press <strong>Next</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/16.png"><img class="size-medium wp-image-1274 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/16-300x270.png" alt="16 300x270 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="270" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: justify;">4) <strong>Publication Database:</strong> Select the database you want to publish and click on Next.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/17.png"><img class="size-medium wp-image-1275 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/17-300x268.png" alt="17 300x268 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="268" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p>5) <strong>Publication type:</strong> You have to select the publication type you want to create. Select &#8220;Transactional Publication&#8221; and click on Next.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/18.png"><img class="size-medium wp-image-1276 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/18-300x268.png" alt="18 300x268 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="268" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p>6) <strong>Articles:</strong> You have to select the objects which will be published. If you have stored procedures and views in your table you can either publish along with views or stored procedure.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/19.png"><img class="size-medium wp-image-1277 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/19-300x268.png" alt="19 300x268 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="268" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p>7) <strong>Filter Table Rows:</strong> If you want to filter rows or don&#8217;t want to publish any row you can add filter here or you can just press Next without adding filter.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/21.png"><img class="size-medium wp-image-1283 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/21-300x269.png" alt="21 300x269 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="269" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: justify;">8) <strong>Snapshot Agent:</strong> You can manage when Snapshot agent should run. You can configure it to run immediatly or you can schedule it. Press <strong>Next</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/22.png"><img class="size-medium wp-image-1286 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/22-300x270.png" alt="22 300x270 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="270" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: justify;">9) <strong>Wizard Actions:</strong> Select the operations and action wizard will do. Select both the options and click <strong>Next</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/23.png"><img class="size-medium wp-image-1287 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/23-300x269.png" alt="23 300x269 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="269" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p> 10) <strong>Script File Properties:</strong> Mention the path where publication file will be created and press <strong>Next</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/24.png"><img class="size-medium wp-image-1288 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/24-300x271.png" alt="24 300x271 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="271" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: left;">11) Summary will be provided; press <strong>Finish</strong> to complete it and you will get following screen once New Publication has been created successfully.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/25.png"><img class="size-medium wp-image-1289 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/25-300x268.png" alt="25 300x268 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="268" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: left;">The publication that you have created will appears under the Replication folder in SQL Server Management Studio.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/26.png"><img class="size-medium wp-image-1290 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/26-300x296.png" alt="26 300x296 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="296" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: center;">
<p style="text-align: left;"><span style="text-decoration: underline;"><strong>Verify the status of Replication Agent</strong></span></p>
<p style="text-align: justify;">If you configured the &#8220;<strong>Snapshot Agent to start immediately</strong>&#8221; (<strong>on step Number 8</strong>) as recommended, you can now verify the progress of the Snapshot Agent by using Replication Monitor.</p>
<p style="text-align: justify;">1) Login to MSSQL Management Studio and go to  <strong>Server &gt;&gt; Replication &gt;&gt; Local Publication (right Click) &gt;&gt; Launch Replication Monitor</strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/27.png"><img class="size-medium wp-image-1291 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/27-300x241.png" alt="27 300x241 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="241" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: center;">
<p style="text-align: justify;">2) The Publisher is now listed under the My Publishers node of Replication Monitor. Right side panel of the Replication Monitor will show the subscriptions (as we have not yet added any subcriptions it doesn&#8217;t show any).</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/28.png"><img class="size-medium wp-image-1292 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/28-300x189.png" alt="28 300x189 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="189" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: justify;">Now go to Agents tab and make sure Snapshot agent and LogReader Agents are running</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/29.png"><img class="size-medium wp-image-1293 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/29-300x189.png" alt="29 300x189 Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" width="300" height="189" title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part III" /></a></p>
<p style="text-align: justify;">In Part IV (on Monday) I will explain how to configure Subscriber on which data from Publisher will be pushed.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part-IV</title>
		<link>http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-subscriber-part-iv/</link>
		<comments>http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-subscriber-part-iv/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 15:28:41 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Create Push Subscriber]]></category>
		<category><![CDATA[Create Subscriber]]></category>
		<category><![CDATA[Creation Subscription]]></category>
		<category><![CDATA[MSSQL 2008 Transactional Replication]]></category>
		<category><![CDATA[Pull Subscription]]></category>
		<category><![CDATA[Push Subscription]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=1301</guid>
		<description><![CDATA[Tweet In Previous three parts I have explained about Transactional Replication How to configure Distribution Server How to create Publisher  Today in last part of this series I am going to explain how you can create the Subcriber to the Publisher which will complete the replication setup. Before we start the configuration please make sure [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Fguide-to-ms-sql-2008-transactional-replication-create-subscriber-part-iv%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-subscriber-part-iv/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-subscriber-part-iv/"  data-text="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part-IV" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-subscriber-part-iv/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-subscriber-part-iv/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="text-align: justify;">In Previous three parts I have explained about</p>
<ol style="text-align: justify;">
<li><strong><a title="Step by Step Guide to MS SQL 2008 Transactional Replication over Internet Part – I" href="http://eitwebguru.com/step-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i/" target="_blank">Transactional Replication</a></strong></li>
<li><a title="Guide to MS SQL 2008 Transactional Replication (Configure Distributor) Part-II" href="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-configure-distributor-part-ii/" target="_blank"><strong>How to configure Distribution Server</strong></a></li>
<li><a title="Guide to MS SQL 2008 Transactional Replication (Create Publisher) Part-III" href="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-publisher-part-iii/" target="_blank"><strong>How to create Publisher</strong></a></li>
</ol>
<p style="text-align: justify;"> Today in last part of this series I am going to explain how you can create the Subcriber to the Publisher which will complete the replication setup. Before we start the configuration please make sure that the hostname of both the servers are configured properly and include proper enteries in hosts file (Please refer Part-I for more information).</p>
<p><span style="text-decoration: underline;"><strong>Creating a Subscription</strong></span></p>
<p style="text-align: justify;">1) Go to Management studio (On Publisher Server) and right click on the Publication you have created &gt;&gt; <strong>New subcriptions&#8230;</strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/32.png"><img class="size-medium wp-image-1303 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/32-300x281.png" alt="32 300x281 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="281" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">2) <strong>New Subscription Wizard</strong> will open. Press <strong>Next</strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/33.png"><img class="size-medium wp-image-1304 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/33-300x269.png" alt="33 300x269 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="269" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;"> 3) <strong>Publication:</strong> Select the Publication Server from the Drop-down list and then select the Database and publication. Press <strong>Next </strong>after selection.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/34.png"><img class="size-medium wp-image-1305 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/34-300x269.png" alt="34 300x269 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="269" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;"> 4) <strong>Distribution Agent Location:</strong>  There are two type of Subscription i.e. <strong>Push Subscription</strong> and <strong>Pull Subscription</strong> using which we can setup replication. In Push Subscription publisher server pushes any changes made on database to the subscriber where as in case of Pull Subscription subscriber pull the data from publisher on a specified time. Push method is useful when the changes in database need to be replicated as soon as they occur.</p>
<p style="text-align: justify;">So, select Push Subscription and press <strong>Next</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/35.png"><img class="size-medium wp-image-1306 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/35-300x268.png" alt="35 300x268 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="268" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">5) <strong>Subscribers: </strong>Here you have to select the subscriber i.e. <strong>Slave-DB, </strong>from the drop down &#8220;<strong>Add Subscriber</strong>&#8221; select &#8220;<strong>Add New SQL Subscriber&#8230;</strong>&#8220;</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/36.png"><img class="size-medium wp-image-1321 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/36-300x269.png" alt="36 300x269 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="269" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">You will now get a MSSQL Login prompt which is similar to MSSQL Management Studio. Login to the Subscriber server using the &#8220;<strong>Hostname</strong>&#8221; of the server and &#8220;<strong>SA</strong>&#8221; Login Details.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/37.png"><img class="size-medium wp-image-1308 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/37-300x220.png" alt="37 300x220 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="220" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">Select the Subscriber name and in &#8220;<strong>Subscription Database</strong>&#8221; column client on drop-down which will show all the databases on subscriber server. If you have created the database on subscriber just select it or click &#8220;<strong>New database</strong>&#8220;. Press <strong>Next</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/38.png"><img class="size-medium wp-image-1309 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/38-300x269.png" alt="38 300x269 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="269" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">6) <strong>Distribution Agent Security</strong>: This Page allows you to configure Agent security for each Subscriber that you have added, to ensure that the Distribution Agents have the correct permissions.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/36_1.png"><img class="size-medium wp-image-1323 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/36_1-300x270.png" alt="36 1 300x270 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="270" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">I have configured this using &#8220;<strong>SQL Server Agent</strong>&#8221; User as it already in Publisher Access List (PAL). The Windows user that you select must meet the following conditions:</p>
<ol>
<li>The user is included in the PAL.</li>
<li>The user should be a member of the <strong>db_owner</strong> fixed database role in the subscription database.</li>
<li>The user has read permissions on the snapshot share.</li>
</ol>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/36_2.png"><img class="size-medium wp-image-1324 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/36_2-243x300.png" alt="36 2 243x300 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="243" height="300" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">Enter MSSQL SA Login Details and press OK. On the <strong>Distribution Agent Security</strong> window, click <strong>Next</strong>.</p>
<p style="text-align: justify;">7) <strong>Synchronization Schedule</strong>: By default Distributor Agent runs synchronization continuously, keep it as it is and press <strong>Next</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/39.png"><img class="size-medium wp-image-1310 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/39-300x268.png" alt="39 300x268 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="268" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;"> 8) <strong>Initialize Subscriptions: </strong>Select<strong> <strong>Immediately</strong> </strong>in the<strong> <strong>Initialize When </strong></strong>and press <strong>Next.</strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/40.png"><img class="size-medium wp-image-1311 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/40-300x267.png" alt="40 300x267 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="267" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a><strong><strong></strong></strong></p>
<p style="text-align: justify;">9) <strong>Wizard Actions:</strong> Select both the options and press <strong>Next</strong>.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/41.png"><img class="size-medium wp-image-1312 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/41-300x268.png" alt="41 300x268 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="268" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a><strong></strong></p>
<p style="text-align: justify;">10) <strong><strong><a target="_blank" title="Script" href="../category/script/">Script</a> File Properties:</strong> </strong>Mention the path where Subscription file will be created and press<strong> <strong>Next</strong>.</strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/42.png"><img class="size-medium wp-image-1313 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/42-300x267.png" alt="42 300x267 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="267" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">11) <strong>Complete The Wizard: </strong>Summary of configuration will be shown. Press &#8220;<strong>Finish</strong>&#8221; to complete the subscription wizard.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/43.png"><img class="size-medium wp-image-1314 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/43-300x269.png" alt="43 300x269 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="269" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">12) Allow sometime to get it configured and you will able to see following screen when everything is properly configured.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/44.png"><img class="size-medium wp-image-1315 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/44-300x269.png" alt="44 300x269 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="269" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">Close the window and go to MSSQL Management Studio and open <strong>Replication Monitor</strong> for the Replication you have configured. You will able to see the Subscriber name and status now.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/46.png"><img class="size-medium wp-image-1317 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/46-300x187.png" alt="46 300x187 Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" width="300" height="187" title="Guide to MS SQL 2008 Transactional Replication (Create Subscriber) Part IV" /></a></p>
<p style="text-align: justify;">Now you can test the replication by adding or inserting in any table on publisher and it will get replicated in subscriber database as well.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-create-subscriber-part-iv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Step by Step Guide to MS SQL 2008 Transactional Replication over Internet Part &#8211; I</title>
		<link>http://eitwebguru.com/step-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i/</link>
		<comments>http://eitwebguru.com/step-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 14:05:16 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to mssql replication]]></category>
		<category><![CDATA[how transactional replication work]]></category>
		<category><![CDATA[mssql 2008 replication]]></category>
		<category><![CDATA[steps to configure transactional replication]]></category>
		<category><![CDATA[What is replication]]></category>
		<category><![CDATA[what is transactional replication]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=1232</guid>
		<description><![CDATA[Tweet Replication is can be defined as a process of copying or reproducing information between two or more resources to improve reliability, fault-tolerance or accessibility. Replication can be configured on LAN, WAN or on Internet for database where same data is copied and stored on multiple database servers or for web services where website data [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Fstep-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/step-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/step-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i/"  data-text="Step by Step Guide to MS SQL 2008 Transactional Replication over Internet Part &#8211; I" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/step-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/step-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="text-align: justify;"><strong>Replication</strong> is can be defined as a process of copying or reproducing information between two or more resources to improve reliability, fault-tolerance or accessibility. Replication can be configured on LAN, WAN or on Internet for database where same data is copied and stored on multiple database servers or for web services where website data is distributed on various locations to increase the availability of website/database in case of any failure at one location.</p>
<p style="text-align: justify;">Database is a very important constraint of any website or origination as it stores all the data. Any problem or failure in database server can lead many problems like work stoppage, unwanted downtime, loss in terms of money and time etc. to over come such problems most of the organization opt for the database replication solution. Most of the database servers like MySQL, Oracle, MSSQL supports database replications and provide various tools for the it.</p>
<p style="text-align: justify;">In this series I am going to explain how you can configure <strong>MSSQL 2008 Transactional Replication</strong> between two servers which are located in countries on two different continents i.e. America and India. Transactional Replication is a automatic process of distributing changes between master and slave. In this process data is copied in real-time from the master server which is termed as publisher to the slave server which plays the role of subscriber. On its first run Transactional Replication makes complete copy of the Publisher data, and then all subsequent copies transfer modified data to the Subscriber only. Microsoft SQL Server replication uses a publish, distributor and subscribe relation.</p>
<p style="text-align: justify;"><strong>Publisher :</strong> Publisher is the Primary or Master server which host the original data or database where actual or real-time changes/updates are made.<br />
<strong>Subscriber :</strong> The Secondary or slave server which gets or fetch data from Primary (Publisher) Database.<br />
<strong>Distributor :</strong> This is a system or server which manage the data flow in complete replication setup. We can configure Distributor and publisher on single server.</p>
<p style="text-align: justify;">The Snapshot Agent prepares snapshot files of tables and database objects and records synchronization jobs on distributor. Log Reader Agent monitors the transaction log of each database configured in replication and copies the transaction recorded by the Snapshot Agent. The Distribution Agent moves the initial snapshot jobs and the transactions held in the distribution database tables to Subscribers.</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/08/Treplication.jpg"><img class="size-medium wp-image-1233 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/08/Treplication-300x262.jpg" alt="Treplication 300x262 Step by Step Guide to MS SQL 2008 Transactional Replication over Internet Part   I" width="300" height="262" title="Step by Step Guide to MS SQL 2008 Transactional Replication over Internet Part   I" /></a></p>
<p style="text-align: left;"><strong>Transactional replication is helpful when:</strong></p>
<ul>
<li>You want the changes made on primary server get reflected on secondary server as soon as they occur.</li>
<li>You want database to follow ACID properties.</li>
<li>Availability or connectivity of subscriber to the publisher is frequent.</li>
</ul>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Scenario:</strong></span><br />
User X have a website hosted in a US based Datacenter and the website is expected to have heavy traffic which is going to put lots of stress on database. Data of the website including user data, their profiles and other information is stored in the MSSQL 2008 Database. Now the owner want to configure a replication of database (in a remote) to increase the availability and fault-tolerance for the database, so he contacts a datacenter in India to Host his secondary database server in their facility.</p>
<p style="text-align: justify;">In next post (<a title="Guide to MS SQL 2008 Transactional Replication (Configure Distributor) Part – II" href="http://eitwebguru.com/guide-to-ms-sql-2008-transactional-replication-configure-distributor-part-%e2%80%93-ii/"><strong>Guide to MS SQL 2008 Transactional Replication (Configure Distributor) Part – II</strong></a>) I have explained how to configure the servers to host replication and steps to configure distribution server.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/step-by-step-guide-to-ms-sql-2008-transactional-replication-over-internet-part-i/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?</title>
		<link>http://eitwebguru.com/how-to-convertmigratemovecopy-mssql-database-to-mysql-database/</link>
		<comments>http://eitwebguru.com/how-to-convertmigratemovecopy-mssql-database-to-mysql-database/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 05:51:55 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Migration]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=1130</guid>
		<description><![CDATA[Tweet Scenario Your Company/Organization/Institute maintains certain data in MSSQL 2000 but now on suggestion of System Analyst or database administrator you want to move the data to MySQL 5.x. Questions? 1) How to migrate the data? 2) Do we need to recreate the complete database schema? 3) Can we use any third Party Application to [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Fhow-to-convertmigratemovecopy-mssql-database-to-mysql-database%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/how-to-convertmigratemovecopy-mssql-database-to-mysql-database/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/how-to-convertmigratemovecopy-mssql-database-to-mysql-database/"  data-text="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/how-to-convertmigratemovecopy-mssql-database-to-mysql-database/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/how-to-convertmigratemovecopy-mssql-database-to-mysql-database/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="text-align: justify;"><span style="text-decoration: underline;"><span style="color: #ff0000;"><strong><span style="font-family: Verdana; font-size: medium;">Scenario</span></strong></span></span></p>
<p><span style="font-family: Verdana; font-size: small;">Your Company/Organization/Institute maintains certain data in MSSQL 2000 but now on suggestion of System Analyst or database administrator you want to move the data to MySQL 5.x.</span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Questions?</span></strong><br />
<span style="font-family: Verdana; font-size: small;">1) How to migrate the data? </span><br />
<span style="font-family: Verdana; font-size: small;">2) Do we need to recreate the complete database schema? </span><br />
<span style="font-family: Verdana; font-size: small;">3) Can we use any third Party Application to convert it and how feasible it will be?</span><br />
<span style="font-family: Verdana; font-size: small;">etc.</span></p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><span style="color: #339966;"><strong><span style="font-family: Verdana; font-size: medium;">Solution</span></strong></span></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Using following steps you can easily move/convert the data from MSSQL to MySql (Only data will be moved).</span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Downloads Required Tools</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1) MySql ODBC connector:</strong> MySQL ODBC Connector will help Windows OS to configure MySQL as Database Source Name (DSN). It can be downloaded from http://dev.mysql.com/downloads/connector/odbc/5.1.htm </span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><br />
</span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Install MySql ODBC connector on the Server.</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Installation of MySql ODBC connector is pretty easy. You will just have to run setup file and follow the instructions.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><br />
</span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Configure MySQL Database Source Name (DSN)</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Database Source Name or DSN specifies a data structure that contains the information about a specific data source or database that an Open Database Connectivity (ODBC) driver needs in order to connect to that data source or database. To add new DSN follow the instructions given below</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Go to &#8220;<strong>Control Panel -&gt; Administrative Tools -&gt; Data Source</strong>&#8221; which will open following windows. </span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/1.jpg"><img class="size-medium wp-image-1131 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/1-300x244.jpg" alt="1 300x244 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="244" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Click on &#8220;Add&#8230;&#8221; to add new DSN</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>2)</strong> Select &#8220;<strong>MySQL ODBC 5.1 Driver</strong>&#8221; from the list and press &#8220;Finish&#8221;</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/2.jpg"><img class="size-medium wp-image-1132 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/2-300x243.jpg" alt="2 300x243 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="243" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>3)</strong> Once you press Finish &#8220;<strong>MySQL Connector/ODBC Data Source Configuration</strong>&#8221; window will open. </span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/3.jpg"><img class="size-medium wp-image-1133 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/3-300x270.jpg" alt="3 300x270 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="270" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Here, provide the information about DSN, database, password etc. I have used Localhost as TCP/IP Server as I have the MySQL server installed locally and migrating it locally. Once the data is filled you can test the DSN connectivity with database. Then Press Ok to configure the DSN.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>4)</strong> Now ODBC Data Source Administrator will show the Datasource which you have created.</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/4.jpg"><img class="size-medium wp-image-1134 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/4-300x245.jpg" alt="4 300x245 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="245" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Export/Migrate Data from MSSQL to MySQL using DSN</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Go to &#8220;<strong>MSSQL Enterprise Manager &gt;&gt; Databases &gt;&gt; Right Click the database you want to migrate or export &gt;&gt; All Tasks &gt;&gt; Export Data &#8230;</strong>&#8220;</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/5.jpg"><img class="size-medium wp-image-1135 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/5-300x268.jpg" alt="5 300x268 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="268" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>2)</strong> You will get &#8220;<strong>Data Transformation Services Import/Export Wizard</strong>&#8221; Window. Press next.</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/6.jpg"><img class="size-medium wp-image-1136 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/6-300x232.jpg" alt="6 300x232 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="232" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>3) Choose Source:</strong> You have to select the Data Source from where the data will be migrated. As we are going to migrated data from MSSQL to MySQL select &#8220;Microsoft OLE DB Provider for SQL Server&#8221;  and the name of database which you want to migrate.</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/7.jpg"><img class="size-medium wp-image-1137 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/7-300x233.jpg" alt="7 300x233 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="233" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>4) Select Destination</strong>: Select &#8220;<strong>MySQL ODBC 5.1 Driver</strong>&#8221; from dropdown list which will show the list of DSN in drop-down under &#8220;<strong>User/System DSN</strong>&#8220;. Select the DSN you have created and enter the login details.</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/8.jpg"><img class="size-medium wp-image-1138 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/8-300x234.jpg" alt="8 300x234 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="234" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Press <strong>Next</strong> to Continue.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>5)</strong> On &#8220;<strong>Specify Table Copy or Query</strong>&#8221; select &#8220;<strong>Copy table(s) and view(s) from the source database</strong>&#8221; and press next.</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/9.jpg"><img class="size-medium wp-image-1139 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/9-300x233.jpg" alt="9 300x233 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="233" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>6)</strong> Select Source tables(s) and view(s): Select the tables which you want to migrate. I have pressed &#8220;<strong>Select All</strong>&#8221; for complete database migration.</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/10.jpg"><img class="size-medium wp-image-1140 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/10-300x232.jpg" alt="10 300x232 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="232" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Press &#8220;<strong>Next</strong>&#8220;</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>7)</strong> Select &#8220;<strong>Run immediately</strong>&#8220;; press Next and on next screen press Finish to start Migration.</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/11.jpg"><img class="size-medium wp-image-1141 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/11-300x233.jpg" alt="11 300x233 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="233" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/12.jpg"><img class="size-medium wp-image-1142 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/12-300x234.jpg" alt="12 300x234 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="234" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>Now its time to have a cup of coffee</strong> and depending upon size of database it will take 20-30 minutes to complete.</span></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/05/13.jpg"><img class="size-medium wp-image-1143 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/05/13-300x234.jpg" alt="13 300x234 How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" width="300" height="234" title="How to Convert/Migrate/Move/Copy MSSQL Database to MySQL Database?" /></a></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/how-to-convertmigratemovecopy-mssql-database-to-mysql-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unattended MSSQL 2005 Installation &#8211; Command Line Installation of MSSQL</title>
		<link>http://eitwebguru.com/unattended-mssql-2005-installation-command-line-installation-of-mssql/</link>
		<comments>http://eitwebguru.com/unattended-mssql-2005-installation-command-line-installation-of-mssql/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 02:31:40 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Plesk For Windows]]></category>
		<category><![CDATA[Windows Virtuozzo]]></category>
		<category><![CDATA[ADDLOCAL]]></category>
		<category><![CDATA[AGTACCOUNT user]]></category>
		<category><![CDATA[Command Line Installation of MSSQL]]></category>
		<category><![CDATA[Install MSSQL from Command prompt]]></category>
		<category><![CDATA[MSSQL Installation Parameters]]></category>
		<category><![CDATA[SQLACCOUNT user]]></category>
		<category><![CDATA[SQLBROWSERACCOUNT user]]></category>
		<category><![CDATA[Unattended MSSQL 2005 Installation]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=500</guid>
		<description><![CDATA[Tweet Microsoft SQL Server is a relational model database server produced by Microsoft and it&#8217;s Installation is quite Easy using GUI where a user has to selects the options which he/she needs with the database server and install it. We can automate the installation procedure and make it so simple that MSSQL can be installed [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Funattended-mssql-2005-installation-command-line-installation-of-mssql%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/unattended-mssql-2005-installation-command-line-installation-of-mssql/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/unattended-mssql-2005-installation-command-line-installation-of-mssql/"  data-text="Unattended MSSQL 2005 Installation &#8211; Command Line Installation of MSSQL" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/unattended-mssql-2005-installation-command-line-installation-of-mssql/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/unattended-mssql-2005-installation-command-line-installation-of-mssql/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Microsoft SQL Server is a relational model database server produced by Microsoft and it&#8217;s Installation is quite Easy using GUI where a user has to selects the options which he/she needs with the database server and install it. We can automate the installation procedure and make it so simple that MSSQL can be installed using a single command. </span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Automating SQL server installation is made easier in MSSQL 2005 version and we can define the components which need to be installed with setup.exe via command prompt OR we can create an ini file which will contain all the information about the installation. In this post I will explain the steps to install MSSQL 2005 using command prompt with the help of single command.</span></p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong><span style="font-family: Verdana; font-size: small;">Install MSSQL using Command Prompt (By Defining all modules in command)</span></strong></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Insert the MSSQL installation media into the disk drive.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>2)</strong> Open Command Prompt (<strong>Start &gt;&gt; Run &gt;&gt; cmd &gt;&gt; Enter</strong>)</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>3)</strong> Execute following command</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 120px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">Start /wait [CD or DVD Drive]\servers\setup.exe /qb INSTANCENAME=[InstanceName] ADDLOCAL=All PIDKEY=[pidkey value with no "-"] SAPWD=[StrongPassword] SQLACCOUNT=[domain\user] SQLPASSWORD=[DomainUserPassword] AGTACCOUNT=[domain\user] AGTPASSWORD=[DomainUserPassword] SQLBROWSERACCOUNT=[domain\user] SQLBROWSERPASSWORD=[DomainUserPassword]</div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><br />Here, <strong>ADDLOCAL</strong> is set to &#8220;<strong>All</strong>&#8221; which will install all the components and modules bundled with the MSSQL. If you want customized modules then you can declare the modules instead of &#8220;<strong>All</strong>&#8220;.</span></p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong><span style="font-family: Verdana; font-size: small;">Install MSSQL using .ini file</span></strong></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Open Notepad (<strong>Start &gt;&gt; Run &gt;&gt; Notepad &gt;&gt; Enter</strong>)</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>2)</strong> Insert all the &#8220;<strong>Installation Parameters</strong>&#8221; in that file. Following is the sample file which I have used to install MSSQL on my System</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 260px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[Options]<br /> USERNAME=USER<br /> COMPANYNAME=USER<br /> PIDKEY=1234657979764346<br /> INSTALLSQLDIR=D:\MSSQL<br /> ADDLOCAL=SQL_Engine,SQL_Replication,Client_Components,Connectivity,SQLXML<br /> SECURITYMODE=SQL<br /> SAPWD=Supp0rt<br /> SQLACCOUNT=&#8221;NT AUTHORITY\SYSTEM&#8221;<br /> AGTACCOUNT=&#8221;NT AUTHORITY\SYSTEM&#8221;<br /> SQLBROWSERACCOUNT=&#8221;NT AUTHORITY\SYSTEM&#8221;<br /> SQLCOLLATION=SQL_Latin1_General_CP1_CI_AS</div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Here, <strong>PIDKEY</strong> will be the <strong>Product Key</strong> of the product shipped with MSSQL.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>3)</strong> Save this file with extension .ini (like <strong>sqlsetup.ini</strong>)</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>4)</strong> Execute following command to run the setup</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 40px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[CD or DVD Drive]/servers/setup.exe /settings [path to setup file]\sqlsetup.ini /qb</div>
<p><span style="font-family: Verdana; font-size: small;"><br /><strong>Points to Note:</strong></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> While specifying the accounts like <strong>SQLACCOUNT</strong>, <strong>AGTACCOUNT</strong> and <strong>SQLBROWSERACCOUNT</strong> make sure you define proper users. Users can be</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 80px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">Domain User account              :        [domain\user]<br />Local System Account            :        &#8220;NT AUTHORITY\SYSTEM&#8221;<br />Network Service Account      :        &#8220;NT AUTHORITY\NETWORK SERVICE&#8221;<br />Local Service Account          :        &#8220;NT AUTHORITY\LOCAL SERVICE&#8221;</div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">2) Microsoft provides a template.ini file in the installation media but I would strongly recommend to remove the options that you don’t want.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">You can refer to Microsoft tutorial for more information and component help at <a target="_blank" rel="nofollow" href="http://msdn.microsoft.com/en-us/library/ms144259.aspx">http://msdn.microsoft.com/en-us/library/ms144259.aspx</a></span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/unattended-mssql-2005-installation-command-line-installation-of-mssql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name.</title>
		<link>http://eitwebguru.com/error-sql-server-replication-requires-the-actual-server-name-to-make-a-connection-to-the-server-specify-the-actual-server-name/</link>
		<comments>http://eitwebguru.com/error-sql-server-replication-requires-the-actual-server-name-to-make-a-connection-to-the-server-specify-the-actual-server-name/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 21:24:45 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[2008 Server]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[alternate]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[not]]></category>
		<category><![CDATA[Replication]]></category>
		<category><![CDATA[Replication.Utilities]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=1104</guid>
		<description><![CDATA[Tweet Sometime while setting up MSSQL Replication you will receive following error at the time of connecting Slave or Secondary Database Server. &#160; Detailed Error: TITLE: Connect to Server &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Cannot connect to failover-db. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; ADDITIONAL INFORMATION: SQL Server replication requires the actual server name to make a connection to the server. Connections through a [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feitwebguru.com%2Ferror-sql-server-replication-requires-the-actual-server-name-to-make-a-connection-to-the-server-specify-the-actual-server-name%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eitwebguru.com/error-sql-server-replication-requires-the-actual-server-name-to-make-a-connection-to-the-server-specify-the-actual-server-name/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eitwebguru.com/error-sql-server-replication-requires-the-actual-server-name-to-make-a-connection-to-the-server-specify-the-actual-server-name/"  data-text="Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://eitwebguru.com/error-sql-server-replication-requires-the-actual-server-name-to-make-a-connection-to-the-server-specify-the-actual-server-name/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://eitwebguru.com/error-sql-server-replication-requires-the-actual-server-name-to-make-a-connection-to-the-server-specify-the-actual-server-name/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Sometime while setting up MSSQL Replication you will receive following error at the time of connecting Slave or Secondary Database Server.</span></p>
<p style="text-align: center;">&nbsp;</p>
<blockquote><p><strong><span style="font-family: Courier New; font-size: small;">Detailed Error:</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">TITLE: Connect to Server</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span></strong></p>
<p><strong><span style="font-family: Courier New; font-size: small;">Cannot connect to failover-db.</span></strong></p>
<p><strong><span style="font-family: Courier New; font-size: small;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">ADDITIONAL INFORMATION:</span></strong></p>
<p><span style="color: #ff0000;"><strong><span style="font-family: Courier New; font-size: small;">SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, &#8216;WIN-PNHS6NVSKPI&#8217;. (Replication.Utilities)</span></strong></span></p>
<p><strong><span style="font-family: Courier New; font-size: small;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">BUTTONS:</span></strong></p>
<p><strong><span style="font-family: Courier New; font-size: small;">OK</span></strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/03/error.png"><img class="size-medium wp-image-1105 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/03/error-300x85.png" alt="error 300x85 Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." width="300" height="85" title="Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." /></a></p>
</blockquote>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong><span style="font-family: Verdana; font-size: small;">Cause:</span></strong></span></p>
<p><span style="font-family: Verdana; font-size: small;">The problem mainly occurs when you change the computer name of the server after installation of MSSQL Server but even after reboot MSSQL uses the OLD Computer name as network name and the SQL Server instance name</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Here,</span><br />
<span style="font-family: Verdana; font-size: small;"><strong>OLD NAME</strong> of the Server was: WIN-PNHS6NVSKPI</span><br />
<span style="font-family: Verdana; font-size: small;">Changed or <strong>New Name</strong> of the Server is: FAILOVER-DB</span></p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong><span style="font-family: Verdana; font-size: small;">Solution.</span></strong></span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">1) Find Current Network Name and SQL Server Instance Name</span></strong><br />
<span style="font-family: Verdana; font-size: small;">First we need to check the Network name and the SQL Server instance name stored in the database. We can find it execute following commands in MSSQL Management Studio.</span></p>
<blockquote>
<p style="text-align: justify;"><strong><span style="font-family: Courier New; font-size: small;">sp_helpserver</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">select @@servername</span></strong></p>
</blockquote>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>sp_helpserver:</strong> This Query or command shows the information of a particular or a replication server. This shows the server name, network name, identication number and collation name of the server.</span><br />
<span style="font-family: Verdana; font-size: small;"><strong>select @@servername:</strong> This Query will return the server name on which the query is executed.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Following were the results which I recived clearly shows that the MSSQL didn&#8217;t accepted the new computer name which I have set i.e. FAILOVER-DB.</span></p>
<p style="text-align: center;"><strong><span style="font-family: Verdana; font-size: small;">Output of sp_helpserver</span></strong></p>
<p><a href="http://eitwebguru.com/wp-content/uploads/2011/03/error1.png"><img class="size-medium wp-image-1106 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/03/error1-300x84.png" alt="error1 300x84 Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." width="300" height="84" title="Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." /></a></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Output of select @@servername</span></strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/03/error2.png"><img class="size-medium wp-image-1107 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/03/error2-300x101.png" alt="error2 300x101 Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." width="300" height="101" title="Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." /></a></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">2) Change Server Instance Name and Network Name</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">Now to fix this issue we need change the Server Instance Name and Network Name. This can be done using Following Query</span></p>
<blockquote>
<p style="text-align: justify;"><strong><span style="font-family: Courier New; font-size: small;">sp_dropserver &#8216;old_name&#8217;</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">go</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">sp_addserver &#8216;new_name&#8217;,'local&#8217;</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">go</span></strong></p>
</blockquote>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">In my case I have executed following query</span></p>
<blockquote>
<p style="text-align: justify;"><strong><span style="font-family: Courier New; font-size: small;">sp_dropserver &#8216;WIN-PNHS6NVSKPI&#8217;</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">go</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">sp_addserver &#8216;FAILOVER-DB&#8217;,local</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">go</span></strong></p>
</blockquote>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">3) Restart MSSQL Server</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Once the above commands get executed successfully; close the MSSQL Management Studio and restart MSSQL server using following commands in command prompt.</span></p>
<blockquote>
<p style="text-align: justify;"><strong><span style="font-family: Courier New; font-size: small;">net stop mssqlserver</span></strong><br />
<strong> <span style="font-family: Courier New; font-size: small;">net start mssqlserver</span></strong></p>
</blockquote>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/03/error3.png"><img class="size-medium wp-image-1108 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/03/error3-300x242.png" alt="error3 300x242 Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." width="300" height="242" title="Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." /></a></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">4) Verify the Changes</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">To verify if the name has been changed or not execute the queries mentioned in Step 1. I have recived following outputs</span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Output of sp_helpserver</span></strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/03/error4.png"><img class="size-medium wp-image-1109 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/03/error4-300x84.png" alt="error4 300x84 Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." width="300" height="84" title="Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." /></a><br />
<strong><span style="font-family: Verdana; font-size: small;"> </span></strong></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Output of select @@servername</span></strong></p>
<p style="text-align: center;"><a href="http://eitwebguru.com/wp-content/uploads/2011/03/error5.png"><img class="size-medium wp-image-1110 aligncenter" src="http://eitwebguru.com/wp-content/uploads/2011/03/error5-300x101.png" alt="error5 300x101 Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." width="300" height="101" title="Error: SQL Server replication requires the actual server name to make a connection to the server. Specify the actual server name." /></a></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Thats it; now try to setup Replication of MSSQL and it won&#8217;t give that error again.</span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/error-sql-server-replication-requires-the-actual-server-name-to-make-a-connection-to-the-server-specify-the-actual-server-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

