<?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>Bahramov's Personal Blog &#187; sp_makewebtask</title>
	<atom:link href="http://www.bahramov.com/tag/sp_makewebtask/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bahramov.com</link>
	<description>Computers, databases, networks and virtualization</description>
	<lastBuildDate>Fri, 24 Jun 2011 12:05:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL Web Assistant: Could not open the output file.</title>
		<link>http://www.bahramov.com/2009/03/19/sql-web-assistant-could-not-open-the-output-file/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.bahramov.com/2009/03/19/sql-web-assistant-could-not-open-the-output-file/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 15:03:53 +0000</pubDate>
		<dc:creator>Zaur Bahramov</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sp_makewebtask]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.bahramov.com/?p=66</guid>
		<description><![CDATA[Error Message:
Msg 16821, Level 11, State 1, Procedure sp_makewebtask, Line 131
SQL Web Assistant: Could not open the output file.
____________________________
Script completed with errors

Description:
This error message appears when you try to call the procedure sp_makewebtask but the output file cannot be opened.
Consequences:
The T-SQL statement can be parsed, but causes the error at runtime.
Resolution:
Errors of the Severity Level [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Error Message:</strong><br />
<code><span style="color: #ff0000">Msg 16821, Level 11, State 1, Procedure sp_makewebtask, Line 131<br />
SQL Web Assistant: Could not open the output file.<br />
____________________________<br />
Script completed with errors</span><br />
</code></p>
<p><strong>Description:</strong><br />
This error message appears when you try to call the procedure sp_makewebtask but the output file cannot be opened.</p>
<p><strong>Consequences:</strong><br />
The T-SQL statement can be parsed, but causes the error at runtime.</p>
<p><strong>Resolution:</strong><br />
Errors of the Severity Level 11 are generated by the user and are corrigible by the user. The statement cannot be executed this way. You must specify a valid and accessible path. <span style="text-decoration: underline;">Also you have to make sure that the Service Logon account for SQL Server has appropriate rights to write to the specified location.<br />
</span></p>
<p><strong>Versions:</strong><br />
All versions of SQL Server.</p>
<p><strong>Example(s):</strong></p>
<pre class="brush: sql">
-- In this example we try to call the sp_makewebtask procedure
-- to output the result to a file on drive A:\. As our machine
-- does not have such a drive, the error is raised.

EXEC sp_makewebtask &#039;A:\test.html&#039;,&#039;SELECT * FROM Northwind.dbo.Orders&#039; </pre>
<p><strong>Remarks:</strong></p>
<p>How to change the SQL Server or SQL Server Agent service account without using SQL Enterprise Manager in SQL Server 2000 or SQL Server Configuration Manager in SQL Server 2005:Â  <a href="http://support.microsoft.com/kb/283811" target="_blank">http://support.microsoft.com/kb/283811</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bahramov.com/2009/03/19/sql-web-assistant-could-not-open-the-output-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

