<?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>SQL Server &#8211; Sibeesh Passion</title>
	<atom:link href="https://sibeeshpassion.com/tag/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 11 Jul 2018 16:18:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>SQL Server &#8211; Sibeesh Passion</title>
	<link>https://sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Foolproof Tips for Reading and Shrinking Transaction logs in SQL Server</title>
		<link>https://sibeeshpassion.com/transaction-log-in-sql-server/</link>
					<comments>https://sibeeshpassion.com/transaction-log-in-sql-server/#disqus_thread</comments>
		
		<dc:creator><![CDATA[Andrew Jackson]]></dc:creator>
		<pubDate>Thu, 07 Jun 2018 13:35:37 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Transaction]]></category>
		<category><![CDATA[Transaction logs in SQL]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=12943</guid>

					<description><![CDATA[[toc] Query-1: SQL Server log file growing unexpectedly? “We are wondering why transaction logs keep on increasing?? It become so gigantic, the transaction log size get increase from 135GB to 350GB and that&#8217;s so annoying. My drive containing data store is losing space. I am using Full Recovery Model and the logs are backed up hourly. Please help me out why this is happening and what should be done to stop growing it too big?” SOLVED: SQL Server Log File Getting Too Big SQL Server Transaction logs records all activities of transaction logs. Each database in SQL Server instance consists [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[toc]</p>
<h2>Query-1: SQL Server log file growing unexpectedly?</h2>
<p><i>“We are wondering why transaction logs keep on increasing?? It become so gigantic, the transaction log size get increase from 135GB to 350GB and that&#8217;s so annoying. My drive containing data store is losing space. I am using Full Recovery Model and the logs are backed up hourly. Please help me out why this is happening and what should be done to stop growing it too big?”</i></p>
<h3>SOLVED: SQL Server Log File Getting Too Big</h3>
<p>SQL Server Transaction logs records all activities of transaction logs. Each database in SQL Server instance consists of logs that records all the modification done in the databases. It is crucial component of the databases. Any modification, deletion can be tracked down in transaction logs.</p>
<p>There are various reasons of transaction log file getting expanded. The possible reasons are listed below:</p>
<ul>
<li>Large transaction log file</li>
<li>Transaction taking too long to complete</li>
<li>Transaction operation fail &amp; may start to rollback</li>
<li>Issue in performance</li>
<li>Blocking issue</li>
<li>Database participating in AlwaysOn availability group</li>
</ul>
<h4>What to do for stopping growing log file too big</h4>
<ol>
<li>Change the type of Recovery Model to Simple Recovery Model only if you are fine with not able to restore logs hence, failed point in time recovery. It is because if you are truncating your logs, you are breaking Transaction log LSN &amp; if any disaster occur, you will not able to restore T-logs. Hence if you are fine with this situation, then change your Recovery model to Simple. This will not allow any extra growth of log file.</li>
<li>Take T-log backup every hour in Full recovery Model, your transaction log will keep on growing until you take backup and truncate of it. While taking hourly T-log backup, the logs will grow until one hour, but after this it would truncate all commited transaction.</li>
</ol>
<p>Sometimes it might happen that you are in Simple Recovery Model, but your logs are still growing!!! Reason being is long running transaction. If your transaction taking long time when deleting thousand records in one delete statement, then logs will not be able to truncate until delete operation is done.</p>
<p>You can save yourself by maintaining proper size of log file or monitoring the usage of transaction.</p>
<p>By doing this, you can cut down the size of Transaction log.</p>
<h2>Query-2 How To Shrink Transaction logs File in SQL Server?</h2>
<p><i>“My log file size is growing continuously. Why is this happening?? I am lacking my disk space. I want to shrink my Transaction log file. Can anyone tell me how to shrink transaction logs in SQL Server. What will be the after effects if I shrink the log file. </i></p>
<h3>SOLVED: Reduce SQL Server Database Transaction Log File</h3>
<p>Relax!! There are several reasons for transaction log file growth. Long Running transaction, lack of taking log backup are some of the reasons which result in transaction log growth. Databases running for business purposes or production requires appropriate recovery model to be chosen for log management.</p>
<p>Log truncation frees up the log file space so that logs can reuse it. Truncation occur automatically if the database is backed up in Simple Recovery Model or after log backup when database is in Full Recovery Model.</p>
<p>Here I will resolve your shrink issue by two methods: By using SQL Server Management Studio and by using T-SQL.</p>
<h4><strong>Shrink By SQL Server Management Studio:</strong></h4>
<ul>
<li>Right Click on your Database&#8211;&gt;Tasks&#8211;&gt;Shrink&#8212;&gt;Files.</li>
<li>You will get the <strong>Shrink File</strong> Window, Change the File Type to <strong>Log</strong>.</li>
<li>There are three different actions under Shrink Action option. Either release the unused space, or shrink file to reorganize pages before releasing unused space, or empty file by migrating the data to other files in the same filegroup. Choose it according to your need.</li>
</ul>
<h4><strong>Shrink By T-SQL:</strong></h4>
<p>You can simply shrink transaction log file by running DBCC SHRINKFILE after taking log back. If you are using Simple Recovery Model, run below code:</p>
<p><code> DBCC SHRINKFILE (TestDB_log, 1)</code></p>
<p>If your database is in Full Recovery Model, first of all, set it to Simple Recovery Model, Then run DBCC SHRINKFILE and then set it to full.</p>
<p><strong>Caution:</strong> Setting database again in Full Recovery Model leads to loss of data in the Log. So, if you dont care about losing your log data, then definitely go for it!</p>
<h4><strong>Tips when you plan to shrink database or file: </strong></h4>
<ul>
<li>Shrink operation found to be most effective after delete or drop table operation as it create lot of unused space.</li>
<li>If you are repeatedly shrinking your database and you notice that the size of database grows again. Alert!! Shrinking database is a wasted operation, as most database require free space for regular day-to-day operation. This indicates that the space that was shrunk was a part of regular operation.</li>
<li>You should not shrink your database or data file after rebuilding indexes. As shrinking increases fragmentation to extreme level.</li>
<li>Do not ON Auto_Shrink option. (Unless you have very urgent requirement)</li>
</ul>
<h4>Is Shrinking database Bad?</h4>
<p>Well, Yes.</p>
<p>After shrinking operation,you will definitely be able to reduce the size of the database. But Wait!! Check your Fragmentation level first. It is found to be way too much!!!</p>
<p>Shrink operation increases the value of the fragmentation way too much. And higher fragmentation costs you poor performance of the database.</p>
<p>While if you are thinking that you can reduce fragmentation by using rebuild index, let me alert you, this will definitely reduce your fragmentation level. But Let me check the size of the database The database size increases way higher than the original.</p>
<h2>Query-3 How to check Deleted Records in SQL Server?</h2>
<p><i>“I am working in an organization and my manager assigned me work to check deleted database records of my database. How can I check my deleted records in SQL Server? Please Help me out from this situation.”</i></p>
<h3>SOLVED: Ways to Check Deleted Records in SQL Server</h3>
<p>You can track down your deleted database records by reading Transaction logs. And you can read it by using <strong>fn_dblog</strong> function. You can track down any DML as well as DDL activity like insert, delete , update, create operation by checking your transaction logs.</p>
<p>Fn_dblog function enables users to read all the database activity happening in SQL database. The function require begin and end LSN number for a transaction. You can easily trackdown the information of a person who did changes to your database. As LSN number are not in human readable form, SQL Server provide fn_dblog function for easy reading of transaction logs.</p>
<p>You can simply check your database activity by implementing below code:</p>
<p><code>USE ReadingDBLog;<br />
GO<br />
select [Current LSN],<br />
[Operation],<br />
[Transaction Name],<br />
[Transaction ID],<br />
[Transaction SID],<br />
[SPID],<br />
[Begin Time]<br />
FROM   fn_dblog(null,null)</code></p>
<h4><strong>How to Read Transaction Log Quickly</strong></h4>
<p>One quick way to read SQL Server database activity is to use SysTools <a href="https://www.systoolsgroup.com/sql-log-analyzer.html"><strong>SQL Log Viewer</strong></a>. It read &amp; analyse operation like insert, update, delete. The software previews all .ldf activities like transaction name, table name, query etc. You have option to choose the database from different mode ie Online &amp; Offline mode. You will able to fetch it from live databases. If your database is in Simple Recovery Mode, the tool is capable to recover deleted database records. You will get three different option for exporting. You can export it as in SQL Server Database , as CSV or as Compatible Script.</p>
<h2>Conclusion</h2>
<p>The blog covers various users queries about transaction logs along with its possible solution. I have discussed why transaction logs keep on increasing, how to track down your transaction details of your database and how to shrink transaction logs. I have also discussed some quick tips when you shrink your database.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/transaction-log-in-sql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Learn to Repair Corrupt MDF File with Perfection</title>
		<link>https://sibeeshpassion.com/learn-to-repair-corrupt-mdf-file-with-perfection/</link>
					<comments>https://sibeeshpassion.com/learn-to-repair-corrupt-mdf-file-with-perfection/#disqus_thread</comments>
		
		<dc:creator><![CDATA[Andrew Jackson]]></dc:creator>
		<pubDate>Fri, 22 Sep 2017 17:07:34 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[repair corrupt mdf file]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=12494</guid>

					<description><![CDATA[[toc] To get a damaged MDF file is not rare. However, the main cause behind it is that the file is prone to corruption. When this occurs, all data saved in the server database becomes inaccessible and therefore, it leads to data loss. In such circumstances, it is important to repair corrupt MDF file of server database storage. This segment will discuss how to execute the repair process. In addition, it will also give you in-depth information about MDF file, reasons, and way to repair damaged MDF file to store it in healthy form. Read further to know more. Quick [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[toc]</p>
<p>To get a damaged MDF file is not rare. However, the main cause behind it is that the file is prone to corruption. When this occurs, all data saved in the server database becomes inaccessible and therefore, it leads to data loss. In such circumstances, it is important to repair corrupt MDF file of server database storage.</p>
<p>This segment will discuss how to execute the repair process. In addition, it will also give you in-depth information about MDF file, reasons, and way to repair damaged MDF file to store it in healthy form. Read further to know more.</p>
<h2>Quick Glance on MDF File</h2>
<p>SQL Server MDF file is a relational management system of the database. Moreover, it is a primary data file of the database, which saves all the server data. Thus, you can even state it as the master database file of MS SQL Server. Every database of SQL Server would enclose at least one .mdf file.</p>
<p>It saves components like XML Indexes, Views, Indexes, Stored Procedures, Tables, Triggers, Rules, Keys, User Defined Functions, sparse columns, data types, file stream, the column set property data types. The .mdf file can be said as a primary element for managing SQL Server database.</p>
<h2>Reasons of MDF File Corruption</h2>
<p>There are various causes, which are answerable for damaging the primary file type of server.</p>
<ul>
<li>Unexpected power failure.</li>
<li>Various bugs in server.</li>
<li>Defective Operating System.</li>
<li>Sudden shutdown of the machine.</li>
<li>Issues with hard drive</li>
<li>Virus outbreaks.</li>
</ul>
<p>Thus, issues for your .mdf file revolving corrupt can be everything from malfunctioning of hardware to software and so it is necessary to fix corrupted MDF file.</p>
<h3>Technique to Repair Corrupt MDF File</h3>
<p><strong>Method 1: Inbuilt Tool</strong></p>
<p>There are some tools that make easy for users to fix corrupted MDF file of the server. Thus, make the saved data available. In fact, all these tools are series of commands in T-SQL programming language, which is called DBCC (Database Console Commands). The purpose of these statements in DBCC is to test physical and logical uniformity of MS SQL Server database files and fix troubling problems that continue.</p>
<p>DBCC CHECKDB is a command via which you can simply check the logical and physical integrity of all objects in precise MS SQL Server database. You can do it by implementing the mentioned operations successively:</p>
<ul>
<li>Run DBCC CHECKALLOC command in the database.</li>
<li>Run DBCC CHECKCATALOG command in the database.</li>
<li>Run DBCC CHECKTABLE on every view &amp; table in the database.</li>
<li>Verifying content of every indexed view present in the database.</li>
<li>Validating link-level constancy among table Metadata, file system directories files while saving varbinary (max) data utilizing FILESTREAM in the file system.</li>
<li>Confirming Service Broker data in database.</li>
<p>Once the above steps to repair damaged MDF file is completed then, if the application finds any issues of corruption or any errors, it recommends users have the usage of various recover options for fixing troublesome problems. The recover or repair options are:</p>
<li><strong>REPAIR_FAST</strong></li>
<p>It preserves syntax for compatibility of backward only; no repair actions are executed in definite. The syntax for this, Repair option is: DBCC CHECKDB (‘DB Name’, REPAIR_FAST).</p>
<li><strong>REPAIR_REBUILD</strong></li>
<p>This option of repair implements repair process, which scarcely has potentials of data loss. This can do quick repairs like repair of missing rows in non-clustered indexes, even time-consuming repairs like the rebuilding of indexes. The syntax is DBCC CHECKDB (‘DB Name’, REPAIR_REBUILD).</p>
<li><strong>REPAIR_ALLOW_DATA_LOSS</strong></li>
<p>This command creates an effort to fix all the issues, which are reported. However, it can root cause the loss of data as specified in repair command itself. The syntax is: DBCC CHECKDB (‘DB Name’, REPAIR_ALLOW_DATA_LOSS).</p>
</ul>
<h3>Limitations:</h3>
<ol>
<li>The specific database should be in single-user mode to be able to execute either of three commands of repair.</li>
<li>DBCC repair commands are not authenticated for memory-optimized tables.</li>
</ol>
<h3>Method 2: Trouble-Free Solution</h3>
<p>There can be a possibility that when your SQL Server database MDF file is corrupt and when you try to connect to SQL Server you will find that it is marked as SUSPECT. During such scenarios or the above discussed, you will not be able to connect to the database. To repair corrupt SQL Server MDF database file best option is to restore from a recent full database backup available.</p>
<p>If no recent backup available in such cases best possible approach is to repair corrupted MDF file of Microsoft SQL Server 2000, 2005, 2008, 2012 and 2016 with <strong><a href="https://www.systoolsgroup.com/sql-recovery.html" target="_blank">SQL Database Repair Tool</a></strong>. One of the most highly used and recommended software to repair corrupt SQL MDF file with the assurance of 99% guaranteed recovery.
</p>
<h3>Observational Verdict</h3>
<p>We have gone through the possible solution which you need to follow to recover a database in case MDF file get corrupted or database marked as SUSPECT. We serve you with the best of the best ways to repair corrupt MDF file. So, Hurry! What are you waiting for? You are raising the bar and we are taking it forward with the all in one and probably the best of solution repair damaged MDF database file.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/learn-to-repair-corrupt-mdf-file-with-perfection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Rule &#8220;Oracle JRE 7 Update 51 (64-bit) or higher is required for Polybase&#8221; failed</title>
		<link>https://sibeeshpassion.com/rule-oracle-jre-7-update-51-64-bit-or-higher-is-required-for-polybase-failed/</link>
					<comments>https://sibeeshpassion.com/rule-oracle-jre-7-update-51-64-bit-or-higher-is-required-for-polybase-failed/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Mon, 28 Mar 2016 00:00:29 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Rule Check Result]]></category>
		<category><![CDATA[SQL Errors]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server RC 1]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=11435</guid>

					<description><![CDATA[In this article we will are going to see how we can fix the error Rule &#8220;Oracle JRE 7 Update 51 (64-bit) or higher is required for Polybase&#8221; failed. You may get this error when you try to install SQL Server. I wast trying to install SQL Server 2016 Release Candidate 1, and I got this error while installation. The complete error is like this Rule Check Result, Rule &#8220;Oracle JRE 7 Update 51 (64-bit) or higher is required for Polybase&#8221; failed. This computer does not have the Oracle Java SE Runtime Environment Version 7 Update 51 (64-bit) or higher [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this article we will are going to see how we can fix the error <em>Rule &#8220;Oracle JRE 7 Update 51 (64-bit) or higher is required for Polybase&#8221; failed</em>. You may get this error when you try to install <a href="http://sibeeshpassion.com/category/sql/" target="_blank">SQL </a>Server. I wast trying to install SQL Server 2016 Release Candidate 1, and I got this error while installation. The complete error is like this <em>Rule Check Result, Rule &#8220;Oracle JRE 7 Update 51 (64-bit) or higher is required for Polybase&#8221; failed. This computer does not have the Oracle Java SE Runtime Environment Version 7 Update 51 (64-bit) or higher installed. The Oracle Java SE Runtime Environment is software provided by a third party. Microsoft grants you no rights for such third-party software. You are responsible for and must separately locate, read and accept applicable third-party license terms.</em> I have fixed this issue, and here I am going to share you how you can also fix this error. I hope you will like this.</p>
<p><strong>Background</strong></p>
<p>As you all know, <a href="http://sibeeshpassion.com/category/Microsoft/" target="_blank">Microsoft </a> has already released SQL Server 2018 RC Version 1. So I wanted to give a try, and I decided to install the same. But at a stage in installation, I got an error which was not allowing me to continue further. I started to scratch my head. And finally I could find the solution. Here we will see that.</p>
<p><strong>Fix to Rule &#8220;Oracle JRE 7 Update 51 (64-bit) or higher is required for Polybase&#8221; failed</strong></p>
<p>Once you have started the installation, you can see a window as follows. </p>
<div id="attachment_11436" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/Installation-Center-SQL-Server-Start-e1459093924479.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-11436" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/Installation-Center-SQL-Server-Start-e1459093924479.png" alt="Installation Center SQL Server Start" width="650" height="492" class="size-full wp-image-11436" srcset="/wp-content/uploads/2016/03/Installation-Center-SQL-Server-Start-e1459093924479.png 650w, /wp-content/uploads/2016/03/Installation-Center-SQL-Server-Start-e1459093924479-300x227.png 300w, /wp-content/uploads/2016/03/Installation-Center-SQL-Server-Start-e1459093924479-400x303.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11436" class="wp-caption-text">Installation Center SQL Server Start</p></div>
<p>If you have not installed SQL Server yet, you must select &#8220;New SQL Server stand-alone installation&#8221;, or you can upgrade by selecting &#8220;Upgrade from a previous version&#8221;. So we have started installing the things. When you are step away to finish everything once you have selected the features to add. You will be getting the error as follows. </p>
<blockquote><p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Rule Check Result<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Rule &#8220;Oracle JRE 7 Update 51 (64-bit) or higher is required for Polybase&#8221; failed.</p>
<p>This computer does not have the Oracle Java SE Runtime Environment Version 7 Update 51 (64-bit) or higher installed. The Oracle Java SE Runtime Environment is software provided by a third party. Microsoft grants you no rights for such third-party software. You are responsible for and must separately locate, read and accept applicable third-party license terms. To continue, download the Oracle SE Java Runtime Environment from http://go.microsoft.com/fwlink/?LinkId=526030.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
OK<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
</p></blockquote>
<p>As it is mentioned in the link provided in the link, you can always download and install the Java SE from that link. This link will be redirected to <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" target="_blank">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a>. </p>
<div id="attachment_11437" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/Java-SE-e1459094342113.png"><img decoding="async" aria-describedby="caption-attachment-11437" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/Java-SE-1024x562.png" alt="Java SE" width="634" height="348" class="size-large wp-image-11437" /></a><p id="caption-attachment-11437" class="wp-caption-text">Java SE</p></div>
<p>Now we have an another option that to disable the Java SE from the features selected. For that go back to the feature selection.</p>
<div id="attachment_11438" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-e1459094494609.png"><img decoding="async" aria-describedby="caption-attachment-11438" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-e1459094494609.png" alt="Feature Selection Installation Center SQL Server" width="650" height="495" class="size-full wp-image-11438" srcset="/wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-e1459094494609.png 650w, /wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-e1459094494609-300x228.png 300w, /wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-e1459094494609-400x305.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11438" class="wp-caption-text">Feature Selection Installation Center SQL Server</p></div>
<p>Now Uncheck the selection <em>PolyBase query service for external data</em>.</p>
<div id="attachment_11439" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-Uncheck-Polybase-Query-Service-e1459094635116.png"><img decoding="async" aria-describedby="caption-attachment-11439" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-Uncheck-Polybase-Query-Service-e1459094635116.png" alt="Feature Selection Installation Center SQL Server Uncheck Polybase Query Service" width="650" height="490" class="size-full wp-image-11439" srcset="/wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-Uncheck-Polybase-Query-Service-e1459094635116.png 650w, /wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-Uncheck-Polybase-Query-Service-e1459094635116-300x226.png 300w, /wp-content/uploads/2016/03/Feature-Selection-Installation-Center-SQL-Server-Uncheck-Polybase-Query-Service-e1459094635116-400x302.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11439" class="wp-caption-text">Feature Selection Installation Center SQL Server Uncheck Polybase Query Service</p></div>
<p>Now you can go ahead and click next. At last, you will get the success message.</p>
<div id="attachment_11440" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/Installation-Center-SQL-Server-Success-e1459094750394.png"><img decoding="async" aria-describedby="caption-attachment-11440" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/Installation-Center-SQL-Server-Success-e1459094750394.png" alt="Installation Center SQL Server Success" width="650" height="489" class="size-full wp-image-11440" srcset="/wp-content/uploads/2016/03/Installation-Center-SQL-Server-Success-e1459094750394.png 650w, /wp-content/uploads/2016/03/Installation-Center-SQL-Server-Success-e1459094750394-300x226.png 300w, /wp-content/uploads/2016/03/Installation-Center-SQL-Server-Success-e1459094750394-400x301.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11440" class="wp-caption-text">Installation Center SQL Server Success</p></div>
<p>Hooray, we have successfully installed our new version of SQL Server. That&#8217;s fantastic right? Have a happy coding.</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn&#8217;t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/rule-oracle-jre-7-update-51-64-bit-or-higher-is-required-for-polybase-failed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Generate Database Scripts With Data In SQL Server</title>
		<link>https://sibeeshpassion.com/generate-database-scripts-with-data-in-sql-server/</link>
					<comments>https://sibeeshpassion.com/generate-database-scripts-with-data-in-sql-server/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Fri, 19 Feb 2016 09:09:51 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Generate Scripts]]></category>
		<category><![CDATA[Scripts With Data]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=11270</guid>

					<description><![CDATA[In this post we will discuss about how we can generate SQL Server scripts of our database with existing data, once we generate the script, the result will give you all the insert query with other queries so that the data also will get inserted in your new database. We are going to use the option &#8216;Schema and data&#8217; in SQL server for this task. I hope the screen shots given will help you generate the script with insert queries. Background I was working with an article which has so many database transactions/actions. So I thought of attaching the database [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post we will discuss about how we can generate SQL Server scripts of our database with existing data, once we generate the script, the result will give you all the insert query with other queries so that the data also will get inserted in your new database. We are going to use the option &#8216;Schema and data&#8217; in SQL server for this task. I hope the screen shots given will help you generate the script with insert queries. </p>
<p><strong>Background</strong></p>
<p>I was working with an article which has so many database transactions/actions. So I thought of attaching the database scripts with data also in the source code download section of the article, so that it may help user to insert the data in his/her database. That made me to write this article. I hope you will like this.</p>
<p><strong>Steps To Generate Database Scripts With Data In SQL Server</strong></p>
<p><strong>Step 1</strong></p>
<p>Right click on your database and select Task -> generate script. </p>
<div id="attachment_11271" style="width: 593px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Option.png"><img decoding="async" aria-describedby="caption-attachment-11271" src="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Option.png" alt="Database_Scripts_With_Data_Select_Option" width="583" height="586" class="size-full wp-image-11271" srcset="/wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Option.png 583w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Option-150x150.png 150w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Option-298x300.png 298w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Option-130x130.png 130w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Option-400x402.png 400w" sizes="(max-width: 583px) 100vw, 583px" /></a><p id="caption-attachment-11271" class="wp-caption-text">Database_Scripts_With_Data_Select_Option</p></div>
<p><strong>Step 2</strong></p>
<p>Click next in the introduction screen.</p>
<div id="attachment_11272" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Inroduction-e1455872059585.png"><img decoding="async" aria-describedby="caption-attachment-11272" src="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Inroduction-e1455872059585.png" alt="Database_Scripts_With_Data_Inroduction" width="650" height="604" class="size-full wp-image-11272" srcset="/wp-content/uploads/2016/02/Database_Scripts_With_Data_Inroduction-e1455872059585.png 384w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Inroduction-e1455872059585-300x279.png 300w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Inroduction-e1455872059585-400x372.png 400w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Inroduction-e1455872059585-646x600.png 646w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11272" class="wp-caption-text">Database_Scripts_With_Data_Inroduction</p></div>
<p><strong>Step 3</strong></p>
<p>Select the database object which you are all you need and then click next.</p>
<div id="attachment_11273" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Database_Objects-e1455872190424.png"><img decoding="async" aria-describedby="caption-attachment-11273" src="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Database_Objects-e1455872190424.png" alt="Database_Scripts_With_Data_Select_Database_Objects" width="650" height="604" class="size-full wp-image-11273" srcset="/wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Database_Objects-e1455872190424.png 384w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Database_Objects-e1455872190424-300x279.png 300w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Database_Objects-e1455872190424-400x372.png 400w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Select_Database_Objects-e1455872190424-646x600.png 646w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11273" class="wp-caption-text">Database_Scripts_With_Data_Select_Database_Objects</p></div>
<p><strong>Step 4</strong></p>
<p>Now you will be shown a window which asks you about how your script should be published. </p>
<div id="attachment_11274" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Publish_Options-e1455872352563.png"><img decoding="async" aria-describedby="caption-attachment-11274" src="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Publish_Options-e1455872352563.png" alt="Database_Scripts_With_Data_Publish_Options" width="650" height="604" class="size-full wp-image-11274" srcset="/wp-content/uploads/2016/02/Database_Scripts_With_Data_Publish_Options-e1455872352563.png 384w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Publish_Options-e1455872352563-300x279.png 300w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Publish_Options-e1455872352563-400x372.png 400w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Publish_Options-e1455872352563-646x600.png 646w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11274" class="wp-caption-text">Database_Scripts_With_Data_Publish_Options</p></div>
<p>Click advanced in that window. </p>
<p><strong>Step 5</strong></p>
<p>Select &#8216;Schema and data&#8217; from type of data to script option and then click OK. </p>
<div id="attachment_11275" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Advanced-e1455872521896.png"><img decoding="async" aria-describedby="caption-attachment-11275" src="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Advanced-e1455872521896.png" alt="Database_Scripts_With_Data_Advanced" width="650" height="604" class="size-full wp-image-11275" srcset="/wp-content/uploads/2016/02/Database_Scripts_With_Data_Advanced-e1455872521896.png 384w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Advanced-e1455872521896-300x279.png 300w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Advanced-e1455872521896-400x372.png 400w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Advanced-e1455872521896-646x600.png 646w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11275" class="wp-caption-text">Database_Scripts_With_Data_Advanced</p></div>
<p>Click next.</p>
<p><strong>Step 6</strong></p>
<p>Click finish, now check the script file, it must be having the insert queries too. </p>
<div id="attachment_11276" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Finish-e1455872683355.png"><img decoding="async" aria-describedby="caption-attachment-11276" src="http://sibeeshpassion.com/wp-content/uploads/2016/02/Database_Scripts_With_Data_Finish-e1455872683355.png" alt="Database_Scripts_With_Data_Finish" width="650" height="604" class="size-full wp-image-11276" srcset="/wp-content/uploads/2016/02/Database_Scripts_With_Data_Finish-e1455872683355.png 384w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Finish-e1455872683355-300x279.png 300w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Finish-e1455872683355-400x372.png 400w, /wp-content/uploads/2016/02/Database_Scripts_With_Data_Finish-e1455872683355-646x600.png 646w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11276" class="wp-caption-text">Database_Scripts_With_Data_Finish</p></div>
<p>Now what else is pending, go ahead and run your script. </p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? Have you ever wanted to do this requirement? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/generate-database-scripts-with-data-in-sql-server/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Solution for saving changes not permitted error in SQL</title>
		<link>https://sibeeshpassion.com/solution-for-saving-changes-not-permitted-error-in-sql/</link>
					<comments>https://sibeeshpassion.com/solution-for-saving-changes-not-permitted-error-in-sql/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Mon, 29 Jun 2015 08:07:06 +0000</pubDate>
				<category><![CDATA[Q&A]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Errors]]></category>
		<category><![CDATA[sql table design error]]></category>
		<category><![CDATA[SQL Tips]]></category>
		<category><![CDATA[SQL Tricks]]></category>
		<category><![CDATA[table design]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=5461</guid>

					<description><![CDATA[Introduction Hi All, How are you today? In this article we will see a solution for a fix that we usually encounter when you work in Microsoft SQL server. The error message will be &#8220;Saving changes is not permitted,The changes you have made require the following table to be dropped and re-created. You have either made changes to the table that can&#8217;t be re-created or enabled the option Prevent saving changes that require the table to be re-created.&#8221;. Let us see how we can solve this issue. I hope you will like it. Background As the error message says, it [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>Hi All, How are you today? In this article we will see a solution for a fix that we usually encounter when you work in Microsoft SQL server. The error message will be <em>&#8220;Saving changes is not permitted,The changes you have made require the following table to be dropped and re-created. You have either made changes to the table that can&#8217;t be re-created or enabled the option Prevent saving changes that require the table to be re-created.&#8221;</em>. Let us see how we can solve this issue. I hope you will like it.</p>
<p><strong>Background</strong></p>
<p>As the error message says, it is because of you have enabled the option Prevent saving changes. Now we will see how we can disable that option in SQL Server Management Studio. Before going through the fix, we will see teh screenshot of the error.</p>
<p><img decoding="async" src="http://www.sibeeshpassion.com/content/images/tab1.png" alt="www.sibeeshpassion.com" /></p>
<p><strong>Steps to follow</strong></p>
<p>To fix this issue, you need to follow some certain steps. We will explain that here.</p>
<p><em><strong>Step 1</strong></em></p>
<p>Go to Tools menu and click on options.</p>
<p><img decoding="async" src="http://www.sibeeshpassion.com/content/images/tab2.png" alt="www.sibeeshpassion.com" /></p>
<p><em><strong>Step 2</strong></em></p>
<p>Now you can see a window is opened as follows. You can see some settings there. No need to change anything in that.</p>
<p><img decoding="async" src="http://www.sibeeshpassion.com/content/images/tab3.png" alt="www.sibeeshpassion.com" /></p>
<p><em><strong>Step 3</strong></em></p>
<p>Now go to Designers menu and click on &#8220;Table and Database designers&#8221; </p>
<p><img decoding="async" src="http://www.sibeeshpassion.com/content/images/tab4.png" alt="www.sibeeshpassion.com" /></p>
<p><em><strong>Step 4</strong></em></p>
<p>It is time for changing the settings. As you can see there is a check box which is captioned as <em>&#8220;Prevent saving changes that requires table re-creation&#8221;</em> . Just uncheck that and click OK.</p>
<p><img decoding="async" src="http://www.sibeeshpassion.com/content/images/tab5.png" alt="www.sibeeshpassion.com" /></p>
<p>That is all. Now if you try to save that table, you won&#8217;t be facing above mentioned issue. Have a happy table designing.</p>
<p><strong>Conclusion</strong></p>
<p>I hope you will like this article. Please share me your valuable thoughts and comments. Your feedback is always welcomed.</p>
<p>Thanks in advance. Happy coding!</p>
<p>Kindest Regards<br />
<a href="https://plus.google.com/+sibeeshkv" target="_blank">Sibeesh Venu</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/solution-for-saving-changes-not-permitted-error-in-sql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SqlDateTime Overflow, Must be between Error</title>
		<link>https://sibeeshpassion.com/sqldatetime-overflow-must-be-between-error/</link>
					<comments>https://sibeeshpassion.com/sqldatetime-overflow-must-be-between-error/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Fri, 05 Jun 2015 07:16:12 +0000</pubDate>
				<category><![CDATA[Q&A]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Date Parameter]]></category>
		<category><![CDATA[SQL Errors]]></category>
		<category><![CDATA[SQL Parameter Error]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=4482</guid>

					<description><![CDATA[Introduction Hi All, I hope you are fine. We all are using SQL parameter in our application right?Yeah it is a good way to restrict the Injections are hijacks. But still if you pass those parameters in the right way, you will face lots of problems. In this article I am going to share you such an Issue. I hope you will like it. Background Morning I was working in a grid control which editable, and I selected a row to edit and started editing. In a date field I edited the date and clicked update button. I was expecting [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>Hi All, I hope you are fine. We all are using SQL parameter in our application right?Yeah it is a good way to restrict the Injections are hijacks. But still if you pass those parameters in the right way, you will face lots of problems. In this article I am going to share you such an Issue. I hope you will like it.</p>
<p><strong>Background</strong></p>
<p>Morning I was working in a grid control which editable, and I selected a row to edit and started editing. In a date field I edited the date and clicked update button. I was expecting an output result as &#8220;Successfully updated&#8221;. But it didn&#8217;t happen. Instead it throws an error. <em>&#8220;SqlDateTime Overflow, Must be between&#8221;</em></p>
<p><strong>Using the code</strong></p>
<p>To resolve this issue, first you must understand the root cause for this. I was passing the parameters as follows.</p>
<p>[csharp]<br />
 SqlParameter[] myParam = new SqlParameter[3];<br />
            myParam[0] = new SqlParameter(&quot;@name&quot;, myObject.name);<br />
            myParam[1] = new SqlParameter(&quot;@ValidFrom&quot;, myObject.hjcValidFrom);<br />
            myParam[2] = new SqlParameter(&quot;@ValidTo&quot;, myObject.hjcValidTo);<br />
[/csharp]</p>
<p>When I run my application with above code, I got the following error.<br />
<img decoding="async" src="http://sibeeshpassion.com/Content/Images/sqldateerror.PNG" alt="" /></p>
<p><strong>So what is the fix/solution?</strong></p>
<p>I changed the parameter as follows. </p>
<p>[csharp]<br />
 SqlParameter[] myParam = new SqlParameter[3];<br />
            myParam[0] = new SqlParameter(&quot;@name&quot;, myObject.name);<br />
            myParam[1] = new SqlParameter(&quot;@ValidFrom&quot;, myObject.hjcValidFrom.ToString(&quot;MM/dd/YYYY&quot;));<br />
            myParam[2] = new SqlParameter(&quot;@ValidTo&quot;, myObject.hjcValidTo.ToString(&quot;MM/dd/YYYY&quot;));<br />
[/csharp]</p>
<p>That solved the issue. Simple right?</p>
<p><strong>Some other case</strong></p>
<p>There are dome other cases you may get this error if you use the codes as follows.<br />
[csharp]<br />
 SqlParameter[] myParam = new SqlParameter[3];<br />
            DateTime myDate=new DateTime();<br />
            myParam[0] = new SqlParameter(&quot;@name&quot;, myObject.name);<br />
            myParam[1] = new SqlParameter(&quot;@ValidFrom&quot;, myDate);<br />
            myParam[2] = new SqlParameter(&quot;@ValidTo&quot;, myDate);<br />
[/csharp]</p>
<p>What you have to do all to fix this issue is just take the now property value from your date time object and pass it your parameter.</p>
<p>[csharp]<br />
 SqlParameter[] myParam = new SqlParameter[3];<br />
            DateTime myDate = DateTime.Now;<br />
            myParam[0] = new SqlParameter(&quot;@name&quot;, myObject.name);<br />
            myParam[1] = new SqlParameter(&quot;@ValidFrom&quot;, myDate);<br />
            myParam[2] = new SqlParameter(&quot;@ValidTo&quot;, myDate);<br />
[/csharp]</p>
<p><strong>Conclusion </strong></p>
<p>I hope you enjoyed reading and found this useful. Please share me your valuable feedback. For me it matters a lot.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/sqldatetime-overflow-must-be-between-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Find Out the Missing Indexes in SQL</title>
		<link>https://sibeeshpassion.com/find-out-the-missing-indexes-in-sql/</link>
					<comments>https://sibeeshpassion.com/find-out-the-missing-indexes-in-sql/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sun, 31 May 2015 14:34:35 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Missing Index]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=3781</guid>

					<description><![CDATA[This code helps you to find out the missing Indexes in SQL [sql] SELECT d.[object_id], s = OBJECT_SCHEMA_NAME(d.[object_id]), o = OBJECT_NAME(d.[object_id]), d.equality_columns, d.inequality_columns, d.included_columns, s.unique_compiles, s.user_seeks, s.last_user_seek, s.user_scans, s.last_user_scan INTO #missingindexes FROM sys.dm_db_missing_index_details AS d INNER JOIN sys.dm_db_missing_index_groups AS g ON d.index_handle = g.index_handle INNER JOIN sys.dm_db_missing_index_group_stats AS s ON g.index_group_handle = s.group_handle WHERE d.database_id = DB_ID() AND OBJECTPROPERTY(d.[object_id], &#8216;IsMsShipped&#8217;) = 0; select * from #missingindexes [/sql]]]></description>
										<content:encoded><![CDATA[<p>This code helps you to find out the missing Indexes in SQL<br />
[sql]<br />
SELECT<br />
  d.[object_id],<br />
  s = OBJECT_SCHEMA_NAME(d.[object_id]),<br />
  o = OBJECT_NAME(d.[object_id]),<br />
  d.equality_columns,<br />
  d.inequality_columns,<br />
  d.included_columns,<br />
  s.unique_compiles,<br />
  s.user_seeks, s.last_user_seek,<br />
  s.user_scans, s.last_user_scan<br />
INTO #missingindexes<br />
FROM sys.dm_db_missing_index_details AS d<br />
INNER JOIN sys.dm_db_missing_index_groups AS g<br />
ON d.index_handle = g.index_handle<br />
INNER JOIN sys.dm_db_missing_index_group_stats AS s<br />
ON g.index_group_handle = s.group_handle<br />
WHERE d.database_id = DB_ID()<br />
AND OBJECTPROPERTY(d.[object_id], &#8216;IsMsShipped&#8217;) = 0;  </p>
<p>select * from #missingindexes<br />
[/sql]</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/find-out-the-missing-indexes-in-sql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Find the Relationship Difference Between Two DB</title>
		<link>https://sibeeshpassion.com/find-the-relationship-difference-between-two-db/</link>
					<comments>https://sibeeshpassion.com/find-the-relationship-difference-between-two-db/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sun, 31 May 2015 14:32:35 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Relation]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=3741</guid>

					<description><![CDATA[Find the relationship difference between two DB. [sql] SELECT f.name AS ForeignKey FROM sys.foreign_keys AS f where f.name not in (SELECT f.name AS ForeignKey FROM inova.sys.foreign_keys AS f)order by f.name asc [/sql]]]></description>
										<content:encoded><![CDATA[<p>Find the relationship difference between two DB.<br />
[sql]<br />
SELECT f.name AS ForeignKey<br />
FROM sys.foreign_keys AS f where f.name not in<br />
(SELECT f.name AS ForeignKey<br />
FROM inova.sys.foreign_keys AS f)order by f.name asc<br />
[/sql]</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/find-the-relationship-difference-between-two-db/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Find Relationships Between Tables in SQL Server 2008</title>
		<link>https://sibeeshpassion.com/find-relationships-between-tables-in-sql-server-2008/</link>
					<comments>https://sibeeshpassion.com/find-relationships-between-tables-in-sql-server-2008/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sun, 31 May 2015 14:30:18 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Relation]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=3711</guid>

					<description><![CDATA[find the relationships between tables in SQL Server 2008 [sql] SELECT f.name AS ForeignKey, SCHEMA_NAME(f.SCHEMA_ID) SchemaName, OBJECT_NAME(f.parent_object_id) AS TableName, COL_NAME(fc.parent_object_id,fc.parent_column_id) AS ColumnName, SCHEMA_NAME(o.SCHEMA_ID) ReferenceSchemaName, OBJECT_NAME (f.referenced_object_id) AS ReferenceTableName, COL_NAME(fc.referenced_object_id,fc.referenced_column_id) AS ReferenceColumnName FROM sys.foreign_keys AS f INNER JOIN sys.foreign_key_columns AS fc ON f.OBJECT_ID = fc.constraint_object_id INNER JOIN sys.objects AS o ON o.OBJECT_ID = fc.referenced_object_id [/sql]]]></description>
										<content:encoded><![CDATA[<p>find the relationships between tables in SQL Server 2008<br />
[sql]<br />
SELECT f.name AS ForeignKey,<br />
   SCHEMA_NAME(f.SCHEMA_ID) SchemaName,<br />
   OBJECT_NAME(f.parent_object_id) AS TableName,<br />
   COL_NAME(fc.parent_object_id,fc.parent_column_id) AS ColumnName,<br />
   SCHEMA_NAME(o.SCHEMA_ID) ReferenceSchemaName,<br />
   OBJECT_NAME (f.referenced_object_id) AS ReferenceTableName,<br />
   COL_NAME(fc.referenced_object_id,fc.referenced_column_id) AS ReferenceColumnName<br />
FROM sys.foreign_keys AS f<br />
INNER JOIN sys.foreign_key_columns AS fc ON f.OBJECT_ID = fc.constraint_object_id<br />
INNER JOIN sys.objects AS o ON o.OBJECT_ID = fc.referenced_object_id<br />
[/sql]</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/find-relationships-between-tables-in-sql-server-2008/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Creating Linked Server in SQL</title>
		<link>https://sibeeshpassion.com/creating-linked-server-in-sql/</link>
					<comments>https://sibeeshpassion.com/creating-linked-server-in-sql/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sun, 31 May 2015 14:28:24 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Linked Server]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=3681</guid>

					<description><![CDATA[Creating Linked Server: [sql] EXEC sp_addlinkedserver @server=N&#8217;IIC82&#8242;, @srvproduct=N&#8221;, @provider=N&#8217;SQLNCLI&#8217;, @datasrc=N&#8217;IIC82\SQL2008R2&#8242;; [/sql] Here you need to replace with your server name.]]></description>
										<content:encoded><![CDATA[<p>Creating Linked Server:<br />
[sql]<br />
EXEC sp_addlinkedserver<br />
   @server=N&#8217;IIC82&#8242;,<br />
   @srvproduct=N&#8221;,<br />
   @provider=N&#8217;SQLNCLI&#8217;,<br />
   @datasrc=N&#8217;IIC82\SQL2008R2&#8242;;<br />
[/sql]<br />
Here you need to replace with your server name.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/creating-linked-server-in-sql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
