<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL BULK COPY ERROR (“Operating system error code 5(Access is denied.)”)</title><link>http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/10/29/sql-bulk-copy-error-operating-system-error-code-5-access-is-denied.aspx</link><description>While there are various forms of bulk copy this blog specifically deals with copying data from a file into SQL Server. It deals about the specific error &amp;ldquo;Operating system error code 5(Access is denied.)&amp;rdquo; which might crop up under certain circumstances</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: SQL BULK COPY ERROR (“Operating system error code 5(Access is denied.)”)</title><link>http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/10/29/sql-bulk-copy-error-operating-system-error-code-5-access-is-denied.aspx#10400658</link><pubDate>Fri, 08 Mar 2013 14:36:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10400658</guid><dc:creator>Thomas W Marshall</dc:creator><description>&lt;p&gt;Thanks for the interesting post. I, like most DBAs, approach error five by looking at the permissions on the file, and work my way back. I tend to not to be so liberal as to grant all permissions to everyone, but I do tend to grant myself, or the AD user the process is to run as full control over the file and read access to the file.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10400658" width="1" height="1"&gt;</description></item><item><title>re: SQL BULK COPY ERROR (“Operating system error code 5(Access is denied.)”)</title><link>http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/10/29/sql-bulk-copy-error-operating-system-error-code-5-access-is-denied.aspx#10286399</link><pubDate>Thu, 22 Mar 2012 14:20:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10286399</guid><dc:creator>Angshuman Nayak</dc:creator><description>&lt;p&gt;Hi Luke! Thanks for look into the post and provding your suggestions. I had already mentioned it in the initial part of the blog.&lt;/p&gt;
&lt;p&gt;The usual troubleshooting that DBAs do is to chase the “Access Denied” error from a file/folder access perspective. Some of them are as follows. &lt;/p&gt;
&lt;p&gt;a)Added “full” access to “everyone” (just temporary to test this) on the BulkTest folder and still getting the same error. &lt;/p&gt;
&lt;p&gt;b)Added “full” access to the SQL server service account on the BulkTest folder and still get the same error. &lt;/p&gt;
&lt;p&gt;Please let me know if you feel there is a way we could be more succint so that it helps people faced with the issue. Once again I appreciate your post. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10286399" width="1" height="1"&gt;</description></item><item><title>re: SQL BULK COPY ERROR (“Operating system error code 5(Access is denied.)”)</title><link>http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/10/29/sql-bulk-copy-error-operating-system-error-code-5-access-is-denied.aspx#10286396</link><pubDate>Thu, 22 Mar 2012 14:09:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10286396</guid><dc:creator>LukeS</dc:creator><description>&lt;p&gt;Before doing any of this, ensure the service account that SQL instance is running as has access to the file (not sql agent account). &amp;nbsp;That resolved the issue for me.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10286396" width="1" height="1"&gt;</description></item><item><title>re: SQL BULK COPY ERROR (“Operating system error code 5(Access is denied.)”)</title><link>http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/10/29/sql-bulk-copy-error-operating-system-error-code-5-access-is-denied.aspx#10137677</link><pubDate>Tue, 09 Nov 2010 09:39:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10137677</guid><dc:creator>LONG PATH TOOL</dc:creator><description>&lt;p&gt;Hello guys, &lt;/p&gt;
&lt;p&gt;Do you encounter errors while deleting files in Windows? I&amp;#39;m here to &lt;/p&gt;
&lt;p&gt;provide a solution. I&amp;#39;ve been reading several threads on this topic on &lt;/p&gt;
&lt;p&gt;different forums where computer users were asking about this popular error &lt;/p&gt;
&lt;p&gt;&amp;quot;The filename you specified is not valid or too long&amp;quot;.&lt;/p&gt;
&lt;p&gt;My research helped me to find a tool for you guys. &lt;/p&gt;
&lt;p&gt;Its LONG PATH TOOL, a very easy to run but highly powerful software.&lt;/p&gt;
&lt;p&gt;Follow the link to read more about this error.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.longpathtool.com"&gt;http://www.longpathtool.com&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10137677" width="1" height="1"&gt;</description></item><item><title>re: SQL BULK COPY ERROR (“Operating system error code 5(Access is denied.)”)</title><link>http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/10/29/sql-bulk-copy-error-operating-system-error-code-5-access-is-denied.aspx#10088057</link><pubDate>Tue, 09 Nov 2010 09:38:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10088057</guid><dc:creator>LONG PATH TOOL</dc:creator><description>&lt;p&gt;Hello guys, &lt;/p&gt;
&lt;p&gt;Do you encounter errors while deleting files in Windows? I&amp;#39;m here to &lt;/p&gt;
&lt;p&gt;provide a solution. I&amp;#39;ve been reading several threads on this topic on &lt;/p&gt;
&lt;p&gt;different forums where computer users were asking about this popular error &lt;/p&gt;
&lt;p&gt;&amp;quot;The filename you specified is not valid or too long&amp;quot;.&lt;/p&gt;
&lt;p&gt;My research helped me to find a tool for you guys. &lt;/p&gt;
&lt;p&gt;Its LONG PATH TOOL, a very easy to run but highly powerful software.&lt;/p&gt;
&lt;p&gt;Follow the link to read more about this error.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.longpathtool.com"&gt;http://www.longpathtool.com&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10088057" width="1" height="1"&gt;</description></item><item><title>re: SQL BULK COPY ERROR (“Operating system error code 5(Access is denied.)”)</title><link>http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/10/29/sql-bulk-copy-error-operating-system-error-code-5-access-is-denied.aspx#10086979</link><pubDate>Fri, 05 Nov 2010 23:03:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10086979</guid><dc:creator>Miroslaw Majorek, Aspect Software</dc:creator><description>&lt;p&gt;I have been struggling with this particular problem for about a week. This solution helped get me back on track in no time. I was not aware about the delegation; when I configured the SPN for hostname/port the BULK INSERT started working.&lt;/p&gt;
&lt;p&gt;This is great for failover clusters, where you can have your application prepare the data file and put it on a cluster share and have SQL Server pick the bulk data up from that share. Thanks to this solution you don&amp;#39;t have to ensure that the share is always on the same machine as SQL Server.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10086979" width="1" height="1"&gt;</description></item></channel></rss>