<?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>installation - Techyaz.com</title>
	<atom:link href="https://techyaz.com/tag/installation/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Thu, 28 Jun 2018 16:14:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://techyaz.com/wp-content/uploads/2017/11/cropped-Site-icon-150x150.png</url>
	<title>installation - Techyaz.com</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SQL Server Native Client Error 50000: A network error occurred while attempting to read from the file</title>
		<link>https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 25 Jun 2018 12:59:40 +0000</pubDate>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2410</guid>

					<description><![CDATA[<p>Yesterday i have received SQL Server Native Client Error 5000 while installing SQL Server Management Studio on one of the client machine. The description for this error code was given as &#8220;A network error occurred while attempting to read from&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/">SQL Server Native Client Error 50000: A network error occurred while attempting to read from the file</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Yesterday i have received SQL Server Native Client Error 5000 while installing SQL Server Management Studio on one of the client machine. The description for this error code was given as <em>&#8220;A network error occurred while attempting to read from the file &lt;Filename&gt;.&#8221; </em> Here i will describe and explain about SQL Server Error 50000 and it&#8217;s fix to make SQL Server installation successful.</p>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-2411 alignright" src="https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000.png" alt="SQL Server Native Client Error 50000" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000.png 300w, https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000-320x320.png 320w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<h3><span style="color: #333399;">SQL Server Native Client Error 50000</span></h3>
<p>Before explaining about SQL native client error 50000, i would like to describe about what is SQL Server native client. As per MSDN <em>&#8220;SQL Server Native Client, is a term that has been used interchangeably to refer to ODBC and OLE DB drivers for SQL Server.&#8221; </em></p>
<p>SQL Server Native Client is a technology that we can use to access data in a SQL Server database. There are several factors you should consider while deciding whether to use SQL Server Native client or some other data access technology. You can read attached article about <a href="https://docs.microsoft.com/en-us/sql/relational-databases/native-client/when-to-use-sql-server-native-client?view=sql-server-2016">when to use SQL Server Native Client.</a></p>
<p>Generally, we get SQL Server native client error 50000 while installing or updating native client software or a software component that uses SQL Server Native Client and your target machine already have this installed previously using some msi file.</p>
<p>You can also get this issue if SQL Server native client file <em>sqlncli.msi </em>has been renamed after its installation and later today when you are trying to update it, you will end up with this SQL error 50000 . If somehow native client installation file has been renamed on your machine, setup will not find its file to update SQL Server native client and through below error.</p>
<p><span style="color: #ff0000;"><em>A network error occurred while attempting to read from the file &lt;Filename&gt;.&#8221;</em></span></p>
<h3><span style="color: #333399;">Solution</span></h3>
<p>To fix this error, you should uninstall installed version of SQL Server native client from add/remove program and then you can try to install SQL Server or its component again. This time you will not get any error and your software or native client will be installed. To avoid further issue, you can reboot the machine post uninstalling the native client tool.</p>
<p>If you are installing only SQL Server native client and not SQL Server then you can download it from Microsoft website and then reinstall it again.</p>
<p>You can also prevent this error to not generate in future by not installing it using its msi file sqlncli.msi. If you had installed it using this file, make sure to never rename it as well.</p>
<p>Here, I have shown you how to fix SQL Server Native Client Error 50000, <em>&#8220;A network error occurred while attempting to read from the file &lt;Filename&gt;.&#8221; </em> I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><em><strong><span style="color: #800000;">Read More:</span></strong></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-5009/" target="_blank" rel="noopener">Fix SQL Server Error 5009: One or more files listed in the statement could not be found or could not be initialized</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-attributes-not-match/" target="_blank" rel="noopener">Fix SQL Server Installation Error: Attributes do not match</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-installation-error-1639/" target="_blank" rel="noopener">How to Fix SQL Server Installation Error 1639?</a></strong></li>
<li><strong><a href="https://techyaz.com/interview-questions/sql-server-dba-interview-questions-answers/" target="_blank" rel="noopener">SQL Server DBA Interview Questions &amp; Answers</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/">SQL Server Native Client Error 50000: A network error occurred while attempting to read from the file</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Find When SQL Server was Installed?</title>
		<link>https://techyaz.com/sql-server/find-when-sql-server-was-installed/</link>
					<comments>https://techyaz.com/sql-server/find-when-sql-server-was-installed/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sun, 08 Apr 2018 09:36:05 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[logins]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2070</guid>

					<description><![CDATA[<p>Have you ever thought when SQL Server instance was installed on your machine? If you don&#8217;t have idea about finding SQL Server installation date then you should keep reading this article where i have described how to know when SQL&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/find-when-sql-server-was-installed/">How to Find When SQL Server was Installed?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Have you ever thought when SQL Server instance was installed on your machine? If you don&#8217;t have idea about finding SQL Server installation date then you should keep reading this article where i have described how to know when SQL Server was installed on your database server?</p>
<p>There are many ways to check SQL Server installation date on your machine. Here i am going to discuss two popular methods that we can use easily to get install date of SQL Server. Let’s go one by one in step by step process.</p>
<h3><span style="color: #333399;">Method 1</span></h3>
<p>As we know whenever we install SQL Server, a SQL Server Agent job named <strong><em>“syspolicy_purge_history”</em></strong> got created. The install date of SQL Server instance will be same as the create date of this job because this job was created during SQL Server installation. So, if you need to find when SQL Server was installed on your database server then you can get it by create date info of above job. Follow below steps to get the details.</p>
<p>You can expand <em>SQL Server Agent</em> folder in SSMS and then <em>Jobs</em> folder. Here you can see this job. We can launch <em>Properties</em> window of job <strong><em>“syspolicy_purge_history”</em></strong> or you can query msdb database to get the details of this job. Here, I have launched Properties windows of this job and we can see the create date of this job is below screenshot. It means this SQL Server Instance was installed on 27<sup>th</sup> July 2017 as showing as create date of below job.</p>
<p><img decoding="async" class="alignnone size-full wp-image-2071" src="http://techyaz.com/wp-content/uploads/2018/04/1_agentjob-min.jpg" alt="Get SQL Server Installation Date" width="705" height="635" srcset="https://techyaz.com/wp-content/uploads/2018/04/1_agentjob-min.jpg 705w, https://techyaz.com/wp-content/uploads/2018/04/1_agentjob-min-300x270.jpg 300w" sizes="(max-width: 705px) 100vw, 705px" /></p>
<h3><span style="color: #333399;">Method 2</span></h3>
<p>Another method to get SQL Server install date on your database server is by using SQL Server system logins. These system logins get created when we install SQL Server. Some of the system logins are <em>NT SERVICE\SQLWriter, NT Service\MSSQLSERVER, NT AUTHORITY\SYSTEM and NT AUTHORITY\NETWORK SERVICE</em>. You can also see some of the system logins that starts with hash <strong>#</strong> like <em>##MS_Policy*****</em> etc. As I said these logins get created during SQL Server installation so to get SQL Server installation date we can check the create date of any such logins.</p>
<p>You can run below commands to check the create date of any of system logins. I have executed below commands to check create date of three system logins.</p>
<pre><span style="color: #0000ff;"><strong>SELECT name, create_date</strong></span>
<span style="color: #0000ff;"><strong>FROM sys.server_principals</strong></span>
<span style="color: #0000ff;"><strong>WHERE name='NT SERVICE\SQLWriter'</strong></span>
<span style="color: #0000ff;"><strong>GO</strong></span>

<span style="color: #0000ff;"><strong>SELECT name, create_date</strong></span>
<span style="color: #0000ff;"><strong>FROM sys.server_principals</strong></span>
<span style="color: #0000ff;"><strong>WHERE name='NT Service\MSSQLSERVER'</strong></span>
<span style="color: #0000ff;"><strong>GO</strong></span>

<span style="color: #0000ff;"><strong>SELECT name, create_date</strong></span>
<span style="color: #0000ff;"><strong>FROM sys.server_principals</strong></span>
<span style="color: #0000ff;"><strong>WHERE name='NT AUTHORITY\SYSTEM'</strong></span>
<span style="color: #0000ff;"><strong>GO</strong></span></pre>
<p>We can see create date of all above SQL Server system logins are same as the create date of system job &#8220;<strong><em>syspolicy_purge_history&#8221; </em></strong>that is described in method 1. So, SQL Server install date on this database server was 27<sup>th</sup> July 2017 as shown in below image.</p>
<p><img decoding="async" class="alignnone wp-image-2072" src="http://techyaz.com/wp-content/uploads/2018/04/2-systemaccounts-min.jpg" alt="Get SQL Server Installation date using system logins" width="577" height="418" srcset="https://techyaz.com/wp-content/uploads/2018/04/2-systemaccounts-min.jpg 559w, https://techyaz.com/wp-content/uploads/2018/04/2-systemaccounts-min-300x217.jpg 300w" sizes="(max-width: 577px) 100vw, 577px" /></p>
<p>You can also get SQL Server install date by getting update date of system account <em><strong>sa</strong></em>. As we have disabled <em><strong>sa</strong> </em>account as part of SQL Server hardening so last update was captured when we disabled this account. But this does not show correct info always because if anybody has enabled this account and again disabled it then this will give you inaccurate information but you can use this information to compare the update date information with the create date of other logins and jobs. This will help you in identifying the install date of SQL Server in more accurate manner.</p>
<pre><strong><span style="color: #0000ff;">SELECT *</span></strong>
<strong><span style="color: #0000ff;">FROM syslogins</span></strong>
<strong><span style="color: #0000ff;">WHERE name='sa'</span></strong>
<strong><span style="color: #0000ff;">GO</span></strong>

<strong><span style="color: #0000ff;">SELECT *</span></strong>
<strong><span style="color: #0000ff;">FROM sys.server_principals</span></strong>
<strong><span style="color: #0000ff;">WHERE name='NT AUTHORITY\SYSTEM'</span></strong>
<strong><span style="color: #0000ff;">GO</span></strong></pre>
<p>You can see the update date of <em><strong>sa</strong></em> account and create date of the another system login shows same date that is also the SQL Server Installation date.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-large wp-image-2073" src="http://techyaz.com/wp-content/uploads/2018/04/3_sa-min-1024x307.jpg" alt="update date of sa account" width="1024" height="307" srcset="https://techyaz.com/wp-content/uploads/2018/04/3_sa-min-1024x307.jpg 1024w, https://techyaz.com/wp-content/uploads/2018/04/3_sa-min-300x90.jpg 300w, https://techyaz.com/wp-content/uploads/2018/04/3_sa-min-768x230.jpg 768w, https://techyaz.com/wp-content/uploads/2018/04/3_sa-min.jpg 1071w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/sql-server-evaluation-period-has-expired-and-how-to-upgrade-it/" target="_blank" rel="noopener">SQL Server Evaluation Period has Expired and How to Upgrade it?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/create-logon-trigger-restrict-sysadmin-logins-connect-sql-server-given-time-interval/" target="_blank" rel="noopener">Create a Logon Trigger to Restrict sysadmin logins to Connect to SQL Server during a given time Interval</a></strong></li>
<li><strong><a href="http://techyaz.com/category/interview-questions/sql-server-interview-questions/">SQL Server Interview Questions &amp; Answers</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/find-when-sql-server-was-installed/">How to Find When SQL Server was Installed?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/find-when-sql-server-was-installed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server Evaluation Period has Expired and How to Upgrade it?</title>
		<link>https://techyaz.com/sql-server/sql-server-evaluation-period-has-expired-and-how-to-upgrade-it/</link>
					<comments>https://techyaz.com/sql-server/sql-server-evaluation-period-has-expired-and-how-to-upgrade-it/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 13 Mar 2018 12:00:05 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[SQL Server UPGRADE]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[License key]]></category>
		<category><![CDATA[SQL Server Uninstallation]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1927</guid>

					<description><![CDATA[<p>Generally, we download SQL Server evaluation edition to learn or do some testing before deployments. Evaluation edition of SQL Server is free for 180 days and it is equivalent to SQL Server Enterprise Version. If the validity of Evaluation period&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-evaluation-period-has-expired-and-how-to-upgrade-it/">SQL Server Evaluation Period has Expired and How to Upgrade it?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Generally, we download SQL Server evaluation edition to learn or do some testing before deployments. Evaluation edition of SQL Server is free for 180 days and it is equivalent to SQL Server Enterprise Version. If the validity of Evaluation period i.e. 180 days will exceed then SQL Server will shut down and will not come online. We need to activate this SQL Server instance to a licensed version if we want to keep it running. Here, I will show you how to upgrade SQL Server Evaluation edition to Enterprise, Standard or Developer edition in step by step process.</p>
<p>Recently, one of the SQL Server Instance suddenly stopped working and shutdown automatically. We failed to bring its services online. Even we were not able to launch SQL Server Management studio. When we checked windows event viewer, we had seen multiple event ids for SQL Server like Event ID 7024, Event ID 17051 etc. We got this error because SQL Server evaluation period has expired for this instance.</p>
<p>As I said, SQL Server was down and I tried starting it from SQL Server Configuration Manager. It never come online so I decided to check Windows event viewer. I saw event id 7024 that says something wrong with application SQL Server. You can see the screenshot of event id 7024.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1928" src="http://techyaz.com/wp-content/uploads/2018/03/1-Event-Viewer-Error-min-1024x327.png" alt="Event ID 7024" width="1024" height="327" srcset="https://techyaz.com/wp-content/uploads/2018/03/1-Event-Viewer-Error-min-1024x327.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/1-Event-Viewer-Error-min-300x96.png 300w, https://techyaz.com/wp-content/uploads/2018/03/1-Event-Viewer-Error-min-768x246.png 768w, https://techyaz.com/wp-content/uploads/2018/03/1-Event-Viewer-Error-min.png 1073w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>We can see error 17051 is captured for SQL Server in above screenshot. When I scrolled next error details I saw below details with event id 17051 that says “<em>SQL Server evaluation period has expired</em>”. When you look into SQL Server error log, you will get below details.</p>
<p><span style="color: #ff0000;"><strong>Error: 17051, Severity: 16, State: 1</strong>.</span><br />
<span style="color: #ff0000;"> <strong>SQL Server evaluation period has expired.</strong></span></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1934" src="http://techyaz.com/wp-content/uploads/2018/03/2-Event-Viewer-Error-min.png" alt="SQL Server Evaluation Period has expired" width="955" height="231" srcset="https://techyaz.com/wp-content/uploads/2018/03/2-Event-Viewer-Error-min.png 955w, https://techyaz.com/wp-content/uploads/2018/03/2-Event-Viewer-Error-min-300x73.png 300w, https://techyaz.com/wp-content/uploads/2018/03/2-Event-Viewer-Error-min-768x186.png 768w" sizes="auto, (max-width: 955px) 100vw, 955px" /></p>
<p>Then I decided to check the installed version of SQL Server that clearly says that we had installed SQL Server Evaluation version on this database server. You can get it by launching property window of SQL Server service in SQL Server Configuration Manager. You can see this in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1935" src="http://techyaz.com/wp-content/uploads/2018/03/3-Event-Viewer-Error-min.png" alt="Evaluation Edition in Service Property Window" width="431" height="501" srcset="https://techyaz.com/wp-content/uploads/2018/03/3-Event-Viewer-Error-min.png 431w, https://techyaz.com/wp-content/uploads/2018/03/3-Event-Viewer-Error-min-258x300.png 258w" sizes="auto, (max-width: 431px) 100vw, 431px" /></p>
<p>Now we had to upgrade SQL Server evaluation edition to bring it online and make it work as it was working before. To start this, we need SQL Server setup files to perform this upgrade. Follow below steps to activate your expired SQL Server evaluation version to either standard, enterprise or developer edition.</p>
<h3><span style="color: #333399;">Upgrade SQL Server Evaluation Edition to Enterprise Edition</span></h3>
<p>First decide on which edition you want to upgrade your expired SQL Server evaluation edition instance. Copy identified edition of SQL Server setup files to the target or impacted SQL Server machine. Now we will launch SQL Server Installation Center to run this upgrade. Make sure to run this whole process using sysadmin account.</p>
<p>Double click on Setup.exe file to start the upgrade. You will get <strong>SQL Server Installation Center</strong> once you run setup.exe file of SQL Server setup. Click at “<strong>Maintenance</strong>” tab from left side pane as shown in below image and then click on “<strong>Edition Upgrade”</strong> option from right side pane.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1936" src="http://techyaz.com/wp-content/uploads/2018/03/4-SQL-Setup-min.png" alt="SQL Server Installation Center" width="798" height="598" srcset="https://techyaz.com/wp-content/uploads/2018/03/4-SQL-Setup-min.png 798w, https://techyaz.com/wp-content/uploads/2018/03/4-SQL-Setup-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/03/4-SQL-Setup-min-768x576.png 768w" sizes="auto, (max-width: 798px) 100vw, 798px" /></p>
<p>Once you click at Edition upgrade, below image will come to proceed. This screen will come to enter the product key of SQL Server. Verify the correct product key and click on next button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1938" src="http://techyaz.com/wp-content/uploads/2018/03/5-SQL-Setup-min.png" alt="Enter Product key" width="815" height="621" srcset="https://techyaz.com/wp-content/uploads/2018/03/5-SQL-Setup-min.png 815w, https://techyaz.com/wp-content/uploads/2018/03/5-SQL-Setup-min-300x229.png 300w, https://techyaz.com/wp-content/uploads/2018/03/5-SQL-Setup-min-768x585.png 768w" sizes="auto, (max-width: 815px) 100vw, 815px" /></p>
<p>Once you click at next button you will get below pop up “<em>Evaluation period has expired</em>”. Click on Ok button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1939" src="http://techyaz.com/wp-content/uploads/2018/03/6-SQL-Setup-min.png" alt="Pop up evaluation period has expired" width="819" height="617" srcset="https://techyaz.com/wp-content/uploads/2018/03/6-SQL-Setup-min.png 819w, https://techyaz.com/wp-content/uploads/2018/03/6-SQL-Setup-min-300x226.png 300w, https://techyaz.com/wp-content/uploads/2018/03/6-SQL-Setup-min-768x579.png 768w" sizes="auto, (max-width: 819px) 100vw, 819px" /></p>
<p>Next screen will come to accept the License Terms. Click at Next button after selecting “<em>I accept license terms</em>” checkbox option.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1940" src="http://techyaz.com/wp-content/uploads/2018/03/7-SQL-Setup-min.png" alt="Accept License Terms" width="823" height="621" srcset="https://techyaz.com/wp-content/uploads/2018/03/7-SQL-Setup-min.png 823w, https://techyaz.com/wp-content/uploads/2018/03/7-SQL-Setup-min-300x226.png 300w, https://techyaz.com/wp-content/uploads/2018/03/7-SQL-Setup-min-768x579.png 768w" sizes="auto, (max-width: 823px) 100vw, 823px" /></p>
<p>Here, you will get installed components of SQL Server. Verify the SQL Server instance and click on next button to proceed. You can see edition is showing as Evaluation in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1941" src="http://techyaz.com/wp-content/uploads/2018/03/8-SQL-Setup-min.png" alt="Instance of SQL Server Installed on this machine" width="821" height="619" srcset="https://techyaz.com/wp-content/uploads/2018/03/8-SQL-Setup-min.png 821w, https://techyaz.com/wp-content/uploads/2018/03/8-SQL-Setup-min-300x226.png 300w, https://techyaz.com/wp-content/uploads/2018/03/8-SQL-Setup-min-768x579.png 768w" sizes="auto, (max-width: 821px) 100vw, 821px" /></p>
<p>Once you will click at Next button, rules will be checked by the setup and you can see the progress bar in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1942 size-full" src="http://techyaz.com/wp-content/uploads/2018/03/9-SQL-Setup-min.png" alt="Check Rules" width="817" height="609" srcset="https://techyaz.com/wp-content/uploads/2018/03/9-SQL-Setup-min.png 817w, https://techyaz.com/wp-content/uploads/2018/03/9-SQL-Setup-min-300x224.png 300w, https://techyaz.com/wp-content/uploads/2018/03/9-SQL-Setup-min-768x572.png 768w" sizes="auto, (max-width: 817px) 100vw, 817px" /></p>
<p>Now it’s time for final window of this upgrade process where you need to recheck and verify the details and if everything looks good then click at “Upgrade” button to start the upgrade process.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1943" src="http://techyaz.com/wp-content/uploads/2018/03/10-SQL-Setup-min.png" alt="Run the upgrade" width="823" height="615" srcset="https://techyaz.com/wp-content/uploads/2018/03/10-SQL-Setup-min.png 823w, https://techyaz.com/wp-content/uploads/2018/03/10-SQL-Setup-min-300x224.png 300w, https://techyaz.com/wp-content/uploads/2018/03/10-SQL-Setup-min-768x574.png 768w" sizes="auto, (max-width: 823px) 100vw, 823px" /></p>
<p>Setup will process and end up with new upgraded edition. You have been activated SQL Server to run it on your server and it has been upgraded to your identified edition of SQL Server i.e Enterprise edition.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1944" src="http://techyaz.com/wp-content/uploads/2018/03/11-SQL-Setup-min.png" alt="Upgraded" width="807" height="621" srcset="https://techyaz.com/wp-content/uploads/2018/03/11-SQL-Setup-min.png 807w, https://techyaz.com/wp-content/uploads/2018/03/11-SQL-Setup-min-300x231.png 300w, https://techyaz.com/wp-content/uploads/2018/03/11-SQL-Setup-min-768x591.png 768w" sizes="auto, (max-width: 807px) 100vw, 807px" /></p>
<p>You can check the upgraded edition by launching property window of SQL Server service in SQL Server Configuration window. We can see now edition is showing as Enterprise Edition. Here, we have upgraded SQL Server evaluation version to Enterprise edition of SQL Server 2014.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1945" src="http://techyaz.com/wp-content/uploads/2018/03/12-SQL-Service-min.png" alt="SQL Server Service Property " width="429" height="503" srcset="https://techyaz.com/wp-content/uploads/2018/03/12-SQL-Service-min.png 429w, https://techyaz.com/wp-content/uploads/2018/03/12-SQL-Service-min-256x300.png 256w" sizes="auto, (max-width: 429px) 100vw, 429px" /></p>
<p>Now you can go ahead and launch SQL Server Management Studio and establish database connection to check and verify all details to make sure everything is ok on your database server.<br />
I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><em><strong><span style="color: #800000;">Read More:</span></strong></em></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/update-license-key-product-key-sql-server-instance/" target="_blank" rel="noopener">How to update License Key or Product Key of SQL Server?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-sql-server-installation-error-1639/" target="_blank" rel="noopener">Fix SQL Server Installation Error 1639</a></strong></li>
<li><strong><a href="http://techyaz.com/interview-questions/sql-server-dba-interview-questions-answers/" target="_blank" rel="noopener">SQL Server Interview Questions &amp; Answers</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-evaluation-period-has-expired-and-how-to-upgrade-it/">SQL Server Evaluation Period has Expired and How to Upgrade it?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-evaluation-period-has-expired-and-how-to-upgrade-it/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install PgAdmin 4 in Debian 9 Stretch?</title>
		<link>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/</link>
					<comments>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/#comments</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Thu, 01 Feb 2018 12:05:40 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pgadmin]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1702</guid>

					<description><![CDATA[<p>I have written how to install PostgreSQL 10.1 on debian 9 stretch in my last article. Read the attached link if you want to learn its step by step process. Here, I am going to install pgAdmin 4 on debian&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/">How to Install PgAdmin 4 in Debian 9 Stretch?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have written<strong> <a href="http://techyaz.com/debian/install-postgresql-10-1-debian-9-stretch/" target="_blank" rel="noopener">how to install PostgreSQL 10.1 on debian 9 stretch</a> </strong>in my last article. Read the attached link if you want to learn its step by step process. Here, I am going to install pgAdmin 4 on debian 9 stretch that is most popular and feature rich Open Source administration and development tool to manage PostgreSQL databases.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1722 alignleft" src="http://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200.png" alt="pgadmin4 installation" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200.png 300w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>PostgreSQL is for many the best in its area, and it is not the aim of this article to defend or support that theory, what we can say with all certainty is that it is one of the most robust and secure database handlers that exist. As if this were not enough, it has one of the most popular and complete graphical tools to manage it, such as pgAdmin.</p>
<p>As the project <a href="https://www.pgadmin.org/">website</a> says: “pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.” And of course we can install it in our preferred GNU/LINUX distribution. In this case we are going to install it in our <a href="https://www.debian.org/">Debian</a> 9 Stretch a large GNU/LINUX distribution widely used in the server and database area.</p>
<h3><span style="color: #333399;">Install pgAdmin 4 on Debian 9 Stretch</span></h3>
<p><strong>Note: In this tutorial it is assumed that you have postgreSQL installed, otherwise, we must install it. You can find the way of doing it in below link.</strong></p>
<ul>
<li><strong><a href="http://techyaz.com/debian/install-postgresql-10-1-debian-9-stretch/" target="_blank" rel="noopener">How to Install PostgreSQL 10.1 on Debian 9 Stretch</a></strong></li>
</ul>
<p>Let&#8217;s get started. The first thing we have to do is add the postgreSQL apt repository. If you have installed postgreSQL with the tutorial we have attached above, you can skip these steps. Otherwise we must add it.</p>
<p>First we logged in as root user. Write su in your terminal screen along with its password and press enter to connect.</p>
<pre><span style="color: #008000;"><strong>#Connect using root user</strong></span>
<span style="color: #0000ff;"><strong>su</strong></span></pre>
<p><img loading="lazy" decoding="async" class="wp-image-1706 size-full alignnone" src="http://techyaz.com/wp-content/uploads/2018/02/2-.su-min.png" alt="Connect using superuser" width="505" height="123" srcset="https://techyaz.com/wp-content/uploads/2018/02/2-.su-min.png 505w, https://techyaz.com/wp-content/uploads/2018/02/2-.su-min-300x73.png 300w" sizes="auto, (max-width: 505px) 100vw, 505px" /></p>
<p>Now, use below command to create the <em>pgdp.list</em> file in the <em>/etc/apt/source.list.d/</em> path.</p>
<pre><span style="color: #0000ff;"><strong>nano /etc/apt/source.list.d/pgdg.list</strong></span></pre>
<p>Here, we will add the next line of code to the terminal screen that will come after executing above command.</p>
<pre><strong><span style="color: #0000ff;">deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1707 size-large" src="http://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-1024x552.png" alt="Enter the given code lines" width="1024" height="552" srcset="https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-1024x552.png 1024w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Press <strong>ctrl + x</strong> to exit and select yes to save the changes.</p>
<p>Now import the repository signing key by running below commands on your terminal screen.</p>
<pre><span style="color: #008000;"><strong>#Import the repository signing key</strong></span>
<span style="color: #0000ff;"><strong>wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -</strong></span></pre>
<p>And to refresh the repository cache, just run the following command.</p>
<pre><span style="color: #008000;"><strong>#Refresh the repository.</strong></span>
<span style="color: #0000ff;"><strong>apt update</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-1708 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/4.-update-min.png" alt="Run apt update to refresh packages" width="658" height="450" srcset="https://techyaz.com/wp-content/uploads/2018/02/4.-update-min.png 658w, https://techyaz.com/wp-content/uploads/2018/02/4.-update-min-300x205.png 300w" sizes="auto, (max-width: 658px) 100vw, 658px" /></p>
<p>You can see all packages have been updated in above screenshot. Now we are ready to start installing pgAdmin 4.</p>
<h5><span style="color: #333399;"><strong>Installing Dependencies and Creating the Virtual Environment</strong></span></h5>
<p>We must install the necessary dependencies to handle the package. They are basically Python dependencies that needs to be resolved before installing pgadmin package. Execute below command in your terminal before going to install pgadmin.</p>
<pre><span style="color: #008000;"><strong>#Install Python </strong></span><span style="color: #008000;"><b>dependency.</b></span>
<span style="color: #0000ff;"><strong>apt install virtualenv python-pip libpq-dev python-dev</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1709 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min.png" alt="Install Dependencies" width="752" height="309" srcset="https://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min.png 752w, https://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min-300x123.png 300w" sizes="auto, (max-width: 752px) 100vw, 752px" /></p>
<p>Type <strong>Y</strong> and press enter to install this dependency. The next step will be to create the virtual environment. In this case we will create it on <em>/home/Your_user/. </em>Run below commands to get this done.</p>
<pre><span style="color: #0000ff;"><strong><span style="color: #008000;">#Go to your directory.</span>
cd /home/your_user/</strong></span>

<strong><span style="color: #008000;">#Create Virtual Environment.</span></strong>
<span style="color: #0000ff;"><strong>virtualenv pgadmin4</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1710" src="http://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min.png" alt="Run Virtualenv pgadmin4" width="1020" height="192" srcset="https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min.png 1020w, https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min-300x56.png 300w, https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min-768x145.png 768w" sizes="auto, (max-width: 1020px) 100vw, 1020px" /></p>
<p>This creates a folder called &#8220;<em>pgadmin4</em>&#8220;. We must enter it to get in to this folder.</p>
<pre><span style="color: #0000ff;"><strong>cd pgadmin4</strong></span></pre>
<p>The next step will be to &#8220;activate&#8221; the virtual environment by running below statement.</p>
<pre><span style="color: #008000;"><strong>#Activate virtual environment.</strong></span>
<span style="color: #0000ff;"><strong>source bin/activate</strong></span></pre>
<h5><span style="color: #333399;"><strong>Downloading and Installing pgAdmin</strong></span></h5>
<p>Now, we will install pgadmin on this machine. We can download latest version pgAdmin4-2.1 from this <a href="https://www.postgresql.org/ftp/pgadmin/pgadmin4/v2.1/pip/">link</a>. For this tutorial we will use the python package that is showing in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1711" src="http://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min.png" alt="Download PgAdmin Package" width="864" height="554" srcset="https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min.png 864w, https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min-300x192.png 300w, https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min-768x492.png 768w" sizes="auto, (max-width: 864px) 100vw, 864px" /></p>
<p>And finally we will proceed to install pgadmin using pip command as given below.</p>
<pre><span style="color: #008000;"><strong>#Replace &lt;path-where-file-is-located&gt; with your patch followed by file name.</strong></span>
<span style="color: #0000ff;"><strong>pip install &lt;path-where-file-is-located&gt;</strong></span></pre>
<p>We will be running below command in our case.</p>
<pre><span style="color: #008000;"><strong>#Run below command to install pgadmin.</strong></span>
<strong><span style="color: #0000ff;">pip install /home/angelo/Descargas/pgadmin4-2.1-py2.py3-none-any.whl</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1712 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min.png" alt="pip install" width="1282" height="610" srcset="https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min.png 1282w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-300x143.png 300w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-768x365.png 768w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-1024x487.png 1024w" sizes="auto, (max-width: 1282px) 100vw, 1282px" /></p>
<p>With this pgAdmin is already installed but we are not finished yet. You need to create a local configuration and run it. Run below command to do this.</p>
<pre><strong><span style="color: #0000ff;"><span style="color: #008000;">#Go to pgadmin4 folder</span>
cd lib/python2.7/site-packages/pgadmin4

<span style="color: #008000;">#Create config file</span>
touch config_local.py</span></strong></pre>
<p>The &#8220;touch&#8221; command creates an empty file from the linux terminal, if the file exists it will change the date and time of the modification. In that file we can place the settings we want, if the file is left empty it will take the global settings of python.</p>
<p>We can now execute below command to create the credentials. Once you run below command, it will ask you to enter your email address and password. Those credentials will be the ones we use to access the application from the browser.</p>
<pre><strong><span style="color: #0000ff;">python lib/python2.7/site-packages/pgadmin4/pgAdmin4.pyc</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1713" src="http://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min.png" alt="Python settings" width="1020" height="176" srcset="https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min.png 1020w, https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min-300x52.png 300w, https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min-768x133.png 768w" sizes="auto, (max-width: 1020px) 100vw, 1020px" /></p>
<p>Now we have created the credentials as well in above screenshot. At the end, we will be told that we must log in with our favorite browser to 127.0.0.1:5050 to log in and enter the main page of pgAdmin.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1714" src="http://techyaz.com/wp-content/uploads/2018/02/11.-running2-min.png" alt="running pgadmin" width="857" height="176" srcset="https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min.png 857w, https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min-300x62.png 300w, https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min-768x158.png 768w" sizes="auto, (max-width: 857px) 100vw, 857px" /></p>
<p>Let&#8217;s go to our browser and type 127.0.0.1:5050</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1715 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/12.-login-min.png" alt="Launch pgadmin url" width="942" height="490" srcset="https://techyaz.com/wp-content/uploads/2018/02/12.-login-min.png 942w, https://techyaz.com/wp-content/uploads/2018/02/12.-login-min-300x156.png 300w, https://techyaz.com/wp-content/uploads/2018/02/12.-login-min-768x399.png 768w" sizes="auto, (max-width: 942px) 100vw, 942px" /></p>
<p>We put our email address and the password we have previously entered. We can also select the language. Once we will be logged in using given credentials, we can see the main pgAdmin panel that is also showing in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1716" src="http://techyaz.com/wp-content/uploads/2018/02/13.-inside-min.png" alt="PgAdmin Portal" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<p>We can test the application by adding a server. In this case it will be a local server. We must click on the &#8220;<em><strong>Add new Server</strong></em>&#8221; link given in between <em>Quick Link</em> section. We will get below screen to enter details about the server that we want to add.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1717" src="http://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min.png" alt="Add New Server" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<p>The name we want to give to the connection is placed in the window. I called it &#8220;local.&#8221; We&#8217;ll leave the rest the same, if we want to.</p>
<p>In the connection tab, we will enter the connection parameters <em>Host name, port, database, username, and password </em>to add the server. You can see this in beow screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1718" src="http://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min.png" alt="Add Server Connection Details" width="1094" height="626" srcset="https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min.png 1094w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-300x172.png 300w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-768x439.png 768w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-1024x586.png 1024w" sizes="auto, (max-width: 1094px) 100vw, 1094px" /></p>
<p>And with this we already have an added server and we can start working with postgreSQL. You can see the server is added in left side pane of pgAdmin panel. You can expand the plus sign to see the details like databases etc.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1719" src="http://techyaz.com/wp-content/uploads/2018/02/16.-server-min.png" alt="Pgadmin panelpost adding server" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/16.-server-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<h3><span style="color: #333399;"><strong>Conclusion</strong></span></h3>
<p>We have installed pgadmin 4 in debian 9 stretch to manage PostgreSQL databases. Data management is vital to system administration and specialized programs are required to keep data secure and properly structured. Complementing PostgreSQL we have pgAdmin that helps us, with a friendly graphical interface, to manage our databases, to make sentences and to monitor the service.</p>
<p>Installing both is one of the best ways to have and view databases in a way that is appropriate for our applications.</p>
<p>I hope you like this article. Please Like, Share, Comment &amp; Subscribe to this website to get all new articles directly in your inbox. You can also follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/">How to Install PgAdmin 4 in Debian 9 Stretch?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install PostgreSQL 10.1 in Debian 9 Stretch</title>
		<link>https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/</link>
					<comments>https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/#comments</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Tue, 30 Jan 2018 08:02:24 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1644</guid>

					<description><![CDATA[<p>I will show you how to install PostgreSQL latest version on debian operating system in this article. PostgreSQL is one of the popular database management system, distinguished by its speed and reliability to maintain the data of our applications. As&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/">How to Install PostgreSQL 10.1 in Debian 9 Stretch</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I will show you how to install PostgreSQL latest version on debian operating system in this article. PostgreSQL is one of the popular database management system, distinguished by its speed and reliability to maintain the data of our applications. As it says on its website: “<em>PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness</em>&#8220;. This popular program has reached version 10.1 which brings with it many improvements and above all security improvements. With this new version, PostgreSQL developers want their product to continue gaining ground in the field of database management systems and face other closed source alternatives such as Oracle, DB2 or Microsoft SQL Server.</p>
<p>Installing PostgreSQL in Debian GNU/LINUX is not a major problem, as it is available in the main repositories, but the version that comes with it is not the last one and does not allow us to have the latest updates and security patches that are necessary to ensure data protection.</p>
<p>Read below article if you want to install PostgreSQL administration and development tool pgAdmin on your Debian 9 stretch server.</p>
<ul>
<li><a href="http://techyaz.com/debian/install-pgadmin-4-in-debian-9-stretch/" target="_blank" rel="noopener"><strong>How to Install PgAdmin 4 on Debian 9 Stretch</strong></a></li>
</ul>
<h4><span style="color: #333399;">New Features in </span><span style="color: #333399;">PostgreSQL 10 </span></h4>
<p>PostgreSQL improves with each version, the changes are multiple both in administration and security level. Some important new features of PostgreSQL 10.1 are:</p>
<ul>
<li>Improved authentication process. Thanks to the new authentication system SCRAM-SHA-256.</li>
<li>Many bug fixes for logical replication. Users can now fine-tune replicated data to multiple database clusters and will have the ability to perform zero-time activity updates to larger future versions of PostgreSQL.</li>
<li>Declaratory partitioning of tables. This means that users no longer need to create triggers for routing data; it&#8217;s all handled by the system.</li>
<li>Improved parallel query execution.</li>
<li>Fix memory leak over the lifespan of a query when evaluating a set-returning function from the target list in a SELECT.</li>
</ul>
<p>As has been said, there are many changes at the application level and you can consult them all <a href="https://www.postgresql.org/docs/10/static/release-10-1.html">here.</a></p>
<h4><span style="color: #333399;">Install PostgreSQL 10.1 on Debian</span></h4>
<p>Let&#8217;s get to work  to install PostgreSQL. We will start with Adding PostgreSQL Apt Repository.</p>
<p>The first thing we must do is to create a new file called <em><strong>pgdg.list</strong></em> in the following path: <em><strong>/etc/apt/sources. list.d/</strong></em>. To do this, we must be logged in as superuser. Run below command to connect using superuser.</p>
<pre><span style="color: #008000;"><strong><em>--Connect using superuser</em></strong></span>
<span style="color: #0000ff;"><strong><em>su</em></strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1646" src="http://techyaz.com/wp-content/uploads/2018/01/2-su-min.png" alt="connect using superuser" width="524" height="143" srcset="https://techyaz.com/wp-content/uploads/2018/01/2-su-min.png 524w, https://techyaz.com/wp-content/uploads/2018/01/2-su-min-300x82.png 300w" sizes="auto, (max-width: 524px) 100vw, 524px" /></p>
<p>As you can see in the image, we must enter the password for root access. Then we invoke the nano editor and create the file in question.</p>
<pre><span style="color: #0000ff;"><em><strong>nano /etc/apt/sources.list.d/pgdg.list</strong></em></span></pre>
<p>We further add the below line of code:</p>
<pre><em><strong><span style="color: #0000ff;">deb http://apt.postgresql.org/pub/repos/apt/stretch-pgdg main</span></strong></em></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1647" src="http://techyaz.com/wp-content/uploads/2018/01/3-add-pgdgmain-min.png" alt="Add text code to pgdg file" width="658" height="444" srcset="https://techyaz.com/wp-content/uploads/2018/01/3-add-pgdgmain-min.png 658w, https://techyaz.com/wp-content/uploads/2018/01/3-add-pgdgmain-min-300x202.png 300w" sizes="auto, (max-width: 658px) 100vw, 658px" /></p>
<p>Press <strong>Ctrl + x</strong> to save the changes. We say yes and with this we already have the repository added to our software sources.</p>
<p>The next step is import the repository signing key. After updating the package lists, doing this makes our package manager recognize the repository as a reliable one. Execute below commands in your terminal window to import the repository signing key.</p>
<pre><span style="color: #0000ff;"><em><strong><span style="color: #008000;">--import the repository signing key</span>
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -</strong></em></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1648" src="http://techyaz.com/wp-content/uploads/2018/01/4-Import-Repository-Key-min.png" alt="Import Repository key" width="646" height="151" srcset="https://techyaz.com/wp-content/uploads/2018/01/4-Import-Repository-Key-min.png 646w, https://techyaz.com/wp-content/uploads/2018/01/4-Import-Repository-Key-min-300x70.png 300w" sizes="auto, (max-width: 646px) 100vw, 646px" /></p>
<p>And to refresh the repository cache, just use the following command</p>
<pre><em><strong><span style="color: #0000ff;"><span style="color: #008000;">--Update Package Lists</span>
apt-get update </span></strong></em></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1649" src="http://techyaz.com/wp-content/uploads/2018/01/5-apt-get-update-min.png" alt="update package list using apt-get update" width="644" height="338" srcset="https://techyaz.com/wp-content/uploads/2018/01/5-apt-get-update-min.png 644w, https://techyaz.com/wp-content/uploads/2018/01/5-apt-get-update-min-300x157.png 300w" sizes="auto, (max-width: 644px) 100vw, 644px" /></p>
<p>We are now proceeding to install the latest version PostgreSQL 10.1 in our Debian 9 Stretch.  Write in Terminal:</p>
<pre><em><strong><span style="color: #0000ff;"><span style="color: #008000;">--Install PostgreSQL Latest Version.</span>
apt install postgresql-10</span></strong></em></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1650" src="http://techyaz.com/wp-content/uploads/2018/01/6-Install-PostgreSQL-min.png" alt="Install PostgreSQL" width="658" height="345" srcset="https://techyaz.com/wp-content/uploads/2018/01/6-Install-PostgreSQL-min.png 658w, https://techyaz.com/wp-content/uploads/2018/01/6-Install-PostgreSQL-min-300x157.png 300w" sizes="auto, (max-width: 658px) 100vw, 658px" /></p>
<p>Above command will download and install the latest version of PostgreSQL on this Debian machine. Type <strong>Y</strong> and press enter to proceed with the installation. After downloading and installing the packages, we must initialize the postgreSQL service because if it is not running, it is not possible to access or connect with it. We can do it with the following command.</p>
<pre><em><strong><span style="color: #008000;">--Start PostgreSQL service.</span></strong></em>
<span style="color: #0000ff;"><em><strong>systemctl start postgresql</strong></em></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1651" src="http://techyaz.com/wp-content/uploads/2018/01/7-restart-postgreSQL-service-min.png" alt="Restart PostgreSQL Service" width="618" height="136" srcset="https://techyaz.com/wp-content/uploads/2018/01/7-restart-postgreSQL-service-min.png 618w, https://techyaz.com/wp-content/uploads/2018/01/7-restart-postgreSQL-service-min-300x66.png 300w" sizes="auto, (max-width: 618px) 100vw, 618px" /></p>
<p>We verify that we can make connection with PostgreSQL:</p>
<pre><span style="color: #008000;"><em><strong>--Connect to PostgreSQL and Verify Installed PostgreSQL version.</strong></em></span>
<em><strong><span style="color: #0000ff;">su postgres -c psql postgres</span></strong></em></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1652" src="http://techyaz.com/wp-content/uploads/2018/01/8-check-postgresql-version-min.png" alt="Connect to PostgreSQL" width="646" height="179" srcset="https://techyaz.com/wp-content/uploads/2018/01/8-check-postgresql-version-min.png 646w, https://techyaz.com/wp-content/uploads/2018/01/8-check-postgresql-version-min-300x83.png 300w" sizes="auto, (max-width: 646px) 100vw, 646px" /></p>
<p>And that&#8217;s it. That&#8217;s all.!!!!!!!!! We already have installed the latest version of this powerful database manager.</p>
<p>Now we can start working, for example, we can show the existing databases in a clean installation of PostgreSQL.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1653" src="http://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min.png" alt="Connect to PostgreSQL databases" width="1042" height="402" srcset="https://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min.png 1042w, https://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min-300x116.png 300w, https://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min-768x296.png 768w, https://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min-1024x395.png 1024w" sizes="auto, (max-width: 1042px) 100vw, 1042px" /></p>
<h4><span style="color: #333399;">Conclusion</span></h4>
<p>Debian is a large Linux distribution and is among the most popular in the world of system administrators. Known for its high stability and flexibility, but in its main repositories it has older versions of software and in many cases this is often a big problem. However, there are external repositories that facilitate the distribution of the latest versions of these programs.</p>
<p>PostgreSQL in the world of database has a very high reputation that makes it compete for the throne with other free alternatives such as Mysql or SQLite. Upgrading to the latest stable version guarantees us security patches and new features focused on speed, performance is very useful if we have a large database.</p>
<p>I hope you have learnt how to install PostgreSQL on Debian. Please follow our <a href="https://www.facebook.com/Techyaz/" target="_blank" rel="noopener">Facebook</a> page and <a href="https://twitter.com/Tech_yaz" target="_blank" rel="noopener">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><span style="color: #000080;"><a style="color: #000080;" href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">How to Install SQL Server 2017 on Ubuntu 16.04?</a></span></strong></li>
<li><strong><span style="color: #000080;"><a style="color: #000080;" href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">Installing SQL Server 2017 on Red Hat Linux Server</a></span></strong></li>
<li><strong><span style="color: #000080;"><a style="color: #000080;" href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Installing SQL Server on Ubuntu in Offline Mode</a></span></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/">How to Install PostgreSQL 10.1 in Debian 9 Stretch</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Fix SQL Server Installation Error: Attributes do not match</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-attributes-not-match/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-attributes-not-match/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 10 Jan 2018 11:00:49 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1469</guid>

					<description><![CDATA[<p>Last week I was working on SQL Server installation where i got this error Attributes do not match. Error details of that issue are given below: Microsoft.SqlServer.Configuration.Sco.DirectoryAttributesMissmatch: Attributes do not match. Present attributes (Directory, Compressed, NotContentIndexed) , included attributes (0),&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-attributes-not-match/">Fix SQL Server Installation Error: Attributes do not match</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Last week I was working on SQL Server installation where i got this error <em><strong>Attributes do not match</strong></em>. Error details of that issue are given below:</p>
<p><em><span style="color: #ff0000;">Microsoft.SqlServer.Configuration.Sco.DirectoryAttributesMissmatch: Attributes do not match. Present attributes (Directory, Compressed, NotContentIndexed) , included attributes (0), excluded attributes (Compressed, Encrypted).</span></em><strong> </strong></p>
<p>You can get this issue during SQL Server installation or during SQL Server patching activity. Read this article to fix this issue.</p>
<p><span style="color: #800000;"><em><strong>Related Articles</strong></em></span></p>
<ul>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server on Ubuntu running without Internet </a></li>
<li><a href="http://techyaz.com/interview-questions/sql-server-interview-questions-answers-architecture/" target="_blank" rel="noopener">SQL Server Architecture Interview Questions &amp; Answers</a></li>
<li><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/" target="_blank" rel="noopener">Fix Error 40: A Network-Related or Instance-Specific Error Occurred</a></li>
</ul>
<h4><span style="color: #333399;"><strong>Root Cause</strong></span><strong> </strong></h4>
<p>We get this error &#8220;<em><strong>Attributes do not match</strong>&#8221; </em>because one of the drive that we are using to install SQL Server is <strong>compressed</strong>. As we know, Microsoft does not support compressed drives for SQL Server installation so we&#8217;ll search for compressed drives on the database server. Best way to avoid this issue is to make a best practice to check whether any of the drives are compressed or not before starting SQL Server installation. You can also add this as a prerequisite or pre-step for SQL Server installation.<strong> </strong></p>
<h4><span style="color: #333399;"><strong>Solution</strong></span></h4>
<p>Once you get this issue, you can check all drives available on your database server whether they are compressed or not. If any drive is compressed and SQL Server is using that drive during installation then that might be the reason for getting issue <em><strong>Attributes do not match</strong></em>. You need to uncompress all such drives and then start the installation.</p>
<p>In order to uncompress the drive we need to launch property window of that drive. We just need to <strong>right click</strong> on the identified drive and choose <strong>Properties</strong> to see the status of compression. I checked the same and found one of our drive was compressed. Please have a look at below screenshot. You can see <strong>compress this drive to save disk space</strong> option is ticked. <strong>Uncheck</strong> this option and click on Ok button to apply the change.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1471" src="http://techyaz.com/wp-content/uploads/2018/01/disk_compression.png" alt="disk compression" width="385" height="537" srcset="https://techyaz.com/wp-content/uploads/2018/01/disk_compression.png 385w, https://techyaz.com/wp-content/uploads/2018/01/disk_compression-215x300.png 215w" sizes="auto, (max-width: 385px) 100vw, 385px" /></p>
<p>Once you validated all drives that none of the drives are compressed then you can start SQL Server installation and this time SQL Server installation will be successful.</p>
<p>You might get this error during SQL Server patching as well if any of the SQL Server folders will be compressed. Remember to make a practice to not compress any SQL Server file or folder. If you get this error during applying SQL Server patches, you need to find the compressed folder and then perform same activity (uncompress the identified folder) for that folder which we performed for drive compression in above screenshot. This way you can fix SQL Server installation issue &#8220;<em><strong>Attributes do not match&#8221;.</strong></em></p>
<p>I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-attributes-not-match/">Fix SQL Server Installation Error: Attributes do not match</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-attributes-not-match/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install SQL Server Agent on Ubuntu Server</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 04 Oct 2017 12:59:50 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SQL Server Agent]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1028</guid>

					<description><![CDATA[<p>I have shown how to install SQL Server 2017 on Ubuntu server that have internet access in my last article. If your Ubuntu server doesn’t have internet access then you should read attached article to install SQL Server in offline&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/">Install SQL Server Agent on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have shown <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">how to install SQL Server 2017 on Ubuntu server that have internet access</a> in my last article. If your Ubuntu server doesn’t have internet access then you should read attached article to <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">install SQL Server in offline mode.</a> Here I will show you how to install SQL Server Agent on Ubuntu server that are connected to internet.</p>
<h3><span style="color: #000080;">Install SQL Server Agent on Ubuntu Linux</span></h3>
<p>Let’s first check whether SQL Server Agent is installed or not on your existing server.  Before installing SQL Server Agent, you must install SQL Server 2017  on your ubuntu server. If you have already installed SQL Server 2017 then you can connect to SQL Server that you have installed on Ubuntu server in SSMS.</p>
<p><span style="color: #800000;"><em><strong>Related Articles:</strong></em></span></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server 2017 on Ubuntu Server that is not connected to Internet</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">SQL Server Agent Installation on Ubuntu Server that has no internet connection</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Tools on Ubuntu Server that does not have internet access.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">Install SQL Server on Red Hat Linux Server</a></strong></li>
</ul>
<p>As we can see, SQL Server Agent or SQL Agent is disabled and none of its options are showing as enabled in below image. This is because SQL Server Agent package is not installed on that Ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1029" src="http://techyaz.com/wp-content/uploads/2017/10/1-sql-agent.jpg" alt="SQL Server Agent " width="498" height="374" srcset="https://techyaz.com/wp-content/uploads/2017/10/1-sql-agent.jpg 498w, https://techyaz.com/wp-content/uploads/2017/10/1-sql-agent-300x225.jpg 300w" sizes="auto, (max-width: 498px) 100vw, 498px" /><br />
SQL Agent Package comes with SQL Server 2017 package repository so if you have downloaded SQL Server 2017 repository, you can just run installation command to install SQL Server Agent. You can have a look at my last article where I have <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">installed SQL Server 2017</a> to understand how to download Microsoft Ubuntu repositories. As we have already installed SQL Server 2017 by downloading its repositories so we can directly install SQL Server Agent here. Run below command to install SQL Server Agent package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: green;">#Install SQL Server Agent
<span style="color: #0000ff;">sudo apt-get install mssql-server-agent
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1030" src="http://techyaz.com/wp-content/uploads/2017/10/2-install-agent-1024x341.jpg" alt="install sql agent" width="1024" height="341" srcset="https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-1024x341.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-300x100.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-768x256.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent.jpg 1342w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see SQL Server Agent is installed on this machine in above screenshot and also this installation is suggesting us to restart the SQL Server service to enable SQL Server Agent. Now run below command to restart SQL Server service on this machine. You can see we have restarted SQL Server service in below image.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: green;">#Restart SQL Server Service
<span style="color: #0000ff;">systemctl restart mssql-server</span>

#Check SQL Server Service Status
<span style="color: #0000ff;">systemctl status mssql-server
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1031" src="http://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service.jpg" alt="Restart SQL Server Service" width="973" height="220" srcset="https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service.jpg 973w, https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service-300x68.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service-768x174.jpg 768w" sizes="auto, (max-width: 973px) 100vw, 973px" /></p>
<p>Now connect to SQL Server Instance in SSMS client. You can also connect to SQL Server using sqlcmd utility but we need to separately install this utility to make database connection that we will do in another article. If you are already connected to SQL Server instance in SSMS then just right click on Agent folder and click on refresh button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1032" src="http://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service.jpg" alt="refresh sql agent folder" width="401" height="366" srcset="https://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service.jpg 401w, https://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service-300x274.jpg 300w" sizes="auto, (max-width: 401px) 100vw, 401px" /></p>
<p>You can see SQL Server Agent folder is enabled and all options are showing now in below image. Even now we can create any agent job to schedule any database tasks now.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1033" src="http://techyaz.com/wp-content/uploads/2017/10/5-sql-agent.jpg" alt="SQL Server Agent is installed" width="583" height="411" srcset="https://techyaz.com/wp-content/uploads/2017/10/5-sql-agent.jpg 583w, https://techyaz.com/wp-content/uploads/2017/10/5-sql-agent-300x211.jpg 300w" sizes="auto, (max-width: 583px) 100vw, 583px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/">Install SQL Server Agent on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install SQL Server 2017 on Ubuntu with Internet Access</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 03 Oct 2017 10:24:51 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1012</guid>

					<description><![CDATA[<p>We can easily install SQL Server 2017 on Ubuntu server if we have internet access to the online repositories but little painful if we don’t have internet access to the server. You can read attached article to learn how to&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/">Install SQL Server 2017 on Ubuntu with Internet Access</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We can easily install SQL Server 2017 on Ubuntu server if we have internet access to the online repositories but little painful if we don’t have internet access to the server. You can read attached article to learn <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">how to install SQL Server on Ubuntu server where there is no internet connection</a>. Here i will explain how to perform online installation of SQL Server on Ubuntu 16.04 Server that are connected to internet.</p>
<p>Before going ahead, we need Ubuntu Linux 16.04 server. If you don’t have Ubuntu server then you can <a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">create a virtual machine</a> and <a href="https://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">install Ubuntu 16.04 Server</a> with the help of attached articles in the link.</p>
<h5><span style="color: #000080;">Install SQL Server on Ubuntu Server</span></h5>
<p>Below are the steps you should follow to install SQL Server 2017 on your Ubuntu 16.04 machine that are connected to internet.</p>
<p><strong>1-</strong> First step is to connect to Ubuntu Server locally or using PuTTY.</p>
<p><strong>2-</strong> Once you are connected to Ubuntu server, run below command to download the public repository GPG keys:</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Download GPG Keys</span>
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add –
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1013" src="http://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-1024x113.jpg" alt="Download GPG keys" width="1024" height="113" srcset="https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-1024x113.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-300x33.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-768x85.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl.jpg 1070w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>3-</strong> We can see curl package is not installed on this machine so first we should install curl here. Run below command to install CURL package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install CURL Package.</span>
Sudo apt install curl
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1014" src="http://techyaz.com/wp-content/uploads/2017/10/2-install-curl-1024x501.jpg" alt="Install CURL" width="770" height="330" /></p>
<p>Once curl will be installed, run curl command that are given in step 2 again to download the GPG keys.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1015" src="http://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl.jpg" alt="Run curl to download GPG keys" width="984" height="184" srcset="https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl.jpg 984w, https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl-300x56.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl-768x144.jpg 768w" sizes="auto, (max-width: 984px) 100vw, 984px" /></p>
<p><strong>4-</strong> Register the Microsoft Ubuntu Repository by running any of the below commands. First command is older one and for RC (Release Candidate) version. If you want to install SQL Server 2017 general availability version then run second command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Register Microsoft Ubuntu Repository for RC version</span>
sudo add-apt-repository "$(curl <a href="https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list">https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list</a>)"

<span style="color: #008000;">#Run this command if you are downloading GA (General Availability) Repository.</span>
sudo curl https://packages.microsoft.com/keys/microsoft.asc \| sudo apt-key add - &amp;&amp; sudo add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1016" src="http://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-1024x117.jpg" alt="add-apt-repository" width="1024" height="117" srcset="https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-1024x117.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-300x34.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-768x88.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository.jpg 1238w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>We can see add-apt-repository command is not found so we will first install the required package for this command on this server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install add-apt-repository package</span>
Sudo apt-get install software-properties-common
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1017" src="http://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-1024x364.jpg" alt="add-apt-repository" width="1024" height="364" srcset="https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-1024x364.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-300x107.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-768x273.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository.jpg 1219w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Type y to proceed in above image. Once installed, again run command given in this step initially. Run the one given for general availability.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1018" src="http://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-1024x136.jpg" alt="Download Microsoft Ubuntu Repository" width="1024" height="136" srcset="https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-1024x136.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-300x40.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-768x102.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository.jpg 1227w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>5-</strong> Update the repository by running below command. A series of executions will start during update process.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Update All Packages</span>
Sudo apt-get update
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1019" src="http://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-1024x84.jpg" alt="update packages in ubuntu" width="1024" height="84" srcset="https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-1024x84.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-300x25.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-768x63.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update.jpg 1146w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>6-</strong> Install SQL Server by running below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SQL Server 2017</span>
Sudo apt-get install -y mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1020" src="http://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-1024x436.jpg" alt="Install SQL Server" width="1024" height="436" srcset="https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-1024x436.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-300x128.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-768x327.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install.jpg 1286w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>7-</strong> Install above suggested package mssql-conf to configure SQL Server 2017. This package will ask you to accept license terms and choose SQL Server edition as shown in below image.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;"> #Run below utility to configure SQL Server </span></strong>
<span style="color: #0000ff;"><strong>sudo /opt/mssql/bin/mssql-conf setup </strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1021" src="http://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-1024x580.jpg" alt="configure mssql-conf" width="1024" height="580" srcset="https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-1024x580.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-300x170.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-768x435.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf.jpg 1371w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>8-</strong> Now check the SQL Server service by running below command. We can see service is running now.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Check SQL Server service</span></strong>
<strong><span style="color: #0000ff;">systemctl status mssql-server</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1022" src="http://techyaz.com/wp-content/uploads/2017/10/10-check-service-1024x206.jpg" alt="Check SQL Server Service" width="1024" height="206" srcset="https://techyaz.com/wp-content/uploads/2017/10/10-check-service-1024x206.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service-300x60.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service-768x154.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service.jpg 1050w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>9-</strong> Now, you can connect to this instance using SSMS client from your local host or from the server where you have installed SSMS. Make sure that there should be connectivity between both servers. SQL Agent is disabled because it is not installed yet.  Read this article to <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/" target="_blank" rel="noopener">install SQL Server Agent on Ubuntu Server</a> to get it enabled for Agent jobs and other agent related features.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1023" src="http://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS.jpg" alt="Connect to SQL Server using SSMS" width="342" height="248" srcset="https://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS.jpg 342w, https://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS-300x218.jpg 300w" sizes="auto, (max-width: 342px) 100vw, 342px" /></p>
<p><strong>10-</strong> If you face any issue during connectivity, you can check SQL Server port no 1433. If it is not open, run below command to enable port no 1433 and then establish the connection.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Open port 1433
<span style="color: #0000ff;">sudo ufw allow 1433</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1024" src="http://techyaz.com/wp-content/uploads/2017/10/12-Port-enable.jpg" alt="Open port 1433 in ubuntu" width="511" height="88" srcset="https://techyaz.com/wp-content/uploads/2017/10/12-Port-enable.jpg 511w, https://techyaz.com/wp-content/uploads/2017/10/12-Port-enable-300x52.jpg 300w" sizes="auto, (max-width: 511px) 100vw, 511px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<pre class="brush: sql; title: ; notranslate" title=""></pre>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/">Install SQL Server 2017 on Ubuntu with Internet Access</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to update License Key or Product Key of SQL Server Instance</title>
		<link>https://techyaz.com/sql-server/sql-server-administration/update-license-key-product-key-sql-server-instance/</link>
					<comments>https://techyaz.com/sql-server/sql-server-administration/update-license-key-product-key-sql-server-instance/#comments</comments>
		
		<dc:creator><![CDATA[Maruti Nandan]]></dc:creator>
		<pubDate>Wed, 06 Sep 2017 08:25:22 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[License key]]></category>
		<category><![CDATA[Product key]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=807</guid>

					<description><![CDATA[<p>I was working in a project where I came to know client was using MSDN licenses on production environment. Though they have MS SQL Server license available but those SQL Server licenses were not applied on this production server. This&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-administration/update-license-key-product-key-sql-server-instance/">How to update License Key or Product Key of SQL Server Instance</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I was working in a project where I came to know client was using MSDN licenses on production environment. Though they have MS SQL Server license available but those SQL Server licenses were not applied on this production server. This can be major compliance issue if you are running your production system with MSDN license. I had suggested the same to client and convince them to apply available license key to the running SQL Server Instances in production.</p>
<p>Read attached article if you want to<strong> <a href="https://techyaz.com/sql-server/troubleshooting/sql-server-evaluation-period-has-expired-and-how-to-upgrade-it/" target="_blank" rel="noopener">upgrade your SQL Server Evaluation Edition to Standard, Enterprise or Developer Edition</a>. </strong>You can also activate your SQL Server Instance if its evaluation period has been expired using same article.</p>
<p><span style="color: #000080;"><strong>Note: &#8211;</strong></span> <strong>Take proper Full backup of your all databases before starting this activity</strong>. Make sure to create script of all Logins and SQL Server Agent Jobs etc. You can also <strong>Rename your Data folder</strong> where you have placed your database files to secure the databases during this process post stopping SQL Server services .</p>
<p><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><a href="https://techyaz.com/interview-questions/sql-server-interview-questions-answers-architecture/" target="_blank" rel="noopener">SQL Server Architecture Interview Questions &amp; Answers</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/what-should-be-the-best-value-for-fill-factor-in-sql-server/" target="_blank" rel="noopener">What should be best value for fill factor in SQL Server?</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/always-turn-off-database-auto-shrink/" target="_blank" rel="noopener">Why Should You Always Turn Off Database Auto Shrink Property?</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/improve-sql-server-bulk-data-import-performance/" target="_blank" rel="noopener">How to Improve Bulk Data Load Performance?</a></strong></li>
</ul>
<h3><span style="color: #000080;">Change SQL Server License key</span></h3>
<p><strong>Step 1-</strong> First step is to stop all SQL Server services. Launch SQL Server Configuration Manager and shutdown all services.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-808 size-full" src="http://techyaz.com/wp-content/uploads/2017/09/1-services.jpg" alt="" width="625" height="102" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-services.jpg 625w, https://techyaz.com/wp-content/uploads/2017/09/1-services-300x49.jpg 300w" sizes="auto, (max-width: 625px) 100vw, 625px" /></p>
<p><strong>Step 2-</strong>  <strong>Copy SQL Server Enterprise/Standard edition setup</strong> to your server where you want to change the SQL Server product key. Run <strong>Setup.Exe </strong>with an <strong>Administrator</strong> account. <strong>SQL Server Installation Center</strong> will appear on your screen to proceed. Click on <strong>Maintenance</strong> tab from left side pane. You can see multiple options in right side pane. Select first option <strong>Edition Upgrade</strong> as shown in below image and click <strong>Next.</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-809" src="http://techyaz.com/wp-content/uploads/2017/09/2-edition-upgrade.jpg" alt="" width="800" height="178" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-edition-upgrade.jpg 800w, https://techyaz.com/wp-content/uploads/2017/09/2-edition-upgrade-300x67.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/2-edition-upgrade-768x171.jpg 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p><strong>Step3-</strong> SQL Server will check all required rules, once all rules will be passed next button will enable to proceed. Click on Next button here.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-810" src="http://techyaz.com/wp-content/uploads/2017/09/3-rule-checks.jpg" alt="sql server rules check" width="622" height="466" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-rule-checks.jpg 622w, https://techyaz.com/wp-content/uploads/2017/09/3-rule-checks-300x225.jpg 300w" sizes="auto, (max-width: 622px) 100vw, 622px" /></p>
<p><strong>Step 4-</strong> Once you click on Next button of above screen, next window will come to enter the License Key or product Key of SQL Server Instance. <strong>Enter your Product Key</strong> or if EXE has a valid license key to cross verify then proceed for Next button with the same License key. Make sure that License key is not for MSDN or from any invalid source.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-811" src="http://techyaz.com/wp-content/uploads/2017/09/4-product-key.jpg" alt="enter sql server product key" width="755" height="335" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-product-key.jpg 755w, https://techyaz.com/wp-content/uploads/2017/09/4-product-key-300x133.jpg 300w" sizes="auto, (max-width: 755px) 100vw, 755px" /></p>
<p><strong>Step 5-</strong> Accept License Term and Condition and Click on Next button to proceed.</p>
<p><strong>Step 6-</strong> Select MS SQL Server Instance for which you are going to change license key if you have multiple instances.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-812" src="http://techyaz.com/wp-content/uploads/2017/09/5-final-window.jpg" alt="sql instance" width="600" height="460" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-final-window.jpg 600w, https://techyaz.com/wp-content/uploads/2017/09/5-final-window-300x230.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Step 7-</strong> Click on Next button of above screen, it will check all rules for edition upgrade. If all rules shows as Passed you are good to go ahead. If your are getting any warning or error verify and try to fix it before going with the next step.</p>
<p><strong>Step 8-</strong> Below will be the final window that prompt for Ready to upgrade the edition. Click on Upgrade button if all looks ok.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-813" src="http://techyaz.com/wp-content/uploads/2017/09/6-final-window.jpg" alt="install sql server" width="804" height="550" srcset="https://techyaz.com/wp-content/uploads/2017/09/6-final-window.jpg 804w, https://techyaz.com/wp-content/uploads/2017/09/6-final-window-300x205.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/6-final-window-768x525.jpg 768w" sizes="auto, (max-width: 804px) 100vw, 804px" /></p>
<p><strong>Step 9-</strong> Once License will be updated below window will prompt with succeeded status.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-814" src="http://techyaz.com/wp-content/uploads/2017/09/8-success.jpg" alt="" width="468" height="148" srcset="https://techyaz.com/wp-content/uploads/2017/09/8-success.jpg 468w, https://techyaz.com/wp-content/uploads/2017/09/8-success-300x95.jpg 300w" sizes="auto, (max-width: 468px) 100vw, 468px" /></p>
<p>Now you MSDN license has been changed to valid SQL Server Enterprise License. License will change based on the SQL Server setup you used for edition upgrade.</p>
<p>You might face <strong>Access Denied</strong> error during this edition upgrade, here is the solution to fix this error. You may get access denied error on SQL Server License.rtf file for that you need to uncheck read only attribute from file name.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-815" src="http://techyaz.com/wp-content/uploads/2017/09/7-read-only.jpg" alt="license key file" width="345" height="320" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-read-only.jpg 345w, https://techyaz.com/wp-content/uploads/2017/09/7-read-only-300x278.jpg 300w" sizes="auto, (max-width: 345px) 100vw, 345px" /></p>
<p>&nbsp;</p>
<p>If you have renamed your Data folder before starting this process as suggested in Note section, you can rename back it to Data folder again and then start the SQL Server services. Now, start MS SQL services which you have stopped initially before starting upgrade activity and check SQL Server Instance version and license type . You can see our output looks like below details.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;">Microsoft SQL Server 2012 (SP3) (KB#######) - 11.0.6020.0 (X64)
Date and time
Copyright (c) Microsoft Corporation
Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 &lt;X64&gt;
(Build 9600: ) (Hypervisor)
</span></strong></pre>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-administration/update-license-key-product-key-sql-server-instance/">How to update License Key or Product Key of SQL Server Instance</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-administration/update-license-key-product-key-sql-server-instance/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install SQL Server Agent on Red Hat Linux Server</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 04 Sep 2017 13:17:35 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server Agent]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=784</guid>

					<description><![CDATA[<p>SQL Server Agent is very useful in automating any database activities. By default, it is not installed along with SQL Server on Linux server. You need to manually install it after installing SQL Server. Here I will explain step by&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/">How to Install SQL Server Agent on Red Hat Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>SQL Server Agent is very useful in automating any database activities. By default, it is not installed along with SQL Server on Linux server. You need to manually install it after installing SQL Server. Here I will explain step by step process to install SQL Server Agent on RedHat Linux 7.3 server running with internet access.</p>
<p>Before going ahead, we need to have a RedHat Linux server. If you have no idea about installing Linux server or creating a virtual machine where you can install Linux and SQL Server then i would recommend you to read below articles first.</p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">Install RedHat Linux 7.3 on a virtual machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">How to Install SQL Server on RedHat Linux 7.3</a></strong></li>
</ul>
<p>If you have installed SQL Server on Red Hat Linux server, your next step should be to install SQL Server Agent on that server. Make sure you have internet access on the Linux server where we are going to install SQL Server Agent. If your server does not have internet connection then you should read attached article about <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-redhat-linux-server-without-internet-offline-installation/" target="_blank" rel="noopener">installing SQL Server Agent on RedHat Linux that are running without Internet</a>.</p>
<h3><span style="color: #000080;"><strong>Install SQL Server Agent on RHEL</strong></span></h3>
<p>As this Linux machine has internet connection so let&#8217;s go ahead with Installation on Red Hat Linux server. Installation process is quite similar to the installation of SQL Server on Redhat Linux.</p>
<p>You don&#8217;t need to download SQL Server Agent package separately the way we did for SQL Server and <a href="https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/" target="_blank" rel="noopener">SQL Tools installations</a>.The package required to install SQL Server Agent included into SQL Server package repository configuration file.</p>
<p>If you have already downloaded SQL Server package repository configuration file to install SQL Server, you can skip this step and go ahead to install Agent on your server. If you don&#8217;t have SQL Server package repository configuration file or you have deleted it then you can run below command to download the package repository configuration file.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #008000;">#Download Microsoft SQL Server Red Hat repository configuration file</span><span class="kwrd" style="color: blue;">
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server.repo
</span></strong></pre>
<p>This will download Microsoft SQL Server Package Repository Configuration File that are required to install SQL Server and SQL Server Agent.</p>
<p>As we have the Agent repository configuration file now, Let us first check the SQL Server in SSMS to see how SQL Server Agent working.  You can see we are not able to do anything in SQL Server Agent folder.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-785 size-full" src="http://techyaz.com/wp-content/uploads/2017/09/1.jpg" alt="SQL-Agent" width="480" height="642" srcset="https://techyaz.com/wp-content/uploads/2017/09/1.jpg 480w, https://techyaz.com/wp-content/uploads/2017/09/1-224x300.jpg 224w" sizes="auto, (max-width: 480px) 100vw, 480px" /></p>
<p>Now our next step is to install SQL Server Agent to enable its related features. Run below command to start the installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SQL Server Agent</span>
sudo yum install mssql-server-agent</span></strong></pre>
<p>You cans see series of executions started to proceed with the installation in below image. It will also ask you to enter <strong>Y</strong> to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-786" src="http://techyaz.com/wp-content/uploads/2017/09/2-install-agent-1024x367.jpg" alt="install sql agent" width="1024" height="367" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-install-agent-1024x367.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/2-install-agent-300x107.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/2-install-agent-768x275.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/2-install-agent.jpg 1424w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Enter <strong>Y</strong> to proceed with the installation, once you press enter it will proceed to install. Now SQL Server Agent will install on your machine.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-787" src="http://techyaz.com/wp-content/uploads/2017/09/3-install-agent-1024x321.jpg" alt="install sql agent" width="1024" height="321" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-install-agent-1024x321.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/3-install-agent-300x94.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/3-install-agent-768x241.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/3-install-agent.jpg 1419w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>It will also suggest you to restart SQL Server service. If you will not restart SQL Server service, installation will not be completed so next step is to restart SQL Server service on this server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Restart SQL Server Service</span>
systemctl restart mssql-server</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-788" src="http://techyaz.com/wp-content/uploads/2017/09/4-restart-service-1024x209.jpg" alt="restart sql server service" width="1024" height="209" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-restart-service-1024x209.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/4-restart-service-300x61.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/4-restart-service-768x157.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/4-restart-service.jpg 1054w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see SQL Server is online now. Go ahead and connect to SQL Server in SSMS as per below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-789" src="http://techyaz.com/wp-content/uploads/2017/09/6-ssms.jpg" alt="" width="600" height="614" srcset="https://techyaz.com/wp-content/uploads/2017/09/6-ssms.jpg 600w, https://techyaz.com/wp-content/uploads/2017/09/6-ssms-293x300.jpg 293w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Now you can create Agent jobs to automate database activities on your SQL Server instance.<br />
I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/">How to Install SQL Server Agent on Red Hat Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Installing SQL Tools on Red Hat Linux</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 04 Sep 2017 13:08:56 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[SQL Tools]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=774</guid>

					<description><![CDATA[<p>I have shown you how to install SQL Server on Redhat Linux Server in my last article. Here I will explain step by step process to install SQL Tools on RedHat Linux 7.3 server. Installing SQL Tools will install sqlcmd&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/">Installing SQL Tools on Red Hat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have shown you <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">how to install SQL Server on Redhat Linux Server</a> in my last article. Here I will explain step by step process to install SQL Tools on RedHat Linux 7.3 server. Installing SQL Tools will install sqlcmd and bcp utilities on this RHEL server.</p>
<p>Before going ahead, we need to have a RedHat Linux server. If you have no idea about installing Linux server or creating a virtual machine where you can install Linux and SQL Server then i would recommend you to read below articles first.</p>
<ul>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></li>
<li><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">How to Install RedHat Linux 7.3 on a virtual machine.</a></li>
</ul>
<p>If you have installed SQL Server on Red Hat Linux server, you need to install SQL Tools to make database connection locally on the server. Make sure you have internet access on the Linux server where we are going to install SQL Tools. If your server does not have internet connection then you should read attached article about <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-tools-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">installing SQL Tools on RedHat Linux that are running without Internet</a>.</p>
<h3><span style="color: #000080;"><strong>Install SQL Tools on RHEL</strong></span></h3>
<p>As this Linux machine has internet connection so installing SQL Tools on this Linux machine will be quite easy. Let&#8217;s go ahead with the SQL Tools Installation on Red Hat Linux server that are connected to internet. Installation process is quite similar to the <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">installation of SQL Server on Redhat Linux</a>.</p>
<p>Let us first check the SQL Server service to make sure SQL Server is installed on this machine. Run below command to check the service.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Check SQL Server Services</span>
systemctl status mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-775" src="http://techyaz.com/wp-content/uploads/2017/09/1-check-service.jpg" alt="Check SQL Server Service" width="1006" height="197" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-check-service.jpg 1006w, https://techyaz.com/wp-content/uploads/2017/09/1-check-service-300x59.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/1-check-service-768x150.jpg 768w" sizes="auto, (max-width: 1006px) 100vw, 1006px" /></p>
<p>We can see SQL Server is installed on this machine. Now check SQL Tools are installed on this machine or not by running <strong>sqlcmd</strong> utility. We can see this tool is not installed yet.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-776" src="http://techyaz.com/wp-content/uploads/2017/09/2-check-sqlcmd.jpg" alt="check sqlcmd" width="638" height="104" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-check-sqlcmd.jpg 638w, https://techyaz.com/wp-content/uploads/2017/09/2-check-sqlcmd-300x49.jpg 300w" sizes="auto, (max-width: 638px) 100vw, 638px" /></p>
<p>Now we will download the Microsoft SQL Tools Redhat repository configuration file by running below command to start the SQL Tools installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Download Microsoft Red Hat repository configuration file</span>
sudo curl -o /etc/yum.repos.d/msprod.repo https://packages.microsoft.com/config/rhel/7/prod.repo
</span></strong></pre>
<p>You can see file is downloaded to the given folder location. You can see this in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-777" src="http://techyaz.com/wp-content/uploads/2017/09/3-download-repository-1024x265.jpg" alt="download sql tools repository" width="1024" height="265" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-download-repository-1024x265.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/3-download-repository-300x78.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/3-download-repository-768x199.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/3-download-repository.jpg 1310w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Run below commands to install SQL Tools along with unixODBC package on this server. We need to install unixODBC because of dependency issue. First update all packages by running below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Run package update.</span>
sudo yum update
</span></strong></pre>
<p>Once package update will complete. Run below command to install SQL Tools. Once you execute below command, a series of execution will start and show you the details of package that are going to install.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Install SQL Tools.</span>
<span style="color: #0000ff;">sudo yum install -y mssql-tools unixODBC-devel
</span></strong></pre>
<p>After series of execution, setup will ask you to accept the license terms. Type YES to accept the license terms.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-778" src="http://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools-1024x551.jpg" alt="Install SQL Tools" width="1024" height="551" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools-1024x551.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools-300x161.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools-768x413.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools.jpg 1440w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>I pressed enter button post accepting the license terms, again a series of execution started and SQL tools installation was completed within minutes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-779" src="http://techyaz.com/wp-content/uploads/2017/09/5-sql-tool-installation.jpg" alt="install sqlcmd" width="670" height="442" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-sql-tool-installation.jpg 670w, https://techyaz.com/wp-content/uploads/2017/09/5-sql-tool-installation-300x198.jpg 300w" sizes="auto, (max-width: 670px) 100vw, 670px" /></p>
<p>Once SQL Tools will install, you can go ahead and check sqlcmd utility. If your Linux server is not able to recognize SQL Server Tools utilities sqlcmd or bcp we need to set path environment variables. Although, it is optional step but you should run below commands to add /opt/mssql-tools/bin/ to your PATH environment variable.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Add /opt/mssql-tools/bin/ to your PATH environment variable.</span>
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bash_profile
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bashrc
source ~/.bashrc
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-780" src="http://techyaz.com/wp-content/uploads/2017/09/6-Path-variable.jpg" alt="Path variables" width="1002" height="86" srcset="https://techyaz.com/wp-content/uploads/2017/09/6-Path-variable.jpg 1002w, https://techyaz.com/wp-content/uploads/2017/09/6-Path-variable-300x26.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/6-Path-variable-768x66.jpg 768w" sizes="auto, (max-width: 1002px) 100vw, 1002px" /></p>
<p>Let us see whether Linux is able to recognize SQL Tool or not in below screenshot. We can see now sqlcmd is throwing output.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-781" src="http://techyaz.com/wp-content/uploads/2017/09/7-check-sqlcmd.jpg" alt="Check sqlcmd" width="695" height="132" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-check-sqlcmd.jpg 695w, https://techyaz.com/wp-content/uploads/2017/09/7-check-sqlcmd-300x57.jpg 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></p>
<p>Now you can go ahead and connect to your SQL Server instance locally by using sqlcmd tool. You can see i have connected to SQL Server Instance using sqlcmd in below screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-782" src="http://techyaz.com/wp-content/uploads/2017/09/8-connect-using-sqlcmd.jpg" alt="connect using sqlcmd" width="984" height="369" srcset="https://techyaz.com/wp-content/uploads/2017/09/8-connect-using-sqlcmd.jpg 984w, https://techyaz.com/wp-content/uploads/2017/09/8-connect-using-sqlcmd-300x113.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/8-connect-using-sqlcmd-768x288.jpg 768w" sizes="auto, (max-width: 984px) 100vw, 984px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/">Installing SQL Tools on Red Hat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install SQL Server on Redhat Linux</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 04 Sep 2017 12:58:42 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=762</guid>

					<description><![CDATA[<p>Earlier SQL Server used to run only on Windows platform till SQL Server 2016 version. Now we can host our applications on Linux based SQL Server Instances. Here I will explain step by step process to install SQL Server on&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/">How to Install SQL Server on Redhat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Earlier SQL Server used to run only on Windows platform till SQL Server 2016 version. Now we can host our applications on Linux based SQL Server Instances. Here I will explain step by step process to install SQL Server on RedHat Linux 7.3 server.</p>
<h3><span style="color: #000080;"><strong>Prerequisites</strong></span></h3>
<p>Before going ahead, we need to have a RedHat Linux server. If you have no idea about installing Linux server or creating a virtual machine where you can install Linux and SQL Server then i would recommend you to read below articles first.</p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">How to Install RedHat Linux 7.3 on a virtual machine.</a></strong></li>
</ul>
<p>Below are the prerequisites that needs to have on your virtual machine in order to install SQL Server 2017.</p>
<ul>
<li>A <strong>Red Hat Linux Machine</strong> having <strong>Internet</strong> Connection</li>
<li><strong>RAM</strong> &#8211; 3.25GB</li>
<li><strong>Disk Space</strong> &#8211; 6GB</li>
<li><strong>Processor speed</strong> &#8211; 2 GHz</li>
<li><strong>Processor cores</strong> &#8211; 2 cores</li>
<li><strong>Processor type</strong> &#8211; x64</li>
</ul>
<h3><span style="color: #000080;"><strong>Install SQL Server 2017 on RHEL</strong></span></h3>
<p>Installing SQL Server 2017 on Redhat Linux is straight forward method if your server has internet connection and able to access online repositories. But if your Red Hat Linux machine does not have internet connection you can go with attached article <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Offline Installation of SQL Server 2017 on Red Hat Linux</a>. Let us go with the SQL Server Installation on Redhat Linux server that have internet connection.</p>
<p>Connect to RHEL server locally or through PuTTY. Check whether SQL Server is previously installed on this machine by someone else or not. You can see SQL Server is not installed, we can see it by checking the SQL Server service. Now download the Microsoft SQL Server Redhat repository configuration file by running below curl command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #008000;">#Download Microsoft SQL Server Redhat repository configuration file</span><span class="kwrd" style="color: blue;">
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server.repo
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-763" src="http://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository-1024x259.jpg" alt="Download Microsoft SQL Server Repository " width="1024" height="259" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository-1024x259.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository-300x76.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository-768x194.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository.jpg 1409w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Next step is to install SQL Server on Linux machine. Run below command to update all package repository on Red Hat Linux server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Update Packages</span>
<span class="kwrd" style="color: blue;">sudo yum update
</span>
<span style="color: #008000;">#Install SQL Server</span>
<span style="color: blue;">sudo yum install -y mssql-server</span>
</strong></pre>
<p>I ran installation command which is showing in below image. A series of execution will start followed by checking the dependencies. If you will face any dependency issue, you should first resolve all missing dependencies then proceed with the installation. Setup will process and show you details of the packages which will be installing. You can see the details in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-764" src="http://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server-1024x433.jpg" alt="Install SQL Server on Linux" width="1024" height="433" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server-1024x433.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server-300x127.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server-768x325.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server.jpg 1440w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>SQL Server package is in downloading process. Once download will complete, installation process will start. This will take few minutes to install the package.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-765" src="http://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server-1024x291.jpg" alt="Install SQL Server on Linux" width="1024" height="291" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server-1024x291.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server-300x85.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server-768x219.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server.jpg 1427w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now you can see SQL Server database engine is installed on this Redhat Linux server. Installation is not completed yet because setup suggests us to run <strong>mssql-conf</strong> utility to complete the installation. So next step is to run this process.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-766" src="http://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server-1024x589.jpg" alt="" width="1024" height="589" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server-1024x589.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server-300x172.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server-768x441.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server.jpg 1423w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Setup is suggesting us to install a mssql-conf utility to accept the license terms and set the sa password. Run below command to configure SQL Server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;">sudo /opt/mssql/bin/mssql-conf setup
</span></strong></pre>
<p>This execution will ask us to <strong>accept the License terms, select the SQL Server edition</strong> and also tell us to <strong>set the sa password</strong>. Let us do that to complete this installation. Once you execute above command, it will ask as to enter <strong>YES</strong> to access the license terms. Type <strong>YES</strong> and press enter. Once you press enter post accepting license terms, setup will give you options to choose <strong>SQL Server edition</strong>. Select correct edition as per your requirement.</p>
<p>Once you choose SQL Server edition, it will ask you to <strong>set sa login password</strong>. The moment you set the sa password, SQL Server configuration will be completed and ready to use.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-767" src="http://techyaz.com/wp-content/uploads/2017/09/5-install-mssql-conf.jpg" alt="" width="934" height="714" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-install-mssql-conf.jpg 934w, https://techyaz.com/wp-content/uploads/2017/09/5-install-mssql-conf-300x229.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/5-install-mssql-conf-768x587.jpg 768w" sizes="auto, (max-width: 934px) 100vw, 934px" /></p>
<p>Now SQL Server is installed, but sometimes you may face issue connecting to your SQL Server instance. You need to run below commands to open the SQL Server port on the firewall on the Linux server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Open Firewall for SQL Server</span>
sudo firewall-cmd --zone=public --add-port=1433/tcp --permanent
sudo firewall-cmd --reload
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-768" src="http://techyaz.com/wp-content/uploads/2017/09/7-open-firewall.jpg" alt="Open firewall" width="915" height="129" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-open-firewall.jpg 915w, https://techyaz.com/wp-content/uploads/2017/09/7-open-firewall-300x42.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/7-open-firewall-768x108.jpg 768w" sizes="auto, (max-width: 915px) 100vw, 915px" /></p>
<p>You can see above commands executed successfully. Port 1433 is already enabled on my machine. If this port is not open on your server it will display as success. Now, you can check the SQL Server service to validate this installation. Run the same command which we have run to check the SQL Server service before starting the installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #008000;">#Check SQL Server Service
<span style="color: #0000ff;">systemctl status mssql-server
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-769" src="http://techyaz.com/wp-content/uploads/2017/09/8-check-service.jpg" alt="check sql server service" width="1006" height="197" srcset="https://techyaz.com/wp-content/uploads/2017/09/8-check-service.jpg 1006w, https://techyaz.com/wp-content/uploads/2017/09/8-check-service-300x59.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/8-check-service-768x150.jpg 768w" sizes="auto, (max-width: 1006px) 100vw, 1006px" /><br />
Now your SQL Server is ready to use. You can connect to this instance using SSMS client tool. You can see i have connected to this instance using SSMS from my local host computer.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-770" src="http://techyaz.com/wp-content/uploads/2017/09/9-connect-sql-server.jpg" alt="" width="360" height="350" srcset="https://techyaz.com/wp-content/uploads/2017/09/9-connect-sql-server.jpg 360w, https://techyaz.com/wp-content/uploads/2017/09/9-connect-sql-server-300x292.jpg 300w" sizes="auto, (max-width: 360px) 100vw, 360px" /></p>
<p>If you want to connect to SQL Server on this server only. You need to connect using <strong>sqlcmd</strong> utility. By default, sqlcmd tool does not install on Linux machine. We need to manually install it. Please visit this attached article to understand <a href="https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/" target="_blank" rel="noopener">step by step process of installing SQL Tools on a Red Hat Linux Server</a>. If you don&#8217;t have internet access you can follow another article to <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-tools-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">install SQL Tools on Redhat Linux server in Offline mode</a>.</p>
<p><span style="color: #800000;"><strong>If your Linux virtual machine doesn&#8217;t have Internet connection, you should read:</strong></span></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">How to Install SQL Server 2017 on RedHat Linux in Offline Mode.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-tools-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Installing SQL Tools on RedHat Linux in Offline Mode.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-redhat-linux-server-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server Agent on RHEL running without Internet.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">How to install SQL Server on Ubuntu in Offline Mode.</a></strong></li>
</ul>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/">How to Install SQL Server on Redhat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Check and Install .NET framework 3.5 on your Server</title>
		<link>https://techyaz.com/sql-server/check-install-net-framework-3-5-server/</link>
					<comments>https://techyaz.com/sql-server/check-install-net-framework-3-5-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Thu, 24 Aug 2017 12:40:29 +0000</pubDate>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[.NET framework 3.5]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=660</guid>

					<description><![CDATA[<p>We must Install .NET framework 3.5 as prerequisite to install SQL Server on Windows Operating System. We need to manually install it before starting SQL Server installation. You can also deploy it by using group policy. Earlier we used to&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/check-install-net-framework-3-5-server/">How to Check and Install .NET framework 3.5 on your Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We must Install .NET framework 3.5 as prerequisite to install SQL Server on Windows Operating System. We need to manually install it before starting SQL Server installation. You can also deploy it by using group policy. Earlier we used to download the .NET package and then run it to install. Now process has become easier and you don&#8217;t need to download its package for installation. I would recommend you to first check if .net 3.5 is installed or not on your server, if it&#8217;s already installed then you should not reinstall it again. You can see <strong>Validate</strong> section of this article to learn how to check if .net 3.5 is installed or not.</p>
<h5><span style="color: #800000;">Related Articles:</span></h5>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">Installing SQL Server on Ubuntu Server</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">SQL Server Installation on RedHat Linux</a></strong></li>
</ul>
<h3><span style="color: #333399;">.NET Framework 3.5 Installation</span></h3>
<p>There are two ways to install .NET Framework 3.5 on windows server.</p>
<ul>
<li>Using GUI</li>
<li>Using Powershell</li>
</ul>
<h5><span style="color: #993300;">GUI Method</span></h5>
<ol class="ordered">
<li>Login to Server and launch Server Manager, click on <strong>Manage</strong> and then select <strong>Add Roles and Features</strong> to start the Add Roles and Features Wizard.</li>
<li>On the <strong>Select installation type</strong> screen, select <strong>Role-based or feature-based installation</strong>.</li>
<li>Select the target server.</li>
<li>On the <strong>Select features</strong> screen, click on checkbox next to <strong>.Net Framework 3.5 Features</strong>.</li>
<li class="">On the <strong>Confirm installation selections</strong> screen, a warning will be displayed asking <strong>Do you need to specify an alternate source path?</strong>.  Here you can mount your Windows DVD ISO image. Or If your computer does not have access to Windows Update, click the <strong>Specify an alternate source path</strong> link to specify the path to the <strong>\sources\sxs</strong> folder on the installation media and then click <strong>OK</strong>. After you have specified the alternate source, or if the target computer has access to Windows Update, click the <strong>X</strong> next to the warning, and then click <strong>Install </strong>and it will be done.</li>
</ol>
<h5><span style="color: #993300;">Powershell Method</span></h5>
<p>This is very simple method where you just need to run below powershell command with administrator right.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">--Change the source location as per your source patch or location.</span>
Install-WindowsFeature Net-Framework-Core -source c:\sxs
</span></strong></pre>
<p>If your .NET framework 3.5 is already installed on your server then you will get below output by running above powershell command. It means .NET 3.5 is already installed on this machine. Read below section to learn how to check if .net 3.5 is installed on your machine.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-662" src="http://techyaz.com/wp-content/uploads/2017/08/1-install.jpg" alt="install .Net framework 3.5" width="608" height="161" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-install.jpg 608w, https://techyaz.com/wp-content/uploads/2017/08/1-install-300x79.jpg 300w" sizes="auto, (max-width: 608px) 100vw, 608px" /></p>
<h3><span style="color: #333399;">Validate</span></h3>
<p>Now you can check whether .NET framework 3.5 is installed on your server or not. Run below command to check if .NET 3.5 is installed or not.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">--Check if .NET framework 3.5 is installed or not on your server.</span>
Get-WindowsFeature *framework*
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-661" src="http://techyaz.com/wp-content/uploads/2017/08/2-install.jpg" alt="check .net framework 3.5 is installed or not" width="751" height="156" srcset="https://techyaz.com/wp-content/uploads/2017/08/2-install.jpg 751w, https://techyaz.com/wp-content/uploads/2017/08/2-install-300x62.jpg 300w" sizes="auto, (max-width: 751px) 100vw, 751px" /></p>
<p>You can see .NET framework 3.5 is showing as installed on this machine. I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/check-install-net-framework-3-5-server/">How to Check and Install .NET framework 3.5 on your Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/check-install-net-framework-3-5-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install SQL Server Agent on Ubuntu Server without Internet &#8211; Offline Installation</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 23 Aug 2017 11:18:40 +0000</pubDate>
				<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SQL Server Agent]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=641</guid>

					<description><![CDATA[<p>SQL Server Agent runs scheduled SQL Server jobs and is very useful to automate database tasks. Here i will show you how to install SQL Server Agent on Ubuntu Linux server. We will use offline method to install SQL Server&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/">How to Install SQL Server Agent on Ubuntu Server without Internet &#8211; Offline Installation</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>SQL Server Agent runs scheduled SQL Server jobs and is very useful to automate database tasks. Here i will show you how to install SQL Server Agent on Ubuntu Linux server. We will use offline method to install SQL Server Agent because our Ubuntu server is running without an internet connection. <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/" target="_blank" rel="noopener">Installing SQL Server Agent on Ubuntu server that has internet connection</a> is quite easy method. Have a look at the attached article to understand the steps.</p>
<p>Before going ahead, we need a SQL Server Instance running on Ubuntu Linux Server. If you have no idea about installing Ubuntu server or SQL Server 2017 or creating a virtual machine where you can install Ubuntu/RHEL and SQL Server then i would recommend you to read below articles.</p>
<ul>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></li>
<li><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">How to Install Ubuntu Linux 16.04 on a virtual machine.</a></li>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Installing SQL Server 2017 on Ubuntu Server &#8211; Offline Installation.</a></li>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Tools on Ubuntu Server &#8211; Offline Installation.</a></li>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/" target="_blank" rel="noopener">Install SQL Server Agent on Ubuntu &#8211; Online Method</a></li>
</ul>
<h4><span style="color: #000080;"><strong>Offline Installation of SQL Server Agent on Ubuntu</strong></span></h4>
<p>It is time consuming to install anything if your Ubuntu server has no access of internet. We generally call such installations as offline installation. Microsoft suggests below steps for offline installation of SQL Server Agent on Ubuntu server.</p>
<ul>
<li><a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-release-notes#RC2" target="_blank" rel="noopener">Download SQL Server Agent packages.</a></li>
<li>Move this downloaded package to your Ubuntu Linux Machine.</li>
<li>Install the copied debian package on the server.</li>
<li>Resolve Missing Dependencies, if you get any.</li>
</ul>
<p>Now we will go step by step process with the screenshots that will help readers to understand whole process.</p>
<h5><span style="color: #000080;"><strong>SQL Server Agent Offline Installation &#8211; Step by Step</strong></span></h5>
<p>Before moving ahead let&#8217;s check whether SQL Server Agent is installed or not on this machine. You can connect to SQL Server instance using SSMS on your local host. You can see we are able to see SQL Server Agent folder but it is grayed out and not accessible. We need to install SQL Server Agent on Ubuntu server to enable it.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-642" src="http://techyaz.com/wp-content/uploads/2017/08/1-check-Agent.jpg" alt="Check SQL Server Agent in SSMS" width="442" height="604" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-check-Agent.jpg 442w, https://techyaz.com/wp-content/uploads/2017/08/1-check-Agent-220x300.jpg 220w" sizes="auto, (max-width: 442px) 100vw, 442px" /></p>
<p>You can check and verify SQL Server service by executing below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Check SQL Server Service.</span>
systemctl status mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-643" src="http://techyaz.com/wp-content/uploads/2017/08/2-check-mssql.jpg" alt="Check SQL Server Service" width="1019" height="191" srcset="https://techyaz.com/wp-content/uploads/2017/08/2-check-mssql.jpg 1019w, https://techyaz.com/wp-content/uploads/2017/08/2-check-mssql-300x56.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/2-check-mssql-768x144.jpg 768w" sizes="auto, (max-width: 1019px) 100vw, 1019px" /></p>
<p>You should proceed if SQL Server service is running fine. Next step is to start the package download and proceed with installation. Below is the image of <a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-release-notes#RC2" target="_blank" rel="noopener">SQL Server Agent Package</a> which we will download to install SQL Server Agent.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-644" src="http://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package-1024x206.jpg" alt="Download SQL Server Agent Package" width="1024" height="206" srcset="https://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package-1024x206.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package-300x60.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package-768x154.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package.jpg 1223w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Download the highlighted debian package for SQL Server Agent. You can download this package on machine or PC which is connected to the internet. Once package will be downloaded to your local PC, next step is to copy this packages to the Ubuntu Linux server that are running without internet connection. I used <strong>WinSCP</strong> tool to copy this file from machine where i have downloaded it to the Linux server. Make sure that there should be connectivity between both machine.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-645" src="http://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp-1024x578.jpg" alt="Connect to WinSCP" width="1024" height="578" srcset="https://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp-1024x578.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp-300x169.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp-768x433.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp.jpg 1179w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>If you have not installed WinSCP, download it and install on your PC. Launch WinSCP tool and make a connection to Ubuntu server. There are two panes in WinSCp window. The files shows in left side pane is your local system and right side pane is your target Ubuntu server. Now we just need to drag the downloaded debian package from left side pane and drop it to right side pane to copy it to Ubuntu server. Agent file is copied now and we can see that files in both side panes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-646" src="http://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package-1024x244.jpg" alt="Copy Agent Package" width="1024" height="244" srcset="https://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package-1024x244.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package-300x71.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package-768x183.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package.jpg 1311w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now we can connect to Ubuntu server and validate whether this file is copied there or not. Connect to Ubuntu server and check the files. We can see downloaded file is very much there on Ubuntu server. Now next step is to install this package. We will use the <strong>dpkg package</strong> to install it as we do for other applications on Ubuntu. Let&#8217;s install it by running below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SQL Server Agent on Ubuntu</span>
sudo dpkg -i mssql-server-agent_14.0.900.75-1_amd64.deb
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-647" src="http://techyaz.com/wp-content/uploads/2017/08/6-install-Agent.jpg" alt="Install SQL Server Agent on Ubuntu" width="972" height="422" srcset="https://techyaz.com/wp-content/uploads/2017/08/6-install-Agent.jpg 972w, https://techyaz.com/wp-content/uploads/2017/08/6-install-Agent-300x130.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/6-install-Agent-768x333.jpg 768w" sizes="auto, (max-width: 972px) 100vw, 972px" /></p>
<p>This installation has suggested us to restart SQL Server service to complete this installation so go ahead and restart the service by executing below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Restart SQL Server Service.</span>
systemctl restart mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-648" src="http://techyaz.com/wp-content/uploads/2017/08/7-restart-sqlserver.jpg" alt="restart SQL Server Service" width="939" height="226" srcset="https://techyaz.com/wp-content/uploads/2017/08/7-restart-sqlserver.jpg 939w, https://techyaz.com/wp-content/uploads/2017/08/7-restart-sqlserver-300x72.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/7-restart-sqlserver-768x185.jpg 768w" sizes="auto, (max-width: 939px) 100vw, 939px" /></p>
<p>Now <strong>SQL Server Agent is installed</strong> on this server. Go ahead connect to this SQL Server Instance using SSMS from local host. This time you would be able to see SQL Server Agent folder enabled.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-649" src="http://techyaz.com/wp-content/uploads/2017/08/8-check-Agent.jpg" alt="Check SQL Server Agent post Installation" width="364" height="608" srcset="https://techyaz.com/wp-content/uploads/2017/08/8-check-Agent.jpg 364w, https://techyaz.com/wp-content/uploads/2017/08/8-check-Agent-180x300.jpg 180w" sizes="auto, (max-width: 364px) 100vw, 364px" /></p>
<p>You can see SQL Server Agent is showing there. Now you can create any jobs on SQL Server to automate database activities.</p>
<p><span style="color: #008080;"><strong>Read more about SQL Server on RedHat Linux:</strong></span></p>
<ul>
<li><strong><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">Installing RedHat Linux 7.3 on a virtual machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server 2017 on RedHat Linux – Offline Installation.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-tools-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">How to Install SQL Tools on RedHat Linux – Offline Installation.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-redhat-linux-server-without-internet-offline-installation/" target="_blank" rel="noopener">SQL Server Agent Installation on RedHat Linux – Offline Installation.</a></strong></li>
</ul>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/">How to Install SQL Server Agent on Ubuntu Server without Internet &#8211; Offline Installation</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Step by Step Process to Install SQL Tools on Ubuntu Server running without Internet &#8211; Offline Installation</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 23 Aug 2017 10:58:15 +0000</pubDate>
				<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[SQL Tools]]></category>
		<category><![CDATA[sqlcmd]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=622</guid>

					<description><![CDATA[<p>I have described step by step process to install Ubuntu 16.04 Server and Offline installation of SQL Server 2017 on Ubuntu server in my last articles. Here I will explain step by step process to install SQL Server tools (sqlcmd&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/">Step by Step Process to Install SQL Tools on Ubuntu Server running without Internet &#8211; Offline Installation</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have described <a href="https://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">step by step process to install Ubuntu 16.04 Server</a> and <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Offline installation of SQL Server 2017 on Ubuntu server</a> in my last articles. Here I will explain step by step process to install SQL Server tools (sqlcmd and bcp) on Ubuntu server where you had already installed SQL Server 2017. This article will describe the offline method to install SQL tools. The <strong>mssql-tools package</strong> which we will install contains two utilities:</p>
<ul>
<li><strong>sqlcmd:</strong> Command-line query utility.</li>
<li><strong>bcp:</strong> Bulk import-export utility.</li>
</ul>
<p>Before going ahead, we need a Ubuntu server and SQL Server 2017 running on that instance. If you have no idea about installing Ubuntu server or SQL Server 2017 or creating a virtual machine where you can install Ubuntu and SQL Server then i would recommend you to read below articles.</p>
<ul>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></li>
<li><a href="https://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">How to Install Ubuntu Linux Server on a virtual machine</a></li>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Installing SQL Server 2017 on Ubuntu Server &#8211; Offline Installation</a></li>
</ul>
<h4><span style="color: #000080;"><strong>SQL Tools Installation on Ubuntu &#8211; Offline/Without Internet</strong></span></h4>
<p>Installing any package on Ubuntu Linux is straight forward method if your server has internet connection and able to access online repositories. But it becomes painful if your Ubuntu server has no access of internet. We generally call such installations as offline installation. Microsoft suggests below steps for offline installation of SQL Server Tools on Ubuntu server.</p>
<ul>
<li>Download all sql tools related packages. i.e msodbc &amp; mssql-tools</li>
<li>Move these downloaded packages to your Ubuntu Server.</li>
<li>Install the copied debian packages on the server.</li>
<li>Resolve Missing Dependencies, if you get any.</li>
<li>Set the Path environment Variables for this package.</li>
</ul>
<p>Now we will follow step by step process with the screenshots that will help readers to understand this process.</p>
<h5><span style="color: #000080;"><strong>Download &amp; Copy SQL Tools Packages to Ubuntu Server</strong></span></h5>
<p>Before moving ahead let&#8217;s check whether SQL Server is installed or not on this machine. Run below command to check the SQL Server service.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #008000;">#Check SQL Server Service</span><span class="kwrd" style="color: blue;">
systemctl status mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-623" src="http://techyaz.com/wp-content/uploads/2017/08/1-check-services.jpg" alt="check SQL Server Service on Ubuntu" width="860" height="380" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-check-services.jpg 860w, https://techyaz.com/wp-content/uploads/2017/08/1-check-services-300x133.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/1-check-services-768x339.jpg 768w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>We can see SQL Server is installed and running fine on this server. Now you can just type <strong>sqlcmd</strong> to check sql tool is installed or not. We can see it is not installed yet. As we can see SQL Tools are not installed so next step will package download and installation of that package.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-624" src="http://techyaz.com/wp-content/uploads/2017/08/2-check-sqlcmd.jpg" alt="Check sqlcmd" width="388" height="146" srcset="https://techyaz.com/wp-content/uploads/2017/08/2-check-sqlcmd.jpg 388w, https://techyaz.com/wp-content/uploads/2017/08/2-check-sqlcmd-300x113.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/2-check-sqlcmd-1320x500.jpg 1320w" sizes="auto, (max-width: 388px) 100vw, 388px" /></p>
<p>Let&#8217;s start with downloading the debian package for SQL Tools. You can <a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools" target="_blank" rel="noopener">download the required SQL Tools debian packages for Ubuntu</a> from the attached link or from <a href="https://packages.microsoft.com/rhel/7.3/prod/" target="_blank" rel="noopener">Microsoft Repositories</a>. You can download these packages on a machine or PC that is connected to the internet. Below are the list of debian packages which needs to be downloaded to install sql tools.</p>
<ul>
<li><strong>msodbcsql_13.1.6.0-1_amd64.deb</strong></li>
<li><strong>mssql-tools_14.0.5.0-1_amd64.deb</strong></li>
</ul>
<p>SQL Tools package installation depends on <strong>msodbcsql package</strong> that must be installed first to avoid any dependency issue. Once package will be downloaded on your local PC, next step is to copy above downloaded packages to the Ubuntu server that are running without internet connection.</p>
<p>You can use any tool, application or method to copy this file from localhost to Ubuntu Linux server. I used <strong>WinSCP</strong> tool to copy this file from machine where i have downloaded the package to the Ubuntu Linux server. Make sure that there should be connectivity between both machine.</p>
<p>If you have not installed WinSCP yet, download and install it on your PC. Launch <strong>WinSCP tool</strong> and make a connection to Ubuntu server. I have explained about WinSCP in my <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">last articles</a>, you can follow it to get more details. Once you established the connection, WinSCP will look like below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-625" src="http://techyaz.com/wp-content/uploads/2017/08/3-download-package-1024x273.jpg" alt="Download SQL Tools Package" width="1024" height="273" srcset="https://techyaz.com/wp-content/uploads/2017/08/3-download-package-1024x273.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/3-download-package-300x80.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/3-download-package-768x205.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/3-download-package.jpg 1370w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now we just need to drag the downloaded debian packages from left side pane and drop it to right side pane to copy it to Ubuntu Linux server. Files are copied now and we can see them in both side panes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-626" src="http://techyaz.com/wp-content/uploads/2017/08/4-download-package-1024x205.jpg" alt="move sql tool package to Ubuntu" width="1024" height="205" srcset="https://techyaz.com/wp-content/uploads/2017/08/4-download-package-1024x205.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/4-download-package-300x60.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/4-download-package-768x153.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/4-download-package.jpg 1356w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see SQL Tools packages are copied to location \home\techyaz\ in above screenshot. Now we can connect to Ubuntu server and validate whether files are copied there or not.</p>
<p>Connect to Ubuntu server and check the files. You can run <strong>ls -lrt</strong> to check the files. Once packages will be copied to ubuntu server, next step is to first install msodbcsql package. Run below command to start the installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install msodbcsql package</span>
sudo dpkg -i msodbcsql_13.1.6.0-1_amd64.deb
</span></strong></pre>
<p>Here we will use <strong>dpkg package management</strong> system for installation because SQL Tools are debian packages for Ubuntu servers. We can see below dependencies error while executing msodbc package. Now our next step is to fix these dependency issues and then kick off the installation again.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-627" src="http://techyaz.com/wp-content/uploads/2017/08/5-install-msodbc.jpg" alt="install msodbc" width="770" height="288" srcset="https://techyaz.com/wp-content/uploads/2017/08/5-install-msodbc.jpg 770w, https://techyaz.com/wp-content/uploads/2017/08/5-install-msodbc-300x112.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/5-install-msodbc-768x287.jpg 768w" sizes="auto, (max-width: 770px) 100vw, 770px" /></p>
<h5><span style="color: #000080;"><strong>Resolve Dependencies</strong></span></h5>
<p>We can see msodbcsql package depends on <strong>unixODBC package</strong> so first we need to download, move and install unixODBC package on Ubuntu server.</p>
<p>Resolving dependencies are painful job because every package has some dependencies and you need to download and install all such packages manually if you don&#8217;t have internet connection on Ubuntu server. If your Ubuntu server has internet connection, all dependencies will be installed using online repository.</p>
<p>Now let&#8217;s download and move <strong>unixODBC package</strong> to Ubuntu server. We can <a href="https://packages.ubuntu.com/" target="_blank" rel="noopener">download all required debian packages</a> from attached link.  We can see unixODBC package has been copied to the server now in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-628" src="http://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc-1024x219.jpg" alt="Copy UnixODBC" width="1024" height="219" srcset="https://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc-1024x219.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc-300x64.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc-768x164.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc.jpg 1358w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Install this package now.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install unixODBC Package.</span>
sudo dpkg -i unixodbc_2.3.1-4.1_amd64.deb
</span></strong></pre>
<p>We can see this package has another dependency error. That means UnixODBC package is dependent on given packages i.e. libodbc1 &amp; odbcinst1debian2.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-629" src="http://techyaz.com/wp-content/uploads/2017/08/7-unixodbc-install-error.jpg" alt="unixodbc install error" width="726" height="327" srcset="https://techyaz.com/wp-content/uploads/2017/08/7-unixodbc-install-error.jpg 726w, https://techyaz.com/wp-content/uploads/2017/08/7-unixodbc-install-error-300x135.jpg 300w" sizes="auto, (max-width: 726px) 100vw, 726px" /></p>
<p>When i downloaded <strong>libodbc1</strong> and tried to install it, this package failed because of another dependency.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-630" src="http://techyaz.com/wp-content/uploads/2017/08/8-libodbc1-1024x318.jpg" alt="Libodbc1" width="1024" height="318" srcset="https://techyaz.com/wp-content/uploads/2017/08/8-libodbc1-1024x318.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/8-libodbc1-300x93.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/8-libodbc1-768x239.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/8-libodbc1.jpg 1436w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>We can see the dependent package in above image. I <a href="https://packages.ubuntu.com/xenial/libltdl7" target="_blank" rel="noopener">downloaded package <strong>libltdl7</strong></a> and installed on Ubuntu server. <strong>libltdl7</strong> package got installed successfully without any dependency error.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-631" src="http://techyaz.com/wp-content/uploads/2017/08/9-lbltdl7.jpg" alt="lbltdl7 installation" width="907" height="386" srcset="https://techyaz.com/wp-content/uploads/2017/08/9-lbltdl7.jpg 907w, https://techyaz.com/wp-content/uploads/2017/08/9-lbltdl7-300x128.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/9-lbltdl7-768x327.jpg 768w" sizes="auto, (max-width: 907px) 100vw, 907px" /></p>
<p>Once <strong>libltdl7 package</strong> will be installed, next step is to install all dependencies in reverse order. Here we will install <strong>libodbc1</strong> then <strong>unixodbc</strong> followed by <strong>msodbcsql</strong> package.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-632" src="http://techyaz.com/wp-content/uploads/2017/08/10-libodbc1-install.jpg" alt="libodbc1 install" width="765" height="159" srcset="https://techyaz.com/wp-content/uploads/2017/08/10-libodbc1-install.jpg 765w, https://techyaz.com/wp-content/uploads/2017/08/10-libodbc1-install-300x62.jpg 300w" sizes="auto, (max-width: 765px) 100vw, 765px" /></p>
<p>We have seen, there were two dependencies to install <strong>unixODBC</strong> package. One <strong>libodbc1</strong> has been installed. Please perform similar exercise to install another dependency <strong>odbcinst1debian2</strong>. Once both packages will be installed, go ahead and install unixodbc in order to install msodbcsql package.</p>
<p>If you want to check all dependencies for these packages, you can get it by running below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;"><span style="color: #008000;">#Check dependencies of both packages.</span></span><span style="color: #0000ff;">
dpkg -I msodbcsql_13.1.6.0-1_amd64.deb | grep "Depends:"
dpkg -I mssql-tools_14.0.5.0-1_amd64.deb | grep "Depends:"
</span></span></strong></pre>
<p><strong>If you have internet connection on your Ubuntu server</strong> then this task will be very easy to perform. You just need to execute below command to install unixodbc package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install unixodbc on Ubuntu if server is connected to Internet.</span>
sudo apt-get -f install unixodbc
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-633" src="http://techyaz.com/wp-content/uploads/2017/08/11-unixodbc-internet.jpg" alt="unixodbc installation using internet" width="681" height="295" srcset="https://techyaz.com/wp-content/uploads/2017/08/11-unixodbc-internet.jpg 681w, https://techyaz.com/wp-content/uploads/2017/08/11-unixodbc-internet-300x130.jpg 300w" sizes="auto, (max-width: 681px) 100vw, 681px" /></p>
<h5><span style="color: #000080;"><strong>SQL Tools Installation</strong></span></h5>
<p>We have resolved all dependencies errors in above section. Now we will install SQL Tools to establish database connection to SQL Server instance from ubuntu server. Run below command to install the msodbcsql package again post resolving dependencies.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install msodbcsql Package</span>
sudo dpkg -i msodbcsql_13.1.6.0-1_amd64.deb
</span></strong></pre>
<p>Once you will execute above command, you will get below screen to <strong>accept the license terms</strong>. Choose <strong>Yes</strong> and press enter button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-634" src="http://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install-1024x425.jpg" alt="msodbc installation" width="1024" height="425" srcset="https://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install-1024x425.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install-300x125.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install-768x319.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install.jpg 1423w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Once you press enter, package execution will start. You can see <strong>msodbcsql package is installed successfully</strong> now.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-635" src="http://techyaz.com/wp-content/uploads/2017/08/13-msodbc-install.jpg" alt="msodbc installation" width="941" height="158" srcset="https://techyaz.com/wp-content/uploads/2017/08/13-msodbc-install.jpg 941w, https://techyaz.com/wp-content/uploads/2017/08/13-msodbc-install-300x50.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/13-msodbc-install-768x129.jpg 768w" sizes="auto, (max-width: 941px) 100vw, 941px" /></p>
<p>Next we will install another package <strong>mssql-tools</strong> now. Run below command to start the installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install mssql-tools Package</span>
sudo dpkg -i mssql-tools_14.0.5.0-1_amd64.deb
</span></strong></pre>
<p>Again this package will ask you to <strong>accept the license terms</strong> just like msodbcsql package. Choose <strong>yes</strong> and press enter to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-636" src="http://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools-1024x441.jpg" alt="Install mssql tools" width="1024" height="441" srcset="https://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools-1024x441.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools-300x129.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools-768x331.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools.jpg 1413w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You cans see <strong>mssql-tools package is installed</strong> in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-637" src="http://techyaz.com/wp-content/uploads/2017/08/15-mssql-tools.jpg" alt="install mssql tools" width="735" height="154" srcset="https://techyaz.com/wp-content/uploads/2017/08/15-mssql-tools.jpg 735w, https://techyaz.com/wp-content/uploads/2017/08/15-mssql-tools-300x63.jpg 300w" sizes="auto, (max-width: 735px) 100vw, 735px" /></p>
<p><strong>Final step</strong> is to set the <strong>path environment variables</strong>. Run below command to set the path environment variables. Ubuntu will not be able to recognize <strong>sqlcmd utility</strong> unless you set the path environment variable. You can see that in below screenshot. Ubuntu is able to recognize sqlcmd utility once we set the path environment variables.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#To make sqlcmd/bcp accessible from the bash shell for login sessions, modify your PATH in the ~/.bash_profile file</span>
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bash_profile

<span style="color: #008000;">#To make sqlcmd/bcp accessible from the bash shell for interactive/non-login sessions, modify the PATH in the ~/.bashrc file
</span>echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bashrc
source ~/.bashrc
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-638" src="http://techyaz.com/wp-content/uploads/2017/08/16-path-variable.jpg" alt="Patch variables" width="974" height="249" srcset="https://techyaz.com/wp-content/uploads/2017/08/16-path-variable.jpg 974w, https://techyaz.com/wp-content/uploads/2017/08/16-path-variable-300x77.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/16-path-variable-768x196.jpg 768w" sizes="auto, (max-width: 974px) 100vw, 974px" /></p>
<p>Now connect to SQL Server instance using sqlcmd and run a command to validate this installation. I have checked the SQL Server version installed on ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-639" src="http://techyaz.com/wp-content/uploads/2017/08/17-select-version.jpg" alt="" width="737" height="367" srcset="https://techyaz.com/wp-content/uploads/2017/08/17-select-version.jpg 737w, https://techyaz.com/wp-content/uploads/2017/08/17-select-version-300x149.jpg 300w" sizes="auto, (max-width: 737px) 100vw, 737px" /></p>
<p>We get above details that SQL Server 2017 is installed on this Ubuntu server by executing sqlcmd utility. Now we have done with SQL Tools installation on Ubuntu server. Go ahead and connect to your Ubuntu server using SQL Tools.</p>
<p><span style="color: #800000;"><strong>Read more about SQL Server on RedHat Linux:</strong></span></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">Installing RedHat Linux 7.3 on a virtual machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server 2017 on RedHat Linux – Offline Installation.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-tools-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">How to Install SQL Tools on RedHat Linux – Offline Installation.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-redhat-linux-server-without-internet-offline-installation/" target="_blank" rel="noopener">SQL Server Agent Installation on RedHat Linux – Offline Installation.</a></strong></li>
</ul>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/">Step by Step Process to Install SQL Tools on Ubuntu Server running without Internet &#8211; Offline Installation</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
