<?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>.mdf &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/mdf/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Sun, 26 Feb 2017 19:20:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server: fix error 945 database cannot be opened due to inaccessible files or insufficient memory or insufficient space on disk</title>
		<link>https://www.dbrnd.com/2017/03/sql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 07 Mar 2017 16:16:50 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[.ldf]]></category>
		<category><![CDATA[.mdf]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[error 945]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[SUSPECT Mode]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4717</guid>

					<description><![CDATA[&#8220;SQL Server error 945 database cannot be opened due to inaccessible files or insufficient memory or insufficient space on disk&#8221; This error occurs when SQL Server can&#8217;t recover missing files or may be backup is corrupted. The effect of this error are, Database in suspected mode, Stop all the database transactions, Stop other operation of [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk%2F&amp;linkname=SQL%20Server%3A%20fix%20error%20945%20database%20cannot%20be%20opened%20due%20to%20inaccessible%20files%20or%20insufficient%20memory%20or%20insufficient%20space%20on%20disk" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk%2F&amp;linkname=SQL%20Server%3A%20fix%20error%20945%20database%20cannot%20be%20opened%20due%20to%20inaccessible%20files%20or%20insufficient%20memory%20or%20insufficient%20space%20on%20disk" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk%2F&amp;linkname=SQL%20Server%3A%20fix%20error%20945%20database%20cannot%20be%20opened%20due%20to%20inaccessible%20files%20or%20insufficient%20memory%20or%20insufficient%20space%20on%20disk" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk%2F&amp;linkname=SQL%20Server%3A%20fix%20error%20945%20database%20cannot%20be%20opened%20due%20to%20inaccessible%20files%20or%20insufficient%20memory%20or%20insufficient%20space%20on%20disk" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk%2F&amp;linkname=SQL%20Server%3A%20fix%20error%20945%20database%20cannot%20be%20opened%20due%20to%20inaccessible%20files%20or%20insufficient%20memory%20or%20insufficient%20space%20on%20disk" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk%2F&amp;linkname=SQL%20Server%3A%20fix%20error%20945%20database%20cannot%20be%20opened%20due%20to%20inaccessible%20files%20or%20insufficient%20memory%20or%20insufficient%20space%20on%20disk" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk%2F&#038;title=SQL%20Server%3A%20fix%20error%20945%20database%20cannot%20be%20opened%20due%20to%20inaccessible%20files%20or%20insufficient%20memory%20or%20insufficient%20space%20on%20disk" data-a2a-url="https://www.dbrnd.com/2017/03/sql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-insufficient-space-on-disk/" data-a2a-title="SQL Server: fix error 945 database cannot be opened due to inaccessible files or insufficient memory or insufficient space on disk"></a></p><p><em>&#8220;SQL Server error 945 database cannot be opened due to inaccessible files or insufficient memory or insufficient space on disk&#8221;</em></p>
<p>This error occurs when SQL Server can&#8217;t recover missing files or may be backup is corrupted. The effect of this error are, Database in suspected mode, Stop all the database transactions, Stop other operation of a database.</p>
<p>The possible solution are,</p>
<ul>
<li>Remove unnecessary files from hard drive and free space of hard disk. If possible add new large size hard drive</li>
<li>Check the account permission</li>
<li>Database must set to Autogrowth</li>
<li>MDF and LDF files should not mark as read only</li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: How to create Snapshot Database?</title>
		<link>https://www.dbrnd.com/2017/01/sql-server-how-to-create-snapshot-database-for-read-only-access/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 28 Jan 2017 18:21:36 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[.ldf]]></category>
		<category><![CDATA[.mdf]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Snapshot database]]></category>
		<category><![CDATA[sparse file]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2455</guid>

					<description><![CDATA[In the previous post, I have shared basic theory on SQL Server Database Snapshot. SQL Server: What is Database Snapshot and How it works? In this post, I am sharing T-SQL scripts to create Snapshot Database in SQL Server. First, Create one test database: [crayon-6aa4ac20d10fd500951540/] Create a table with sample data: [crayon-6aa4ac20d1100780427195/] Create a Snapshot [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fsql-server-how-to-create-snapshot-database-for-read-only-access%2F&amp;linkname=SQL%20Server%3A%20How%20to%20create%20Snapshot%20Database%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fsql-server-how-to-create-snapshot-database-for-read-only-access%2F&amp;linkname=SQL%20Server%3A%20How%20to%20create%20Snapshot%20Database%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fsql-server-how-to-create-snapshot-database-for-read-only-access%2F&amp;linkname=SQL%20Server%3A%20How%20to%20create%20Snapshot%20Database%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fsql-server-how-to-create-snapshot-database-for-read-only-access%2F&amp;linkname=SQL%20Server%3A%20How%20to%20create%20Snapshot%20Database%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fsql-server-how-to-create-snapshot-database-for-read-only-access%2F&amp;linkname=SQL%20Server%3A%20How%20to%20create%20Snapshot%20Database%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fsql-server-how-to-create-snapshot-database-for-read-only-access%2F&amp;linkname=SQL%20Server%3A%20How%20to%20create%20Snapshot%20Database%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fsql-server-how-to-create-snapshot-database-for-read-only-access%2F&#038;title=SQL%20Server%3A%20How%20to%20create%20Snapshot%20Database%3F" data-a2a-url="https://www.dbrnd.com/2017/01/sql-server-how-to-create-snapshot-database-for-read-only-access/" data-a2a-title="SQL Server: How to create Snapshot Database?"></a></p><p>In the previous post, I have shared basic theory on SQL Server Database Snapshot.</p>
<blockquote data-secret="MMRPYXtVRG" class="wp-embedded-content"><p><a href="https://www.dbrnd.com/2017/01/sql-server-what-is-database-snapshot-and-how-it-works-read-only-database/">SQL Server: What is Database Snapshot and How it works?</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2017/01/sql-server-what-is-database-snapshot-and-how-it-works-read-only-database/embed/#?secret=MMRPYXtVRG" data-secret="MMRPYXtVRG" width="600" height="338" title="&#8220;SQL Server: What is Database Snapshot and How it works?&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p>In this post, I am sharing T-SQL scripts to create Snapshot Database in SQL Server.</p>
<p><strong>First, Create one test database:</strong></p><pre class="crayon-plain-tag">USE master
GO
CREATE DATABASE TestRND
GO</pre><p>
<strong>Create a table with sample data: </strong></p><pre class="crayon-plain-tag">USE TestRND
GO
CREATE TABLE tbl_TestSnapshot
(ID INTEGER PRIMARY KEY, Name VARCHAR(50))
GO

INSERT INTO tbl_TestSnapshot VALUES 
(1,'Anvesh'),(2,'Neevan')
,(3,'Roy'),(4,'Martin')
,(5,'Jenny'),(6,'Kavia')
GO</pre><p>
<strong>Create a Snapshot Database: </strong><br />
Please specify source database .mdf file name and file path and create a new sparse file for Snapshot with .ss extension.</p><pre class="crayon-plain-tag">USE master
GO
CREATE DATABASE TestRND_SS
ON
(NAME=TestRND,FILENAME='C:\Program Files (x86)\Microsoft SQL Server\MSSQL11.MSSQL_DBRND\MSSQL\DATA\TestRND_SS.ss')
AS SNAPSHOT OF TestRND
GO</pre><p>
<a href="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDatabaseSnapshot.png" rel="attachment wp-att-2459"><img decoding="async" class="alignnone wp-image-2459 size-full" title="SQL Server Database Snapshot" src="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDatabaseSnapshot.png" alt="SQL Server Database Snapshot" width="177" height="77" srcset="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDatabaseSnapshot.png 177w, https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDatabaseSnapshot-150x65.png 150w" sizes="(max-width: 177px) 100vw, 177px" /></a></p>
<p><strong>Update data into source database:</strong><br />
<pre class="crayon-plain-tag">USE TestRND
GO
UPDATE tbl_TestSnapshot SET Name = 'dbrnd' WHERE ID=1
GO</pre>
<strong>Check the result of Snapshot database:</strong><br />
As earlier, I have discussed that Snapshot Database keep all old data.<br />
whenever a source database updates the data, it never updates the original data.<br />
<pre class="crayon-plain-tag">USE TestRND_SS
GO
SELECT *FROM tbl_TestSnapshot
GO

/* Result...

ID          Name
------  ------------
1           Anvesh
2           Neevan
3           Roy
4           Martin
5           Jenny
6           Kavia
*/</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
